2012-11-27 79 views
0

我有一個主應用程序和2個子頁面。主頁面正常工作,其中一個子頁面正常工作。但其他子頁面給我一個錯誤:ASP.NET Web應用程序錯誤

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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

當試圖在我的本地運行,我得到

An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

這一個星期前被精細工作,這個問題是突然的。請幫助。

回答

0

您正面臨此問題,因爲您訪問時出現錯誤的子頁面可能處於某種安全狀態。您所描述的錯誤出現在匿名用戶無法訪問的頁面上。

您必須首先檢查Web.config,看看是否爲該網頁定義了一些位置訪問權限並確保它們被正確定義。

您可以通過以前的答案閱讀關於此問題的更多內容。

web site configuration

+0

感謝您的回覆。我的問題是,這是以前正常工作和崩潰是突然的。另外,我的web.config沒有位置訪問權限。正如我所說,其中一個子頁面正常工作,另一個不工作.... – jpo