<?xml version="1.0" encoding="utf-8"?>
|
<!--
|
有关如何配置 ASP.NET 应用程序的详细信息,请访问
|
http://go.microsoft.com/fwlink/?LinkId=301879
|
-->
|
<configuration>
|
<appSettings>
|
<add key="webpages:Version" value="3.0.0.0" />
|
<add key="webpages:Enabled" value="false" />
|
<add key="ClientValidationEnabled" value="true" />
|
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
</appSettings>
|
<system.web>
|
<compilation debug="true" targetFramework="4.5" />
|
<httpRuntime targetFramework="4.5" />
|
<customErrors mode="Off" />
|
</system.web>
|
<system.webServer>
|
<httpProtocol>
|
<customHeaders>
|
<!--注意,我在WebApiConfig中已经配置了Cors跨域,这里的配置就不能配置了,否则会导致不能跨域 【Editby shaocx,2023-05-21】-->
|
<!--如果设置 Access-Control-Allow-Origin:*,则允许所有域名的脚本访问该资源-->
|
<!--<add name="Access-Control-Allow-Origin" value="*" />-->
|
<!--响应头设置(Content-Type:只限于三个值application/x-www-form-urlencoded、multipart/form-data、text/plain)-->
|
<!--<add name="Access-Control-Allow-Headers" value="auth,ContentType,Content-Type,content-type,Authorization" />-->
|
<!--响应类型 (值为逗号分隔的一个字符串,表明服务器支持的所有跨域请求的方法)-->
|
<!--<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />-->
|
</customHeaders>
|
</httpProtocol>
|
<directoryBrowse enabled="true" />
|
<handlers>
|
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
|
<remove name="OPTIONSVerbHandler" />
|
<remove name="TRACEVerbHandler" />
|
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
</handlers></system.webServer>
|
<runtime>
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<dependentAssembly>
|
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
|
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
|
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
|
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
|
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
|
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
<bindingRedirect oldVersion="0.0.0.0-5.2.9.0" newVersion="5.2.9.0" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
<bindingRedirect oldVersion="0.0.0.0-5.2.9.0" newVersion="5.2.9.0" />
|
</dependentAssembly>
|
<dependentAssembly>
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
</dependentAssembly>
|
</assemblyBinding>
|
</runtime>
|
<connectionStrings>
|
<add name="Model1" connectionString="data source=.;initial catalog=WB20005QingQi-WMS;persist security info=True;user id=sa;password=123abc.com;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
|
</connectionStrings>
|
<system.serviceModel>
|
<bindings>
|
<basicHttpBinding>
|
<binding name="BasicHttpBinding_ISrmService" />
|
</basicHttpBinding>
|
</bindings>
|
<client>
|
<endpoint address="http://localhost:8733/Design_Time_Addresses/iWareSda_QQJF.SrmService/SrmService/"
|
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISrmService"
|
contract="SrmServer.ISrmService" name="BasicHttpBinding_ISrmService" />
|
</client>
|
</system.serviceModel>
|
</configuration>
|