Silverlight Picking Basic而不是wsHttpBinding

问题描述

| 当我添加服务时,silverlight会选择基本版本而不是wsHttpBinding。是什么原因引起的,如何避免呢?这是我的web.config:
<configuration>
        <system.web>
            <compilation debug=\"true\" targetFramework=\"4.0\" />
        </system.web>

        <system.serviceModel>
            <standardEndpoints />
            <bindings />
            <services>
                <service name=\"Service2\">
                    <endpoint binding=\"wsHttpBinding\" bindingConfiguration=\"\" name=\"Service2Endpoint\"
                        bindingName=\"wsHttpBindingFirst\" contract=\"IService2\" />
                </service>
            </services>
            <behaviors>
                <serviceBehaviors>
                    <behavior name=\"\">
                        <serviceMetadata httpGetEnabled=\"true\" />
                        <serviceDebug includeExceptionDetailInFaults=\"false\" />
                    </behavior>
                </serviceBehaviors>
            </behaviors>
            <serviceHostingEnvironment multipleSiteBindingsEnabled=\"true\" />
        </system.serviceModel>
    </configuration>
    

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)