How can I trace IIS 500 errors thrown by my webservice

自作多情 提交于 2019-12-09 06:10:54

问题


I have deployed a new version of an ASP.NET webservice. The IIS logfile reports an errorcode 500 when this service is being called by a client. My own (test) can use the service without any error. I have enabled errorlogging in my ASP.NET webservice, but no error is being logged, which leads me to believe the error is not thrown by my code, but somewhere 'earlier' in the stack. I have also examined the httperr1.log file but there's nothing relevant there.

Question, how can I add more errorlogging to IIS to investigate the error? I have no access to the client.

[Updates] I'm using IIS6. I've checked the eventlog and found nothing there.


回答1:


DebugDiag 2.0 from Microsoft is the definite tool you want to use if you are on IIS6.




回答2:


Which version of IIS are you using?

In IIS7 you have extensive tracing capabilities.

Take a look at: Troubleshooting Failed Requests Using Tracing in IIS 7.0




回答3:


In what format is your logfile? IIS format often contains error messages from a specific request while the default format doesn't.




回答4:


If you run the webMethod from the auto generated proxy on the localhost, you can see the stack trace dump, when it crashes.



来源:https://stackoverflow.com/questions/557490/how-can-i-trace-iis-500-errors-thrown-by-my-webservice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!