silverlight 提供的 URI 方案“http”无效;预期的“https”

问题描述

我试图从 Silverlight 应用程序访问网络服务,但我不断收到错误 ''

web.config 是为 webservice 设置的,如下所示。

      <system.serviceModel>
    <bindings>
      <customBinding>
        <binding name="CustomMapper">
          <binaryMessageEncoding />
          <httpTransport />
        </binding>
      </customBinding>
      <webHttpBinding>
        <binding name="LargeString" maxReceivedMessageSize="5000000">
          <readerQuotas maxStringContentLength="2147483647" />
          <security mode="None" />
        </binding>
      </webHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost/commonSVC/Common.svc/customBinding" binding="customBinding" bindingConfiguration="CustomMapper" contract="rptProxy.Common" name="CustomBinding_Common" />
    </client>
    <behaviors>
      <serviceBehaviors>
        <behavior name="behavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="CommonSVC.CommonAspNetAjaxBehavior">
          <enableWebScript />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="1" />
    <services>
      <service name="CommonSVC.Common" behaviorConfiguration="behavior">
        <endpoint address="" behaviorConfiguration="CommonSVC.CommonAspNetAjaxBehavior" binding="webHttpBinding" contract="CommonSVC.Common" bindingConfiguration="LargeString" />
        <endpoint address="customBinding" bindingConfiguration="CustomMapper" binding="customBinding" contract="CommonSVC.Common" />
      </service>
    </services>
  </system.serviceModel>

谁能看到我可能遗漏的问题?

预先感谢您的帮助。

解决方法

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

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

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

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...