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