【问题标题】:Server Error in '/' Application. Object reference not set to an instance of an object“/”应用程序中的服务器错误。你调用的对象是空的
【发布时间】:2019-11-13 07:11:39
【问题描述】:

我一直在想办法,但没有得到它。

说明:在执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详情:

System.NullReferenceException: Object reference not set to an instance of an object.

来源错误:

在执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常起源和位置的信息。

堆栈跟踪:

[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.WebTools.BrowserLink.Runtime.Tracing.PageInspectorHttpModule.OnPreRequestHandlerExecute(Object sender, EventArgs e) +662
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +74
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +92

【问题讨论】:

    标签: object reference set instance server-error


    【解决方案1】:

    如果您使用的是 VS2019,请确保取消选中启用浏览器链接 VSCode EnableBroswerLink

    【讨论】:

    • 非常感谢。自从过去 3 小时以来,我一直在调试它
    • 在这个问题上花了几个小时,直到我找到了这个答案。只需添加它仍然适用于 VS2022。
    猜你喜欢
    • 2013-08-28
    • 2013-04-14
    • 1970-01-01
    • 2011-04-15
    • 2020-08-03
    • 2013-05-27
    • 2013-07-22
    相关资源
    最近更新 更多