首页 > 解决方案 > “/”应用程序中的服务器错误。你调用的对象是空的

问题描述

我一直试图弄清楚但没有得到它。

说明:执行当前 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

标签: objectreferencesetinstanceserver-error

解决方案


如果您使用的是 VS2019,请确保取消选中 Enable Browser Link VSCode EnableBroswerLink


推荐阅读