Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/280.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ASP.NET-IIS-跟踪_C#_Asp.net_Iis 7 - Fatal编程技术网

C# ASP.NET-IIS-跟踪

C# ASP.NET-IIS-跟踪,c#,asp.net,iis-7,C#,Asp.net,Iis 7,我需要跟踪IIS 7中的异常 我的应用程序在Asp.net和WindowsServer2008R2中的c一起工作。如果在我的应用程序中发生任何异常,那么我需要在服务器中跟踪该异常 如果您想使用IIS进行跟踪,请告诉我IIS7中是否有可用的功能,我认为唯一可行的方法是在IIS中使用日志记录 你可以看看如何使用它 在代码中,需要调用Try-Catch语句来记录错误。ASP.Net跟踪函数是完美的,或者将异常冒泡到一个日志函数中,传递并记录exception.StackTrace。ASP.NET跟踪概

我需要跟踪IIS 7中的异常

我的应用程序在Asp.netWindowsServer2008R2中的c一起工作。如果在我的应用程序中发生任何异常,那么我需要在服务器中跟踪该异常


如果您想使用IIS进行跟踪,请告诉我IIS7中是否有可用的功能,我认为唯一可行的方法是在IIS中使用
日志记录


你可以看看如何使用它

在代码中,需要调用Try-Catch语句来记录错误。ASP.Net跟踪函数是完美的,或者将异常冒泡到一个日志函数中,传递并记录exception.StackTrace。ASP.NET跟踪概述您还可以在Global.asax中添加应用程序错误方法