发布后 MiniProfiler 不工作
MiniProfiler not working after publish
我使用
将MiniProfiler
添加到我的项目中
Install-Package MiniProfiler
尝试找出应用程序运行如此缓慢的原因,并且在 VS 中调试时似乎运行良好。
但是,在发布应用程序并 运行 之后,个人资料信息将不再显示。
我按照 these instructions 设置了分析器。
这是 MiniProfiler
的功能吗?如果是,是否有某种方法可以显示此信息?
我尝试在调试模式下发布,但没有成功。
感谢任何帮助
删除后
if (Request.IsLocal)
来自
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
现在看来工作正常。
我使用
将MiniProfiler
添加到我的项目中
Install-Package MiniProfiler
尝试找出应用程序运行如此缓慢的原因,并且在 VS 中调试时似乎运行良好。
但是,在发布应用程序并 运行 之后,个人资料信息将不再显示。
我按照 these instructions 设置了分析器。
这是 MiniProfiler
的功能吗?如果是,是否有某种方法可以显示此信息?
我尝试在调试模式下发布,但没有成功。
感谢任何帮助
删除后
if (Request.IsLocal)
来自
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
现在看来工作正常。