发布网站时,选择不允许更新此预编译站点,发布后,有些页面出错,选择允许,就不出错,原因会是什么?
错误信息,很难找到原因。
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