通过更改web.config内容,我遇到了麻烦。经过这么多的追踪,我发现它的原因是因为我改变了web.config。
当我更改我的web.config文件时,UseSSL参数变为“False”。这导致了许多问题,如支付网关。
有人可以告诉我哪件事是假的吗?
以下是旧web.config中没有的新元素。
<configuration>
<system.web>
<compilation debug="false" strict="true" explicit="true" targetFramework="4.6.2" optimizeCompilations="true" enablePrefetchOptimization="true">
<assemblies>
</assemblies>
</compilation>
<trace enabled="false" localOnly="true"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" pageParserFilterType="BVSoftware.Bvc5.Core.Utilities.BVPageParserFilter">
<authentication mode="None"/>
<httpCookies httpOnlyCookies="true" requireSSL="false" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/Error.aspx" responseMode="ExecuteURL" />
<error statusCode="403" subStatusCode="14" path="/Error.aspx" responseMode="ExecuteURL" />
</httpErrors>
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
</staticContent>
<httpCookies httpOnlyCookies="true" requireSSL="false" />
</system.webServer>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="FirstDataGlobalGatewayE4">
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://api.xxxxxxxxxx.firstdata.com/transaction/v11"
binding="basicHttpBinding" bindingConfiguration="FirstDataGlobalGatewayE4"
contract="FirstDataService.ServiceSoap" name="FirstDataGlobalGatewayE4" />
</client>
</system.serviceModel>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true" />
</runtime>
</configuration>