System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,Object o,Object t,EventArgs e)+14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)+35 System.Web.UI.Control.OnLoad(Ev entArgs e)+99 System.Web.UI.Control.LoadRecursive()+50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint) + 627< / pre> 解决方案 我们无法告诉您:我们无法看到您的屏幕,访问您的硬盘或阅读您的想法。 所以从错误信息开始,它会告诉你问题所在: AdamTibi.Web.Security。 HttpSecureCookie.Decode(HttpCookie cookie)+10 _3_tier_Sample.SocialDemoNew.Page_Load(Object sender,EventArgs e)在d:\ Clear-Julia\proCampuz_3.1.1_RJ_S1_17-03-2014 \ 3层Sampleâ SocialDemoNew.aspx.cs:42 所以:第42行,SocialDemoNew.aspx.cs 哪个尝试使用HTTP Decode一个cookie。 首先看一下你喂它的原因,以及你从哪里得到它! 参考Sergey最受欢迎的答案对象参考未设置为对象的实例,请参阅下面的代码。 [ ^ ]。 调试代码并处理异常。 :) 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.&NullReferenceException: Object reference not set to an instance of an object.] AdamTibi.Web.Security.HttpSecureCookie.CloneCookie(HttpCookie cookie) +11 AdamTibi.Web.Security.HttpSecureCookie.Decode(HttpCookie cookie, CookieProtection cookieProtection) +16 AdamTibi.Web.Security.HttpSecureCookie.Decode(HttpCookie cookie) +10 _3_tier_Sample.SocialDemoNew.Page_Load(Object sender, EventArgs e) in d:\Clear- Julia\proCampuz_3.1.1_RJ_S1_17-03-2014\3 tier Sample\SocialDemoNew.aspx.cs:42 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627</pre> 解决方案 We can't tell you: we can't see your screen, access your HDD, or read your mind.So start with the error message, which tells you where the problem is:AdamTibi.Web.Security.HttpSecureCookie.Decode(HttpCookie cookie) +10_3_tier_Sample.SocialDemoNew.Page_Load(Object sender, EventArgs e) in d:\Clear- Julia\proCampuz_3.1.1_RJ_S1_17-03-2014\3 tier Sample\SocialDemoNew.aspx.cs:42So: Line 42, of SocialDemoNew.aspx.csWhich is trying to use an HTTP Decode of a cookie.So start by looking at what you feed it, and where you got that from!Refer the most popular answer by Sergey "Object Reference not set to Instance of an object", please see the code below.[^].Debug your code and handle exceptions. :) 这篇关于System.Nullreferenceexception:当我在Iis7中运行已发布的Asp.Net网站时,对象引用未设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 22:42