且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在IIS上的C#中输出到控制台

更新时间:2023-12-05 12:50:28

您将需要查看ASP.NET跟踪

You'll want to take a look at ASP.NET tracing

这里是一个方便的链接,您可以开始: http:/ /www.asp101.com/articles/robert/tracing/default.asp

here is a handy link to get you started: http://www.asp101.com/articles/robert/tracing/default.asp

如果您在网络中放置以下内容,则可以启用应用程序范围跟踪。 config,那么你将有权访问你的trace.axd

you can enable application wide tracing if you place the following in your web.config, then you will have access to your trace.axd

<trace enabled="true" 
    localOnly="false" 
    pageOutput="false" 
    requestLimit="500" 
    traceMode="SortByTime"
/>