开发者

silverlight picking basic instead of wsHttpBinding

When I add a service silverlight is picking basic instead of wsHttpBinding. What might cause this and how can I avoid it? This is my web.config:

<configuration>
        <system.web>
            <compilation debug="true" targetFramework="4.0" />
        </system.web>

        <system.serviceModel>
            <standardEndpoints />
            <bindings />
            <services>
                <service name="Service2">
                    <endpoint binding="wsHttpBi开发者_Go百科nding" 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>


Didn't put the namespace in Not supported by silverlight

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜