首页 > 代码库 > web.config 示例
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=http://www.mamicode.com/"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>
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。