Advertisement
junh1024

webconfig2

Nov 23rd, 2015
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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=301880
  5.   -->
  6. <configuration>
  7.   <configSections>
  8.    
  9.     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  10.   <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
  11.   <connectionStrings>
  12.     <!--<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=&quot;|DataDirectory|\aspnet-Some University-20151116094859.mdf&quot;;Initial Catalog=&quot;aspnet-Some University-20151116094859&quot;;Integrated Security=True" providerName="System.Data.SqlClient" />-->
  13.     <add name="UniversityContext" connectionString="Database=acsm_e352d32255b3ea8;Data Source=au-cdbr-azure-southeast-a.cloudapp.net;User Id=XXX;Password=XXX;Persist Security Info=True"   providerName="MySql.Data.MySqlClient" />
  14.  
  15.  
  16.   </connectionStrings>
  17.   <appSettings>
  18.     <add key="webpages:Version" value="3.0.0.0" />
  19.     <add key="webpages:Enabled" value="false" />
  20.     <add key="ClientValidationEnabled" value="true" />
  21.     <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  22.   </appSettings>
  23.   <system.web>
  24.     <customErrors mode="Off" />
  25.     <authentication mode="None" />
  26.     <compilation debug="true" targetFramework="4.5.1" />
  27.     <httpRuntime targetFramework="4.5.1" />
  28.   </system.web>
  29.   <system.webServer>
  30.     <modules>
  31.       <remove name="FormsAuthenticationModule" />
  32.     </modules>
  33.   </system.webServer>
  34.   <runtime>
  35.     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  36.       <dependentAssembly>
  37.         <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  38.         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  39.       </dependentAssembly>
  40.       <dependentAssembly>
  41.         <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  42.         <bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
  43.       </dependentAssembly>
  44.       <dependentAssembly>
  45.         <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  46.         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  47.       </dependentAssembly>
  48.       <dependentAssembly>
  49.         <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  50.         <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  51.       </dependentAssembly>
  52.    
  53.     <dependentAssembly>
  54.             <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral" />
  55.             <bindingRedirect oldVersion="0.0.0.0-6.9.8.0" newVersion="6.9.8.0" />
  56.         </dependentAssembly>
  57.     </assemblyBinding>
  58.   </runtime>
  59.   <entityFramework>
  60.     <!--<contexts>
  61.       <context type="Some_University.DAL.UniversityContext, Some_University">
  62.         <databaseInitializer type="Some_University.DAL.UniversityInitializer, Some_University" />
  63.       </context>
  64.     </contexts>-->
  65.    
  66.     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  67.       <parameters>
  68.         <parameter value="v11.0" />
  69.       </parameters>
  70.     </defaultConnectionFactory>
  71.     <providers>
  72.       <!--<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />-->
  73.       <!--<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />-->
  74.     <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
  75.       </provider></providers>
  76.   </entityFramework>
  77. <system.data>
  78.     <DbProviderFactories>
  79.       <!--<remove name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" />-->
  80.       <!--<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />-->
  81.     <remove invariant="MySql.Data.MySqlClient" /><add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /></DbProviderFactories>
  82.   </system.data></configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement