发布网站时,选择不允许更新此预编译站点,发布后,有些页面出错,选择允许,就不出错,原因会是什么?
错误信息,很难找到原因。
Server Error in '/ ' Application.
--------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in
the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an
object.
Source Error:
An unhandled exception was generated during the execution of the current web request.
Information regarding the origin and location of the exception can be identified using the
exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.Script.Services.WebServiceData.GetWebServiceData(HttpContext context, String
virtualPath, Boolean failIfNoData, Boolean pageMethods) +378
System.Web.Script.Services.PageClientProxyGenerator.GetClientProxyScript(HttpContext
context, IPage page, Boolean debug) +45
System.Web.UI.ScriptManager.RegisterServices() +728
System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +244
System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2010340
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint) +1566
--------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
------解决方案--------------------问题出在你使用的自定义的控件上,原来我出现过这样的问题,怎么解决的忘记了,你向这个方向找下吧
------解决方案--------------------mark
------解决方案--------------------up
------解决方案--------------------这个问题我也遇到过,是因为你的页面或控件改过类名导致的。我当时是把那个改过名的文件删了然后重新建解决的。
------解决方案--------------------是不是不更新就出问题啊
不更新就应该出问题吧
我猜得
------解决方案--------------------我也遇到过这个问题,但是没有找到解决方案