Advertisement
Guest User

Client WebConfig

a guest
Aug 11th, 2013
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.92 KB | None | 0 0
  1. //CLIENT WEB CONFIG
  2. <?xml version="1.0"?>
  3. <!--
  4.  For more information on how to configure your ASP.NET application, please visit
  5.  http://go.microsoft.com/fwlink/?LinkId=169433
  6.  -->
  7. <configuration>
  8.   <system.web>
  9.     <customErrors mode="Off" defaultRedirect="ErrorPage.aspx"/>
  10.     <pages maintainScrollPositionOnPostBack="true"/>
  11.     <compilation debug="true" targetFramework="4.0"/>
  12.     <authentication mode="Forms">
  13.        <forms cookieless="UseCookies" loginUrl="Default.aspx" timeout="2880"/>
  14.     </authentication>
  15.    
  16.     <!--
  17.            If you are deploying to a cloud environment that has multiple web server instances,
  18.            you should change session state mode from "InProc" to "Custom". In addition,
  19.            change the connection string named "DefaultConnection" to connect to an instance
  20.            of SQL Server (including SQL Azure and SQL  Compact) instead of to SQL Server Express.
  21.      -->
  22.     <sessionState mode="InProc" customProvider="DefaultSessionProvider">
  23.       <providers>
  24.         <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection"/>
  25.       </providers>
  26.     </sessionState>
  27.   </system.web>
  28.   <system.webServer>
  29.    
  30.     <modules runAllManagedModulesForAllRequests="true"/>
  31.     <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
  32.       <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
  33.       <dynamicTypes>
  34.         <add mimeType="text/*" enabled="true"/>
  35.         <add mimeType="message/*" enabled="true"/>
  36.         <add mimeType="application/javascript" enabled="true"/>
  37.         <add mimeType="*/*" enabled="false"/>
  38.       </dynamicTypes>
  39.       <staticTypes>
  40.         <add mimeType="text/*" enabled="true"/>
  41.         <add mimeType="message/*" enabled="true"/>
  42.         <add mimeType="application/javascript" enabled="true"/>
  43.         <add mimeType="*/*" enabled="false"/>
  44.       </staticTypes>
  45.     </httpCompression>
  46.     <urlCompression doStaticCompression="true" doDynamicCompression="true"/>
  47.     <staticContent>
  48.       <clientCache cacheControlMaxAge="14.00:00:00" cacheControlMode="UseMaxAge"/>
  49.       <remove fileExtension=".js"/>
  50.       <mimeMap fileExtension=".js" mimeType="text/javascript"/>
  51.     </staticContent>
  52.   </system.webServer>
  53.   <system.serviceModel>
  54.     <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
  55.     <bindings>
  56.       <basicHttpBinding>
  57.         <binding name="BasicHttpBinding_ISRSService" />
  58.       </basicHttpBinding>
  59.     </bindings>
  60.     <client>
  61.       <endpoint address="http://localhost:53091/SRSService.svc" binding="basicHttpBinding"
  62.        bindingConfiguration="BasicHttpBinding_ISRSService" contract="WCFReference.ISRSService"
  63.        name="BasicHttpBinding_ISRSService" />
  64.     </client>
  65.   </system.serviceModel>
  66. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement