0

安装 Glimpse 后,我的 ~/signalr/hubs 停止在 Mono 制作服务器上工作。但是,当使用 IIS Express 在本地运行时,它仍然有效。

System.ArgumentNullException
Argument cannot be null.
Parameter name: httpContext

 at System.Web.HttpContextWrapper..ctor (System.Web.HttpContext httpContext) [0x00000] in <filename unknown>:0 
  at Glimpse.AspNet.AspNetFrameworkProvider.get_Context () [0x00000] in <filename unknown>:0 
  at Glimpse.AspNet.AspNetFrameworkProvider.get_HttpRequestStore () [0x00000] in <filename unknown>:0 
  at Glimpse.Core.Framework.GlimpseRuntime.GetRuntimePolicy (RuntimeEvent runtimeEvent) [0x00000] in <filename unknown>:0 
  at Glimpse.Core.Framework.GlimpseRuntime.HasOffRuntimePolicy (RuntimeEvent policyName) [0x00000] in <filename unknown>:0 
  at Glimpse.Core.Framework.GlimpseRuntime.EndSessionAccess () [0x00000] in <filename unknown>:0 
  at Glimpse.AspNet.HttpModule.EndSessionAccess (System.Web.HttpContextBase httpContext) [0x00000] in <filename unknown>:0 
  at Glimpse.AspNet.HttpModule.<Init>b__2 (System.Object context, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication+<RunHooks>c__Iterator5.MoveNext () [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0 

我不需要查看信号器请求,因此关闭诊断也可以解决我的问题。

4

1 回答 1

1

您可以在web.config.

查看我们配置文档的 URI 部分,了解如何进行更改。

于 2013-07-31T15:10:19.757 回答