码迷,mamicode.com
首页 > Web开发 > 详细

web.config 示例

时间:2014-07-23 16:42:51      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   io   

 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>

web.config 示例,布布扣,bubuko.com

web.config 示例

标签:style   blog   http   color   os   io   

原文地址:http://www.cnblogs.com/itzhanghb/p/3863371.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!