简体   繁体   English

IIS中的HTTP错误500.19-如何解决此问题?

[英]HTTP Error 500.19 in IIS- how to fix this?

I am trying to deploy SharePoint web parts I developed in Visual Studio 2010 onto a SharePoint 2010 server. 我正在尝试将在Visual Studio 2010中开发的SharePoint Web部件部署到SharePoint 2010服务器上。 The problem is that when I go to the .svc file in IIS and browse it, I receive the error: 问题是当我转到IIS中的.svc文件并浏览它时,收到错误消息:

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. HTTP错误500.19-内部服务器错误无法访问请求的页面,因为该页面的相关配置数据无效。

There's a link on the page that tells me that there's a malformed XML element in my web.config. 该页面上有一个链接,告诉我web.config中存在一个格式错误的XML元素。 But I don't see any: 但我看不到:

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>

I am unsure what is causing this. 我不确定是什么原因造成的。 I set up an application pool in IIS for a similar project that has the exact same web.config (with a few minor name changes) and that works. 我在IIS中为一个类似的项目设置了一个应用程序池,该项目具有完全相同的web.config(有一些次要的名称更改)并且可以工作。 Both are under Default Web Site (and need to). 两者都在“默认网站”下(并且需要)。 What should I do? 我该怎么办? where should I look? 我应该在哪里看?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM