跟踪asp.net Web应用程序 [英] Tracing in asp.net web application

查看:72
本文介绍了跟踪asp.net Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从一个网页跟踪asp.net Web应用程序以及类和方法请帮助我





谢谢提前

解决方案

看看这篇文章是否对您有用:



使用ASP.NET跟踪Web应用程序 [ ^ ]


< blockquote>在Web.config文件中添加以下行以跟踪您的应用程序





 <   system.diagnostics  >  
< 来源 >
< source name = System.ServiceModel >
switchValue =Information,ActivityTracing
propagateActivity =true>
< 听众 >
< add 名称 = xml / >
< / listeners >
< / source >
< source name = CardSpace >
< 听众 >
< add name = xml / >
< / listeners >
< / source >
< source name = System.IO.Log >
< 听众 >
< 添加 名称 = xml / >
< / listeners >
< / source < span class =code-keyword>>

< source name = System.Runtime.Serialization >
< 听众 >
< add name = xml / >
< / listeners >
< / source >
< source name = System.IdentityModel >
< 听众 >
< add name = xml / >
< < span class =code-leadattribute> / listeners > ;
< / source >
< / sources >

< sharedlisteners >
< add < span class =code-attribute> name = xml >
type =System.Diagnostics.XmlWriterTraceListener
initializeData =c:\ log \Traces.svclog/>
< / add > < / sharedlisteners >
< / system.diagnostics >


How can i trace an asp.net web application and the classes and method from one web pagen please help me


thank''s in advance

解决方案

See if this article could be useful for you:

Tracing web application with ASP.NET[^]


Add the below lines in your Web.config file to Trace your Application


<system.diagnostics>
    <sources>
        <source name="System.ServiceModel">
                switchValue="Information, ActivityTracing"
                propagateActivity="true">
            <listeners>
                <add name="xml" />
            </listeners>
        </source>
        <source name="CardSpace">
            <listeners>
                <add name="xml" />
            </listeners>
        </source>
        <source name="System.IO.Log">
            <listeners>
                <add name="xml" />
            </listeners>
        </source>
        <source name="System.Runtime.Serialization">
            <listeners>
                <add name="xml" />
            </listeners>
        </source>
        <source name="System.IdentityModel">
            <listeners>
                <add name="xml" />
            </listeners>
        </source>
    </sources>

    <sharedlisteners>
        <add name="xml">
             type="System.Diagnostics.XmlWriterTraceListener"
             initializeData="c:\log\Traces.svclog" />
    </add></sharedlisteners>
</system.diagnostics>


这篇关于跟踪asp.net Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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