Advertisement
Guest User

web.config

a guest
Oct 18th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.47 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=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="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  13.     <add key="webpages:Version" value="1.0.0.0" />
  14.     <add key="ClientValidationEnabled" value="true" />
  15.     <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  16.   </appSettings>
  17.   <system.web>
  18.     <compilation debug="true" targetFramework="4.5" />
  19.     <authentication mode="Forms">
  20.       <forms loginUrl="~/Account/LogOn" timeout="2880" />
  21.     </authentication>
  22.     <pages>
  23.       <namespaces>
  24.         <add namespace="System.Web.Helpers" />
  25.         <add namespace="System.Web.Mvc" />
  26.         <add namespace="System.Web.Mvc.Ajax" />
  27.         <add namespace="System.Web.Mvc.Html" />
  28.         <add namespace="System.Web.Routing" />
  29.         <add namespace="System.Web.WebPages" />
  30.       </namespaces>
  31.     </pages>
  32.     <httpRuntime targetFramework="4.5" requestValidationMode="4.5" encoderType="System.Web.Security.AntiXss.AntiXssEncoder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  33.     <machineKey compatibilityMode="Framework45" />
  34.     <profile defaultProvider="DefaultProfileProvider">
  35.       <providers>
  36.         <add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" applicationName="/" />
  37.       </providers>
  38.     </profile>
  39.     <membership>
  40.       <providers>
  41.         <add connectionStringName="RemoteDB" enablePasswordRetrieval="false"
  42.          enablePasswordReset="true" requiresQuestionAndAnswer="false"
  43.          requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6"
  44.          minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
  45.          applicationName="/" name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  46.       </providers>
  47.     </membership>
  48.     <roleManager>
  49.       <providers>
  50.         <add connectionStringName="RemoteDB" applicationName="/"
  51.          name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  52.       </providers>
  53.     </roleManager>
  54.     <sessionState mode="InProc" customProvider="DefaultSessionProvider">
  55.       <providers>
  56.         <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="RemoteDB" />
  57.       </providers>
  58.     </sessionState>
  59.   </system.web>
  60.   <system.webServer>
  61.     <validation validateIntegratedModeConfiguration="false" />
  62.   </system.webServer>
  63.   <runtime>
  64.     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  65.       <dependentAssembly>
  66.         <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  67.         <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
  68.       </dependentAssembly>
  69.     </assemblyBinding>
  70.   </runtime>
  71.   <entityFramework>
  72.     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  73.       <parameters>
  74.         <parameter value="v11.0" />
  75.       </parameters>
  76.     </defaultConnectionFactory>
  77.   </entityFramework>
  78.   <connectionStrings>
  79.     <add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-SkypeSpammerWeb-20121018205959;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-SkypeSpammerWeb-20121018205959.mdf" />
  80.     <add name="RemoteDB" providerName="System.Data.SqlClient" connectionString="Data Source=xxxxxxx.com;Integrated Security=True;Initial Catalog=xxxxxx;User ID=xxxxxx;Password=xxxxxxxx"/>
  81.   </connectionStrings>
  82. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement