简体   繁体   English

错误500.19本地IIS

[英]Error 500.19 local IIS

I have a wcf service. 我有wcf服务。 It use local IIS server. 它使用本地IIS服务器。

My web.config is : 我的web.config是:

<?xml version="1.0"?>
<configuration> 
  <system.web>
    <authentication mode="Windows"/>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <customBinding>
        <binding name="InstantMessagingBinding" closeTimeout="00:00:45">
          <textMessageEncoding>
            <readerQuotas maxStringContentLength="200000" maxArrayLength="200000" />
          </textMessageEncoding>
          <httpTransport keepAliveEnabled="false" maxReceivedMessageSize="200000" authenticationScheme="Ntlm"/>
        </binding>
      </customBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="InstantMessagingBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    <services>
      <service name="Isima.InstantMessaging.WcfService.ContactService" behaviorConfiguration="InstantMessagingBehavior">
        <endpoint address=""
          binding="customBinding" bindingConfiguration="InstantMessagingBinding"
          contract="Isima.InstantMessaging.WcfService.IContactService" >
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
      </service>          
    </services>
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>

And when I run my service, I get an error 当我运行服务时,出现错误 在此处输入图片说明

This error is about "This problem can occur when the specified part of the IIS configuration file is locked at a higher level configuration." 此错误是关于“当IIS配置文件的指定部分锁定在更高级别的配置时,可能会发生此问题。”

Why this error? 为什么会出现这个错误?

Check, if all application development components are installed for IIS. 检查是否为IIS安装了所有应用程序开发组件。 eg .NET and ASP.NET. 例如.NET和ASP.NET。 See the add/remove windows-feature dialog in the control panel and check the installed IIS components. 请参阅控制面板中的“添加/删除Windows功能”对话框,并检查已安装的IIS组件。

I always install all development components (ASP.NET, ...). 我总是安装所有开发组件(ASP.NET,...)。

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

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