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>
    

解决方法

没有将名称空间放入 Silverlight不支持