From 2fd6cde7ed484700ddeefb63f54fd8a11e8eb79b Mon Sep 17 00:00:00 2001 From: jingh <jingh@LAPTOP-I53VDLOO> Date: 星期六, 07 八月 2021 17:16:40 +0800 Subject: [PATCH] 1 --- WebAPI/Web.config | 35 +++++++++++++++++++++++------------ 1 files changed, 23 insertions(+), 12 deletions(-) diff --git a/WebAPI/Web.config b/WebAPI/Web.config index 04bdfa1..763b182 100644 --- a/WebAPI/Web.config +++ b/WebAPI/Web.config @@ -5,11 +5,21 @@ --> <configuration> <configSections> + <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="WebAPI.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> + <connectionStrings> + <add name="YqnConn" connectionString="Data Source=192.168.0.175;Initial Catalog=HX_LimsSys;User Id=HX_USER,Password=lc@841022;Integrated Security=True" /> + + </connectionStrings> + <appSettings> + <!--鏈嶅姟鍣ㄦ枃浠禝P鍦板潃--> + <!--<add key="FileIP" value="http://localhost:8082/LuBaoAPI"/>--> + <add key="FileIP" value="http://localhost:8080/"/> + <add key="sUrl" value="http://183.129.128.86:9090/WEBS-WMSTest/WebService1.asmx"/> <add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Enabled" value="false" /> <add key="ClientValidationEnabled" value="true" /> @@ -28,27 +38,20 @@ <httpRuntime /> <pages controlRenderingCompatibilityVersion="4.0" /> </system.web> - <system.webServer> - <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.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" /> + <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-4.5.0.0" newVersion="4.5.0.0" /> + <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" /> - <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" /> + <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> @@ -68,10 +71,18 @@ </dependentAssembly> </assemblyBinding> </runtime> +<system.webServer> + <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> <applicationSettings> <WebAPI.Properties.Settings> <setting name="WebAPI_WebS_WebService1" serializeAs="String"> - <value>http://124.70.129.242/WEBS-WMS/WebService1.asmx</value> + <value>http://localhost/WEBS-WMSTest/WebService1.asmx</value> </setting> </WebAPI.Properties.Settings> </applicationSettings> -- Gitblit v1.9.1