开发者

ASP.NET error: IsBadPath() Object reference not set to an instance of an object

I'm getting an {"Object reference not set to an instance of an object."} exception randomly (it seems random) on a server. I can repro开发者_Python百科duce the exception using fiddler and my local machine by passing in no header data.

The stack trace is

   at Microsoft.VisualStudio.WebHost.Request.IsBadPath()
   at Microsoft.VisualStudio.WebHost.Request.TryParseRequest()
   at Microsoft.VisualStudio.WebHost.Request.Process()
   at Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
   at Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
   at Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(Object acceptedSocket)
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

any ideas? I can't get to the problematic code because No source available or symbols have not been loaded'.

ASP.NET 3.5


Looks like the unhandled leftovers from Response.Redirect call.


In my case this same problem happened because of invalid (too many?) cookies. I cleared the cookies and the problem went away.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜