[英]HTTP Error 500.19 in IIS- how to fix this?
我正在嘗試將在Visual Studio 2010中開發的SharePoint Web部件部署到SharePoint 2010服務器上。 問題是當我轉到IIS中的.svc文件並瀏覽它時,收到錯誤消息:
HTTP錯誤500.19-內部服務器錯誤無法訪問請求的頁面,因為該頁面的相關配置數據無效。
該頁面上有一個鏈接,告訴我web.config中存在一個格式錯誤的XML元素。 但我看不到:
阿斯
<?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(有一些次要的名稱更改)並且可以工作。 兩者都在“默認網站”下(並且需要)。 我該怎么辦? 我應該在哪里看?
我剛剛意識到:我必須右鍵單擊Web App項目,轉到“ Web”選項卡,然后單擊“使用本地IIS Web服務器”選項。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.