问题描述
我只是添加迷你探查到我的MVC3的NuGet项目,我一直遵循的基本步骤,以得到它成立。开始上的Application_BeginRequest(配置文件)和停止它Application_EndRequest()
I'm just added Mini Profiler to my MVC3 project with nuget and I've followed the basic steps to get it set up. Starting the profile on Application_BeginRequest() and stopping it on Application_EndRequest()
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
protected void Application_EndRequest()
{
MiniProfiler.Stop();
}
MiniProfiler.Stop()抛出一个异常 - 后,HTTP标头已被送往服务器不能追加头
有其他人看到了这一点?
Has anybody else seen this?
推荐答案
这似乎与Combres(HTTP://combres.$c$cplex.com/)。如果我忽略我的JS和CSS已经合并的要求和COM pressed与combres探查似乎更好地工作(没有抛出异常)
This appears to be related to Combres (http://combres.codeplex.com/). If I ignore the requests for my js and css that has been combined and compressed with combres the profiler seems to work better (no exception being thrown)
这篇关于在MiniProfiler.Stop MVC迷你探查异常()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!