2
A
回答
6
1
检查错误日志。尽管它们的位置取决于你的serer设置。
1
如果错误发生在您的ASP.NET应用程序上,您可以捕获错误并将它发送给自己。
您可以捕获错误Global.asax文件...
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
Dim sb As New StringBuilder
sb.AppendFormat("Page Location: {0}", Context.Request.RawUrl)
With Server.GetLastError.GetBaseException
sb.AppendFormat("Message: {0}", .Message)
sb.AppendFormat("Source: {0}", .Source)
sb.AppendFormat("Method: {0}", .TargetSite)
sb.AppendFormat("Stack Trace: {0}", .StackTrace)
End With
Dim ErrorMsg As String = sb.ToString()
' Post thee error to a logger...
End Sub
G.
+0
我建议你看看Exception.ToString的`结果()`。包含所有上述内容,您将放入字符串生成器。 – Oded 2011-01-24 10:27:27
相关问题
- 1. PHP不显示错误 - 内部服务器错误(500)
- 2. magento显示错误:500内部服务器错误
- 3. Python代码显示错误500 - 内部服务器错误
- 4. 500内部服务错误
- 5. 一个控制器显示500内部服务器错误Codeigniter
- 6. 500内部服务器错误的Heroku
- 7. JMeter的500 - 内部服务器错误
- 8. 的getJSON 500(内部服务器错误)
- 9. 500内部服务器错误 - WordPress的
- 10. 500内部服务器错误 - htaccess的
- 11. 500内部服务器错误的Nginx
- 12. CakePHP的500内部服务器错误
- 13. 的.htaccess 500内部服务器错误
- 14. 500内部服务器错误的file_get_contents
- 15. 500内部服务器错误的.htaccess
- 16. POST 500(内部服务器错误)Ajax
- 17. HTTP 500内部服务器错误?
- 18. 500内部服务器错误image.php
- 19. 500 PHP内部服务器错误
- 20. Heroku 500内部服务器错误
- 21. POST 500(内部服务器错误)
- 22. Wamp 500内部服务器错误
- 23. Angular JS 500内部服务器错误
- 24. Bot Framework -500内部服务器错误
- 25. HTTP 1.1 500内部服务器错误
- 26. PHPExcel + Kohana:500内部服务器错误
- 27. 500内部服务器错误导致
- 28. Ajax 500(内部服务器错误)Codeigniter
- 29. CakePHP + nginx 500内部服务器错误
- 30. 500内部服务器错误提交
任何想法的Apache/PHP环境 – ravisoni 2014-05-19 07:17:50