我已經用C#開發與推廣的.asmx Web服務,我想這個部署到我的VPS擁有Windows Server 2003與IIS 6推出的Web服務(的.asmx)一個IIS 6.0
服務使用Framework 4.0運行,並且也安裝在VPS中。當我將預編譯版本上傳到VPS時,它顯示運行時錯誤
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 tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's
<customErrors>
configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web>
任何人都可以幫助我解決這個問題嗎?
更新
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to >service this request. Please review the specific error details below and modify your >configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names >are case-sensitive.
Source Error:
Line 26: Line 27:
Line 28: Line 29: Line 30: Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Source File: C:\Inetpub\vhosts\akashvahini.com\httpdocs\web.config
Line: 28Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET >Version:2.0.50727.3053
這使調試在web.config
我們不能真正幫助你沒有充分的「真實」錯誤信息。按照您現在獲得的錯誤消息中的說明,更改'web.config'並使用將得到的新錯誤消息編輯您的問題。 – 2011-04-10 08:58:28
現在我得到一個錯誤,說服務器應用程序不可用您嘗試訪問此Web服務器上的Web應用程序當前不可用。請點擊網頁瀏覽器中的「刷新」按鈕重試您的請求。管理員注意:可以在Web服務器的應用程序事件日誌中找到詳細描述此特定請求失敗原因的錯誤消息。請查看此日誌條目以發現導致此錯誤發生的原因。 – megazoid 2011-04-10 10:01:47
當在事件日誌中選中時顯示「無法執行請求,因爲無法創建應用程序域,錯誤:0x80070005訪問被拒絕。」 – megazoid 2011-04-10 10:02:37