當前位置:編程學習大全網 - 編程語言 - .net程序應用錯誤 !!!!求解決方法

.net程序應用錯誤 !!!!求解決方法

“/”應用程序中的服務器錯誤和Server Error in '/' Application.的終極解決方法

“/”應用程序中的服務器錯誤。 運行時錯誤 說明: 服務器上出現應用程序錯誤。此應用程序的當前自定義錯誤設置禁止遠程查看應用程序錯誤的詳細信息(出於安全原因)。但可以通過在本地服務器計算機上運行的瀏覽器查看。 詳細信息: 若要使他人能夠在遠程計算機上查看此特定錯誤信息的詳細信息,請在位於當前 Web 應用程序根目錄下的“web.config”配置文件中創建壹個 <customErrors> 標記。然後應將此 <customErrors> 標記的“mode”屬性設置為“Off”。 <!-- Web.Config 配置文件 --><configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>

原因1: 這是由於配置中 Asp.Net 程序 沒有顯示詳細的錯誤信息. 解決: 您必須按照要求,修改 web.config 文件 將 <customErrors mode="Off"/> 設置mode ="Off", 上傳到網站根目錄.然後刷新就可以看到詳細錯誤.然後根據錯誤修改程序就可以了.

原因2: web.config 文件不是放在www根目錄下.而是放在www的子目錄下等.這樣用戶訪問這個目錄時就會出現提示錯誤. 解決: 將子目錄下的 Asp.net應用程序移到 www根目錄下. 這樣就可以看到詳細錯誤了.您可以根據錯誤調整程序.

3. Asp.Net 程序顯示錯誤如下: Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

原因1: web.config 文件不完整.不是合格的asp.net 配置文件. 解決: 您要檢查web.config 是否合格,有時候是粗心,xml文件不完整.導致的問題 原因2: asp.net版本問題.asp.net有asp.net 1.1和 asp.net2.0 兩個版本.

  • 上一篇:電動按摩椅的價格
  • 下一篇:有什麽畫動漫的軟件比較好?
  • copyright 2024編程學習大全網