发布网站时,选择不允许更新此预编译站点,发布后,有些页面出错,选择允许,就不出错,原因会是什么?

duibudui 2007-07-26 09:51:02
错误信息,很难找到原因。

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
...全文
820 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
lishijie910123 2008-04-02
  • 打赏
  • 举报
回复
我也遇到过这个问题,但是没有找到解决方案
virusswb 2008-04-02
  • 打赏
  • 举报
回复
是不是不更新就出问题啊
不更新就应该出问题吧
我猜得
lixiaoyu928 2008-04-02
  • 打赏
  • 举报
回复
这个问题我也遇到过,是因为你的页面或控件改过类名导致的。我当时是把那个改过名的文件删了然后重新建解决的。
duibudui 2007-10-22
  • 打赏
  • 举报
回复
up
ttg520 2007-08-09
  • 打赏
  • 举报
回复
up
honey52570 2007-08-09
  • 打赏
  • 举报
回复
mark
duibudui 2007-08-09
  • 打赏
  • 举报
回复
再顶一下
duibudui 2007-07-26
  • 打赏
  • 举报
回复
页面上有ajax控件,很有可能是这个搞出来的,有什么解决方案么
cuoguo1111 2007-07-26
  • 打赏
  • 举报
回复
问题出在你使用的自定义的控件上,原来我出现过这样的问题,怎么解决的忘记了,你向这个方向找下吧

62,073

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧