Advertisement
Guest User

Untitled

a guest
Aug 20th, 2013
497
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3.  For more information on how to configure your ASP.NET application, please visit
  4.  http://go.microsoft.com/fwlink/?LinkId=169433
  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.   <connectionStrings>
  12.     <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-TestProject-20130820191257;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-TestProject-20130820191257.mdf" providerName="System.Data.SqlClient" />
  13.   </connectionStrings>
  14.   <appSettings>
  15.     <add key="webpages:Version" value="2.0.0.0" />
  16.     <add key="webpages:Enabled" value="false" />
  17.     <add key="PreserveLoginUrl" value="true" />
  18.     <add key="ClientValidationEnabled" value="true" />
  19.     <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  20.   </appSettings>
  21.   <system.web>
  22.     <compilation debug="true" targetFramework="4.5" />
  23.     <httpRuntime targetFramework="4.5" />
  24.     <authentication mode="Forms">
  25.       <forms loginUrl="~/Account/Login" timeout="2880" />
  26.     </authentication>
  27.     <pages>
  28.       <namespaces>
  29.         <add namespace="System.Web.Helpers" />
  30.         <add namespace="System.Web.Mvc" />
  31.         <add namespace="System.Web.Mvc.Ajax" />
  32.         <add namespace="System.Web.Mvc.Html" />
  33.         <add namespace="System.Web.Optimization" />
  34.         <add namespace="System.Web.Routing" />
  35.         <add namespace="System.Web.WebPages" />
  36.       </namespaces>
  37.     </pages>
  38.     <httpModules>
  39.        <!--This section is used for IIS6-->
  40.       <add name="ContainerDisposal" type="Autofac.Integration.Web.ContainerDisposalModule, Autofac.Integration.Web" />
  41.       <!--<add name="PropertyInjection" type="Autofac.Integration.Web.Forms.PropertyInjectionModule, Autofac.Integration.Web" />
  42.      <add name="AttributeInjection" type="Autofac.Integration.Web.Forms.AttributedInjectionModule, Autofac.Integration.Web" />-->
  43.     </httpModules>
  44.   </system.web>
  45.   <system.webServer>
  46.     <validation validateIntegratedModeConfiguration="false" />
  47.     <handlers>
  48.       <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  49.       <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  50.       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  51.       <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
  52.       <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
  53.       <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  54.     </handlers>
  55.     <modules>
  56.       <add name="ContainerDisposal" type="Autofac.Integration.Web.ContainerDisposalModule, Autofac.Integration.Web" preCondition="managedHandler" />
  57.         <!-- Any of these two uncommented cause MVC part to fail-->
  58.       <!--<add name="PropertyInjection" type="Autofac.Integration.Web.Forms.PropertyInjectionModule, Autofac.Integration.Web" preCondition="managedHandler" />-->
  59.       <!--<add name="AttributedInjection" type="Autofac.Integration.Web.Forms.AttributedInjectionModule, Autofac.Integration.Web" preCondition="managedHandler" />-->
  60.     </modules>
  61.   </system.webServer>
  62.   <runtime>
  63.     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  64.       <dependentAssembly>
  65.         <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  66.         <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
  67.       </dependentAssembly>
  68.       <dependentAssembly>
  69.         <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  70.         <bindingRedirect oldVersion="1.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
  71.       </dependentAssembly>
  72.       <dependentAssembly>
  73.         <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  74.         <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
  75.       </dependentAssembly>
  76.     </assemblyBinding>
  77.   </runtime>
  78.   <entityFramework>
  79.     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  80.       <parameters>
  81.         <parameter value="v11.0" />
  82.       </parameters>
  83.     </defaultConnectionFactory>
  84.   </entityFramework>
  85. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement