Web.config 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. 有关如何配置 ASP.NET 应用程序的详细信息,请访问
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  10. </configSections>
  11. <connectionStrings>
  12. <add name="EMISOnlineContextContainer" providerName="System.Data.SqlClient" connectionString="Data Source=.;Initial Catalog=Gzzy.EmisOnline;Persist Security Info=True;User ID=sa;Password=1;Pooling=True;" />
  13. </connectionStrings>
  14. <appSettings>
  15. <!--MVC组件配置begin-->
  16. <add key="webpages:Version" value="2.0.0.0" />
  17. <add key="webpages:Enabled" value="false" />
  18. <add key="PreserveLoginUrl" value="true" />
  19. <add key="ClientValidationEnabled" value="true" />
  20. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  21. <!--MVC组件配置end-->
  22. <!--登录信息cookies名配置begin-->
  23. <add key="logincookieName" value="EMISOnline_Login" />
  24. <!--登录信息cookies名配置end-->
  25. <!--登录信息容器配置begin-->
  26. <add key="CustomPrincipanAssembly" value="EMISOnline.Utility" />
  27. <add key="CustomPrincipanClass" value="EMISOnline.Utility.FormValidate.CustomPrincipal" />
  28. <!--登录信息容器配置end-->
  29. <!--工作流接口账号密码配置begin-->
  30. <add key="sys_InsertingID" value="79972b0d414d44bd86d816d90114e79f" />
  31. <add key="sys_InsertingPwd" value="53BF01E20E464120B2A94543312C0F34" />
  32. <!--工作流接口账号密码配置end-->
  33. <!--上传文件路径配置begin-->
  34. <add key="FileUploadPath" value="~/Content/DownFile" />
  35. <!--上传文件路径配置begin-->
  36. <!--系统发件邮箱配置begin-->
  37. <add key="Mail_SMTPServer" value="smtp.126.com" />
  38. <add key="Mail_SMTPPort" value="25" />
  39. <add key="Mail_SMTPIsSSL" value="false" />
  40. <add key="Mail_Pop3Server" value="pop.126.com" />
  41. <add key="Mail_Pop3Port" value="110" />
  42. <add key="Mail_Pop3IsSSL" value="false" />
  43. <add key="Mail_UserName" value="jwcksk" />
  44. <add key="Mail_Password" value="jwc6502303" />
  45. <!--系统发件邮箱配置end-->
  46. <!--7Zip压缩/解压缩工具位置配置begin-->
  47. <add key="PathOf7Zip" value="bin\7z.exe" />
  48. <!--7Zip压缩/解压缩工具位置配置end-->
  49. <!--导入文件的储存地址、虚拟目录配置begin-->
  50. <add key="ImportFileVirtualFolder" value="/Content/DownFile/" />
  51. <!--导入文件的储存地址、虚拟目录配置end-->
  52. <!--单点登录配置,各高校有所不同(0表示关闭,1表示打开)begin-->
  53. <add key="IsSSOLogin" value="0"/>
  54. <add key="SSOHost" value="http://localhost:8045"/>
  55. <!--单点登录配置end-->
  56. </appSettings>
  57. <system.web>
  58. <httpRuntime maxRequestLength="999999999" requestPathInvalidCharacters="" />
  59. <httpModules>
  60. <add name="VerificationCodeModule" type="Bowin.Common.VerificationCodeModule,Bowin.Common" />
  61. </httpModules>
  62. <customErrors mode="Off" defaultRedirect="Error" />
  63. <compilation debug="true" targetFramework="4.0" />
  64. <authentication mode="Forms">
  65. <forms loginUrl="~/Account/Login" cookieless="UseUri" timeout="2880" enableCrossAppRedirects="true" />
  66. </authentication>
  67. <pages>
  68. <namespaces>
  69. <add namespace="System.Web.Helpers" />
  70. <add namespace="System.Web.Mvc" />
  71. <add namespace="System.Web.Mvc.Ajax" />
  72. <add namespace="System.Web.Mvc.Html" />
  73. <add namespace="System.Web.Optimization" />
  74. <add namespace="System.Web.Routing" />
  75. <add namespace="System.Web.WebPages" />
  76. </namespaces>
  77. </pages>
  78. <trust level="Full" originUrl="" />
  79. <!--<caching>
  80. <outputCacheSettings>
  81. <outputCacheProfiles>
  82. <add name="PublicOnly" duration="3600" location="Client"/>
  83. </outputCacheProfiles>
  84. </outputCacheSettings>
  85. </caching>-->
  86. </system.web>
  87. <location path="Content">
  88. <system.webServer>
  89. <staticContent>
  90. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.02:00:00" />
  91. <remove fileExtension=".zip" />
  92. <remove fileExtension=".rar" />
  93. <mimeMap fileExtension=".zip" mimeType="application/zip" />
  94. <mimeMap fileExtension=".rar" mimeType="application/octet-stream" />
  95. </staticContent>
  96. </system.webServer>
  97. </location>
  98. <location path="Scripts">
  99. <system.webServer>
  100. <staticContent>
  101. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.02:00:00" />
  102. </staticContent>
  103. </system.webServer>
  104. </location>
  105. <location path="FtpFile">
  106. <system.webServer>
  107. <staticContent>
  108. <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.02:00:00" />
  109. </staticContent>
  110. </system.webServer>
  111. </location>
  112. <system.webServer>
  113. <validation validateIntegratedModeConfiguration="false" />
  114. <modules runAllManagedModulesForAllRequests="true">
  115. <remove name="VerificationCodeModule"/>
  116. <add name="VerificationCodeModule" type="Bowin.Common.VerificationCodeModule,Bowin.Common" />
  117. </modules>
  118. <handlers>
  119. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  120. <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  121. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  122. <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
  123. <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
  124. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  125. </handlers>
  126. <httpProtocol>
  127. <customHeaders>
  128. <clear />
  129. </customHeaders>
  130. </httpProtocol>
  131. </system.webServer>
  132. <runtime>
  133. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  134. <dependentAssembly>
  135. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  136. <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
  137. </dependentAssembly>
  138. <dependentAssembly>
  139. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  140. <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
  141. </dependentAssembly>
  142. <dependentAssembly>
  143. <assemblyIdentity name="Autofac" publicKeyToken="17863af14b0044da" culture="neutral" />
  144. <bindingRedirect oldVersion="0.0.0.0-3.5.0.0" newVersion="3.5.0.0" />
  145. </dependentAssembly>
  146. <dependentAssembly>
  147. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  148. <bindingRedirect oldVersion="0.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
  149. </dependentAssembly>
  150. </assemblyBinding>
  151. </runtime>
  152. <entityFramework>
  153. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  154. <parameters>
  155. <parameter value="v11.0" />
  156. </parameters>
  157. </defaultConnectionFactory>
  158. <providers>
  159. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  160. </providers>
  161. </entityFramework>
  162. <system.serviceModel>
  163. <bindings>
  164. <basicHttpBinding>
  165. <binding name="entreeSoap" textEncoding="utf-8" maxReceivedMessageSize="16384000">
  166. <readerQuotas maxStringContentLength="16384000" />
  167. </binding>
  168. </basicHttpBinding>
  169. </bindings>
  170. <client>
  171. <!--工作流地址接入地址配置begin-->
  172. <endpoint address="http://192.168.0.66:8912/entree.asmx" binding="basicHttpBinding" bindingConfiguration="entreeSoap" contract="PlugworkflowServices.entreeSoap" name="entreeSoap" />
  173. <!--工作流地址接入地址配置end-->
  174. </client>
  175. </system.serviceModel>
  176. </configuration>