0
我試圖將我在Visual Studio 2010中開發的SharePoint Web部件部署到SharePoint 2010服務器上。問題是,當我轉到IIS中的.svc文件並瀏覽它時,我收到錯誤:IIS中的HTTP錯誤500.19 - 如何解決這個問題?
HTTP錯誤500.19-內部服務器錯誤 請求的頁面無法訪問,因爲頁面的相關配置數據是無效。
頁面上有一個鏈接,告訴我web.config中存在格式錯誤的XML元素。但我沒有看到任何:
ASD
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<identity impersonate="true" userName="******\*******" password=*******>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
我不能確定是什麼原因造成這一點。我在IIS中爲一個類似的項目設置了一個應用程序池,該項目具有完全相同的web.config(有一些小的名稱更改),並且工作正常。兩者都在默認網站(並且需要)下。我該怎麼辦?我應該在哪裏看?
您可以在XML記事本中成功打開web.config文件嗎?它應該會提示你是否有錯誤。重命名爲.xml並嘗試在Firefox中打開時也應該顯示遇到的任何錯誤。 – ssnobody 2014-08-28 19:19:25
使用XML記事本而不更改爲.xml會將第一行的所有內容都留空。我似乎無法更改文件擴展名.. – Chris 2014-08-28 20:14:47