silverlight选择基本而不是wsHttpBinding

时间:2011-04-12 17:49:53

标签: asp.net wcf web-services

当我添加服务时,silverlight正在选择basic而不是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>

1 个答案:

答案 0 :(得分:0)

没有把命名空间放进去 silverlight不支持