Advertisement
Guest User

WCF WEB CONFIG

a guest
Aug 11th, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.36 KB | None | 0 0
  1. //WCF WEB.CONFIG
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <configuration>
  4.   <configSections>
  5.     <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  6.     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  7.   </configSections>
  8.   <appSettings />
  9.   <system.web>
  10.     <customErrors mode="Off"></customErrors>
  11.     <!--Delete this tag before publish, only in debug purpose-->
  12.     <compilation debug="true" targetFramework="4.0">
  13.       <assemblies>
  14.         <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  15.       </assemblies>
  16.     </compilation>
  17.     <httpRuntime />
  18.   </system.web>
  19.   <system.serviceModel>
  20.     <behaviors>      
  21.       <serviceBehaviors>
  22.         <behavior>
  23.           <!--To avoid disclosing metadata information, set the values below to false before deployment-->
  24.           <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
  25.           <!--To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information-->
  26.           <serviceDebug includeExceptionDetailInFaults="false" />
  27.         </behavior>
  28.       </serviceBehaviors>
  29.     </behaviors>
  30.     <protocolMapping>
  31.       <add binding="basicHttpBinding" scheme="http" />
  32.     </protocolMapping>
  33.     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  34.   </system.serviceModel>
  35.   <system.webServer>
  36.     <modules runAllManagedModulesForAllRequests="true" />    
  37.     <!--
  38.         To browse web app root directory during debugging, set the value below to true.
  39.         Set to false before deployment to avoid disclosing web app folder information.
  40.       -->
  41.     <directoryBrowse enabled="true" />
  42.   </system.webServer>
  43.   <entityFramework>
  44.     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  45.       <parameters>
  46.         <parameter value="v11.0" />
  47.       </parameters>
  48.     </defaultConnectionFactory>
  49.   </entityFramework>
  50.   <connectionStrings>
  51.     //removed security uploading issues.
  52.   </connectionStrings>
  53. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement