当网站为Build时,出现编译时错误 [英] When Web site is Build i get Compile time Error

查看:92
本文介绍了当网站为Build时,出现编译时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我设计了一个Web应用程序,其中有大约20个页面或Web表单
我使用过Visual Studio 2005,代码隐藏"是VB,这是我在编译时出现的我的Asp页面",我得到一个编译时错误说:

hi
i have designed a Web Application in that i have some 20 pages or Web forms
i have used Visual Studio 2005, Code Behind is VB, this My Asp Pages when i Compile Them i get a Compile Time Error Saying :

Description : Name 'ObjectName' is not declared.	 
File        : \BudgetMaster.aspx.vb	
Line        : 12



对于我的项目中的1个或多个对象,随机显示此错误,

一次显示1个错误,一次显示102个错误

当我在没有调试的情况下运行即ctrl + F5时,我的代码是正确的,它不会显示任何错误

谁能告诉我如何纠正此编译器错误?



感谢IN Advance:)



This error is Showen For Randomly for 1 or many Objects In my Project,

once it Shows 1 error and once it shows 102 errors

my code is Correct when i Run Without Debug i.e ctrl+F5 It wont show any error

Can anyone tell me how to Rectify this Complier Error?



Thanks IN Advance :)

推荐答案

尝试清理项目,然后进行完整的重建(如果还没有的话).您可能还需要按此处所述删除临时文件
Try cleaning the project then doing a complete rebuild, if you haven''t already. You may also need to delete the temporary files as described here http://blogs.msdn.com/b/dougste/archive/2008/08/11/clearing-out-temporary-asp-net-files.aspx[^]


如果在编译时出现错误,则应该能够在Visual Studio中打开错误列表窗口.您所出现的错误应该出现在这里.如果双击错误列表,Studio会将您带到遇到错误的地方.它将自动打开适用的文件,并将光标设置在文本编辑器中发生错误的位置.尝试一下,解决困境的方法应该显而易见.
If you get the error on compile, then you should be able to open the Error List window in Visual Studio. The error you have should appear there. If you double click on the error listing, Studio will take you to the place where it encountered the error. It will automatically open the applicable file and set the cursor to the location in the Text Editor where the error has occurred. Try that and a solution to your predicament should be apparent.


这篇关于当网站为Build时,出现编译时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆