none
请问如何将silverlight发布成Https RRS feed

  • 问题

  • 我把站点改成https,但出现"调用资源字符串不可用。密钥和参数通常提供足够的信息用以诊断该问题"错误
    我将xap文件里的ServiceReferences.ClientConfig所有路径都改成https之后还是不行
    请大家帮我看看什么原因,谢谢了
    <configuration>
        <system.serviceModel>
            <bindings>
                <customBinding>
                    <binding name="CustomBinding_ITest">
                        <binaryMessageEncoding />
                        <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
                    </binding>
                </customBinding>
            </bindings>
            <client>
                <endpoint address="http://localhost:1786/Test.svc" binding="customBinding"
                    bindingConfiguration="CustomBinding_ITest" contract="ServiceReference1.ITest"
                    name="CustomBinding_ITest" />
            </client>
        </system.serviceModel>
    </configuration>

    web.config 

     <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="MySilverlight.Web.TestBehavior">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <customBinding>
            <binding name="customBinding0">
              <binaryMessageEncoding />
              <httpTransport />
            </binding>
          </customBinding>
        </bindings>
        <services>
          <service behaviorConfiguration="MySilverlight.Web.TestBehavior"
            name="MySilverlight.Web.Test">
            <endpoint address=""  binding="customBinding" bindingConfiguration="customBinding0" contract="MySilverlight.Web.ITest">
              <identity>
                <dns value="localhost" />
              </identity>
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
      </system.serviceModel>

    2010年4月16日 5:33

答案

全部回复