wcf服务中的System.ServiceModel.ServiceActivationException

ali*_*fer 2 apache-flex asp.net iis wcf

我试图通过Flex应用程序调用我的WCF服务.我收到了System.ServiceModel.ServiceActivationException.我已将集成Windows Auth切换为开启,匿名访问,并且我在web.config中将模拟设置为false.项目和虚拟目录的名称也相同.

可能是什么问题?

ali*_*fer 5

<bindings>
  <webHttpBinding>
    <binding name="WebHttpEndpointBinding">
      <security mode="TransportCredentialOnly">
        <transport clientCredentialType="Windows"/>
      </security>
    </binding>
  </webHttpBinding>
</bindings>
Run Code Online (Sandbox Code Playgroud)

这需要添加到配置文件中.