C# 通过SSL的.Net web服务?
我刚刚将服务更改为严格通过SSL工作,并收到以下错误:{“提供的URI方案‘https’无效;应为‘http’。\r\n参数名称:via”} 我不知道我不能仅仅改变协议,从我在谷歌上看到的,这可能是网络配置的改变,但我不知道在哪里。这是我当前的网页配置。感谢您的帮助!:C# 通过SSL的.Net web服务?,c#,web-services,C#,Web Services,我刚刚将服务更改为严格通过SSL工作,并收到以下错误:{“提供的URI方案‘https’无效;应为‘http’。\r\n参数名称:via”} 我不知道我不能仅仅改变协议,从我在谷歌上看到的,这可能是网络配置的改变,但我不知道在哪里。这是我当前的网页配置。感谢您的帮助!: <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please vi
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</configSections>
<microsoft.web.services3>
<messaging>
<maxMessageLength value="-1"/>
<mtom serverMode="always"/>
<maxMessageLength value="2147483647"/>
</messaging>
</microsoft.web.services3>
<connectionStrings>
</connectionStrings>
<system.web>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<httpRuntime maxRequestLength="2147483647"/>
<httpHandlers>
</httpHandlers>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
<system.net>
</system.net>
</configuration>
我感谢您的反馈,但答案似乎是针对未公开签名的证书。我的是,当我在web浏览器中访问该地址时,我看不到任何错误,但是在通过代码调用该地址时,它仍然会出现此错误。此外,这是.net 4.0和IIS 7.5。如果是.net 4,为什么您使用的是web服务而不是WCF?还是我误读了?