Advertisement
Guest User

Web.config

a guest
Apr 10th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.76 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3.  For more information on how to configure your ASP.NET application, please visit
  4.  http://go.microsoft.com/fwlink/?LinkId=152368
  5.  -->
  6. <configuration>
  7.   <configSections>
  8.     <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  9.     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
  10.   </configSections>
  11.   <appSettings>
  12.     <add key="webpages:Version" value="1.0.0.0"/>
  13.     <add key="ClientValidationEnabled" value="true"/>
  14.     <add key="UnobtrusiveJavaScriptEnabled" value="true"/>
  15.     <add key="MarkTest" value="default"/>
  16.   </appSettings>
  17.   <!--  <system.diagnostics>
  18.    <trace autoflush="true">
  19.      <listeners>
  20.        <add
  21.            name="textWriterTraceListener"
  22.            type="System.Diagnostics.TextWriterTraceListener"
  23.            initializeData="C:\log4net.txt" />
  24.      </listeners>
  25.    </trace>
  26.  </system.diagnostics>-->
  27.   <system.web>
  28.     <compilation debug="true" targetFramework="4.0"/>
  29.     <authentication mode="Forms">
  30.       <forms loginUrl="~/Account/LogOn" timeout="2880"/>
  31.     </authentication>
  32.     <pages controlRenderingCompatibilityVersion="4.0">
  33.       <namespaces>
  34.         <add namespace="System.Web.Helpers"/>
  35.         <add namespace="System.Web.Mvc"/>
  36.         <add namespace="System.Web.Mvc.Ajax"/>
  37.         <add namespace="System.Web.Mvc.Html"/>
  38.         <add namespace="System.Web.Routing"/>
  39.         <add namespace="System.Web.WebPages"/>
  40.       </namespaces>
  41.     </pages>
  42.     <httpRuntime/>
  43.     <profile defaultProvider="DefaultProfileProvider">
  44.       <providers>
  45.         <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/"/>
  46.       </providers>
  47.     </profile>
  48.     <membership defaultProvider="DefaultMembershipProvider">
  49.       <providers>
  50.         <add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
  51.       </providers>
  52.     </membership>
  53.     <roleManager defaultProvider="DefaultRoleProvider">
  54.       <providers>
  55.         <add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/"/>
  56.       </providers>
  57.     </roleManager>
  58.     <sessionState mode="InProc" customProvider="DefaultSessionProvider">
  59.       <providers>
  60.         <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection"/>
  61.       </providers>
  62.     </sessionState>
  63.   </system.web>
  64.   <system.webServer>
  65.     <validation validateIntegratedModeConfiguration="false"/>
  66.     <!-- existingReponse="PassThrough" should be used in development, but existingResponse="Replace" everywhere else -->
  67.     <httpErrors errorMode="Custom" existingResponse="Replace">
  68.       <clear />
  69.       <error statusCode="403" path="/StaticContent/Unauthorized" responseMode="ExecuteURL" />
  70.       <error statusCode="404" path="/StaticContent/PageNotFound" responseMode="ExecuteURL" />
  71.       <error statusCode="500" path="/StaticContent/Error" responseMode="ExecuteURL" />
  72.     </httpErrors>
  73.   </system.webServer>
  74.   <runtime>
  75.     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  76.       <dependentAssembly>
  77.         <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
  78.         <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0"/>
  79.       </dependentAssembly>
  80.     </assemblyBinding>
  81.   </runtime>
  82.   <entityFramework>
  83.     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  84.   </entityFramework>
  85.   <connectionStrings>
  86.     <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-MvcApplication2-20130218153733;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-MvcApplication2-20130218153733.mdf"/>
  87.   </connectionStrings>
  88. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement