第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

WCF 服務(wù)未通過 https 從郵遞員處命中

WCF 服務(wù)未通過 https 從郵遞員處命中

C#
守候你守候我 2022-06-12 11:24:19
在添加 SSL 證書之前,郵遞員查詢正在命中。但是當(dāng)我添加 SSL 證書時,郵遞員請求不起作用。我附上了郵遞員請求的文件,以下是我的 webConfig 文件。它給出錯誤 400 Not Found。<?xml version="1.0" encoding="utf-8"?>    <configuration>      <configSections>        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">          <section name="SmartTrack.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />          <section name="CMSWebService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />        </sectionGroup>      </configSections>      <connectionStrings>        <add name="SmartTrack.Properties.Settings.connectionstring" connectionString="Data Source=localhost;Initial Catalog=CommandControl2.3;User ID=sa;Password=smarti123#" />      </connectionStrings>      <appSettings>        <add key="appVersion" value="15" />        <add key="appCode" value="1.2.3" />        <add key="appUpdatePriority" value="1" />      </appSettings>      <system.web>        <compilation debug="true" targetFramework="4.0" />      </system.web>      <system.serviceModel>        <bindings />        <client />        <serviceHostingEnvironment multipleSiteBindingsEnabled="True" />        <services>          <service behaviorConfiguration="Default" name="SmartTrack.CMSWebService">            <endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" contract="SmartTrack.ISmartTrack" />            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />          </service>        </services>        <behaviors>          <endpointBehaviors>            <behavior name="webBehavior">              <webHttp helpEnabled="true" />
查看完整描述

1 回答

?
臨摹微笑

TA貢獻(xiàn)1982條經(jīng)驗(yàn) 獲得超2個贊

您需要配置 https 端點(diǎn),然后在 IIS 中添加 https 協(xié)議并指定 https 證書。

https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-configure-an-iis-hosted-wcf-service-with-ssl

這是我的配置文件,其 http /https端點(diǎn)都已配置,希望對您有用。


       <system.serviceModel>

        <services>

<!--http, https are all configurated-->

          <service behaviorConfiguration="mybehavior" name="WcfService1.Service1"> <!--http, https are all configurated-->

            <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="mybinding"></endpoint>

            <endpoint address="" binding="webHttpBinding" contract="WcfService1.IService1" behaviorConfiguration="webbev" bindingConfiguration="com"></endpoint>

            <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"></endpoint>

          </service>

        </services>

        <bindings>

          <webHttpBinding>

            <binding name="mybinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" sendTimeout="00:10:00" receiveTimeout="00:10:00">

              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" />

              <security mode="Transport">

                <transport clientCredentialType="None"></transport>

              </security>

            </binding>

            <binding name="com">

              <security mode="None"></security>

            </binding>

          </webHttpBinding>

        </bindings>

        <behaviors>

          <serviceBehaviors>

            <behavior name="mybehavior">

              <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

              <serviceDebug includeExceptionDetailInFaults="false" />

            </behavior>

          </serviceBehaviors>

          <endpointBehaviors>

            <behavior name="webbev">

              <webHttp />

            </behavior>

          </endpointBehaviors>

        </behaviors>

        <protocolMapping>

          <add binding="basicHttpsBinding" scheme="https" />

        </protocolMapping>

        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />   </system.serviceModel>

結(jié)果。 順便說一句,我需要在 IIS 中配置 https/http 綁定基地址。https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/how-to-configure-an-iis-hosted-wcf-service-with-ssl如果有,請 隨時告訴我有什么我可以幫忙的。

http://img1.sycdn.imooc.com//62a55c9600016c2b08830447.jpg

查看完整回答
反對 回復(fù) 2022-06-12
  • 1 回答
  • 0 關(guān)注
  • 168 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號