wcf 服务中的 System.ServiceModel.ServiceActivationException [英] System.ServiceModel.ServiceActivationException in wcf service

查看:34
本文介绍了wcf 服务中的 System.ServiceModel.ServiceActivationException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 Flex 应用程序调用我的 WCF 服务.我收到 System.ServiceModel.ServiceActivationException.我打开了集成 Windows 身份验证,关闭了匿名访问,并且在我的 web.config 中将 impersonate 设置为 false.项目和虚拟目录的名称也相同.

I am trying to call my WCF service through a Flex application. I'm getting the System.ServiceModel.ServiceActivationException. I have Integrated Windows Auth switched to on, anonymous access off, and I've set impersonate to false in my web.config. The project and virtual dir are named the same too.

可能是什么问题?

推荐答案

<bindings>
  <webHttpBinding>
    <binding name="WebHttpEndpointBinding">
      <security mode="TransportCredentialOnly">
        <transport clientCredentialType="Windows"/>
      </security>
    </binding>
  </webHttpBinding>
</bindings>

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

This needed to be added to the config file.

这篇关于wcf 服务中的 System.ServiceModel.ServiceActivationException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆