在托管提供程序上使用跟踪处理程序(trace.axd) [英] Using the trace handler (trace.axd) on a hosting provider

查看:93
本文介绍了在托管提供程序上使用跟踪处理程序(trace.axd)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将一个LS应用程序部署到托管服务提供商,它工作正常,但我想为潜在的问题做好准备......

I deployed a LS app to a hosting provider and it's working fine, but I want to be prepared for potential problems...

因此,我想确保我可以使用trace.axd处理程序进行跟踪。

Therefor, I want to make sure that I can do tracing with the trace.axd handler.

<

 

添加
key = " Microsoft.LightSwitch.Trace.Enabled "
value = " true "

add key="Microsoft.LightSwitch.Trace.Enabled" value="true"

/>

/>

 

 

< add
key = " Microsoft.LightSwitch.Trace.LocalOnly "
value = " false "

<add key="Microsoft.LightSwitch.Trace.LocalOnly" value="false"

/>

 在我的本地计算机上,跟踪工作正常,但主机提供商服务器上没有。

 On my local machine, tracing is working fine, but not on the hosting provider server.

显然,我更新了托管提供商站点上的webconfig并验证Microsoft.LightSwitch.Server.Internal位于\bin文件夹中。

Obviously, I updated the webconfig on the hosting provider site and verified that Microsoft.LightSwitch.Server.Internal is in \bin folder.

我得到的错误是"无法找到资源"。

The error I get is "The resource can not be found".

任何想法?

谢谢

paul van bladel

paul van bladel

推荐答案

嗨Paul,

您需要确保跟踪设置在您的web.config中匹配LightSwitch设置:

You'll want to make sure that the trace setting in your web.config matches the LightSwitch settings:

<

 

trace
已启用 = " true "
localOnly = " false "
requestLimit = " 40 "
writeToDiagnosticsTrace = " false "
traceMode = " SortByTime "
mostRecent = " true "

trace enabled="true" localOnly="false" requestLimit="40" writeToDiagnosticsTrace="false" traceMode="SortByTime" mostRecent="true"

/>

/>

 

 

谢谢,

- Dan Seefeldt


这篇关于在托管提供程序上使用跟踪处理程序(trace.axd)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆