Asp.net IIS中的HTTP错误500.19-如何修复此问题?

Asp.net IIS中的HTTP错误500.19-如何修复此问题?,asp.net,iis,sharepoint,Asp.net,Iis,Sharepoint,我正在尝试将我在Visual Studio 2010中开发的SharePoint web部件部署到SharePoint 2010服务器上。问题是,当我转到IIS中的.svc文件并浏览它时,我收到错误: HTTP错误500.19-内部服务器错误 无法访问请求的页面,因为该页面的相关配置数据无效 页面上有一个链接告诉我web.config中有一个格式错误的XML元素。但我没有看到: 自闭症 我不确定这是什么原因造成的。我在IIS中为一个类似的项目设置了一个应用程序池,该项目具有完全相同的web.

我正在尝试将我在Visual Studio 2010中开发的SharePoint web部件部署到SharePoint 2010服务器上。问题是,当我转到IIS中的.svc文件并浏览它时,我收到错误:

HTTP错误500.19-内部服务器错误 无法访问请求的页面,因为该页面的相关配置数据无效

页面上有一个链接告诉我web.config中有一个格式错误的XML元素。但我没有看到:

自闭症



我不确定这是什么原因造成的。我在IIS中为一个类似的项目设置了一个应用程序池,该项目具有完全相同的web.config(只做了一些小的名称更改),并且可以正常工作。两者都在默认网站下(并且需要)。我该怎么办?我应该看哪里?

我刚刚意识到:我必须右键单击Web应用程序项目,转到Web选项卡,然后单击“使用本地IIS Web服务器”选项。

您能在XML记事本中成功打开Web.config文件吗?如果有错误,它会提示您。重命名为.xml并尝试在firefox中打开时,也会显示遇到的任何错误。使用xml记事本而不更改为.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>