web.config 示例
1 <?xml version="1.0" encoding="utf-8"?> 2 3 <!-- 4 有关如何配置 ASP.NET 应用程序的详细消息,请访问 5 http://go.microsoft.com/fwlink/?LinkId=169433 6 --> 7 8 <configuration> 9 <connectionStrings> 10 <add name="SqlConnString" connectionString="server=192.168.41.10;database=JXZLS;user id=sa;pwd=;Integrated Security=false;" providerName="System.Data.SqlClient"/> 11 <add name="OracleConnString" connectionString="server=FY_LY\SQLEXPRESS;database=FYZLS0627;user id=ASPNET;pwd=sa;Integrated Security=false;" providerName="System.Data.SqlClient"/> 12 </connectionStrings> 13 <appSettings> 14 <add key="DBType" value="SqlServer"/> 15 </appSettings> 16 <system.webServer> 17 18 <modules runAllManagedModulesForAllRequests="true"> 19 20 <add name="DomainServiceModule" preCondition="managedHandler" 21 type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 22 </modules> 23 <validation validateIntegratedModeConfiguration="false" /> 24 25 </system.webServer> 26 <system.web> 27 <httpModules> 28 <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> 29 </httpModules> 30 <compilation debug="true" targetFramework="4.0" /> 31 32 </system.web> 33 <system.serviceModel> 34 35 <behaviors> 36 <serviceBehaviors> 37 <behavior name="" > 38 <serviceMetadata httpGetEnabled="true" /> 39 <serviceDebug includeExceptionDetailInFaults="false" /> 40 41 42 </behavior> 43 </serviceBehaviors> 44 </behaviors> 45 <serviceHostingEnvironment aspNetCompatibilityEnabled="true" 46 multipleSiteBindingsEnabled="true" /> 47 48 </system.serviceModel> 49 50 </configuration>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。