Advertisement
onzulin

global.asax

Feb 19th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.89 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3.   Para obtener más información acerca de cómo configurar una aplicación ASP.NET, consulte
  4.   http://go.microsoft.com/fwlink/?LinkId=301880
  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=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  10.   </configSections>
  11.   <connectionStrings>
  12.     <!--<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-RestAPIPlanningActivities-20150216013941.mdf;Initial Catalog=aspnet-RestAPIPlanningActivities-20150216013941;Integrated Security=True"
  13.       providerName="System.Data.SqlClient" />-->
  14.     <!--<add name="MyDbContext" providerName="System.Data.SqlClient" connectionString="Data Source=WIN8\SQLEXPRESS;Initial Catalog=RestPlanningActivities;Integrated Security=True;MultipleActiveResultSets=True" />-->
  15.     <add name="MyDbContext" providerName="System.Data.SqlClient" connectionString="Data Source=WIN8\SQLEXPRESS;Initial Catalog=RestPlan;Integrated Security=True;MultipleActiveResultSets=True" />
  16.     <!--<add name="MyDbContext" connectionString="server=localhost;Port=3306 ;Uid=root;password=n98smxzt;database=planningactivitiesRest; CharSet=utf8;Persist Security Info = true" providerName="MySql.Data.MySqlClient" />-->
  17.   </connectionStrings>
  18.   <appSettings>
  19.     <add key="webpages:Version" value="3.0.0.0" />
  20.     <add key="webpages:Enabled" value="false" />
  21.     <add key="ClientValidationEnabled" value="true" />
  22.     <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  23.   </appSettings>
  24.   <system.web>
  25.     <authentication mode="None" />
  26.     <compilation debug="true" targetFramework="4.5" />
  27.     <httpRuntime targetFramework="4.5" />
  28.   </system.web>
  29.   <system.webServer>
  30.     <modules>
  31.       <remove name="FormsAuthentication" />
  32.     </modules>
  33.     <handlers>
  34.       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  35.       <remove name="OPTIONSVerbHandler" />
  36.       <remove name="TRACEVerbHandler" />
  37.       <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  38.     </handlers>
  39.   </system.webServer>
  40.   <runtime>
  41.     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  42.       <dependentAssembly>
  43.         <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" />
  44.         <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  45.       </dependentAssembly>
  46.       <dependentAssembly>
  47.         <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" />
  48.         <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  49.       </dependentAssembly>
  50.       <dependentAssembly>
  51.         <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" />
  52.         <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  53.       </dependentAssembly>
  54.       <dependentAssembly>
  55.         <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" />
  56.         <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  57.       </dependentAssembly>
  58.       <dependentAssembly>
  59.         <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
  60.         <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
  61.       </dependentAssembly>
  62.       <dependentAssembly>
  63.         <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  64.         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  65.       </dependentAssembly>
  66.       <dependentAssembly>
  67.         <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  68.         <bindingRedirect oldVersion="1.0.0.0-5.2.2.0" newVersion="5.2.2.0" />
  69.       </dependentAssembly>
  70.       <dependentAssembly>
  71.         <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  72.         <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  73.       </dependentAssembly>
  74.       <dependentAssembly>
  75.         <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  76.         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  77.       </dependentAssembly>
  78.       <dependentAssembly>
  79.         <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  80.         <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  81.       </dependentAssembly>
  82.     </assemblyBinding>
  83.   </runtime>
  84.   <entityFramework>
  85.     <contexts>
  86.     <context type="RestAPIPlanningActivities.Models.MyDbContext, RestAPIPlanningActivities">
  87.       <databaseInitializer type="RestAPIPlanningActivities.Models.MyDbInitializer, RestAPIPlanningActivities" />
  88.     </context>
  89.   </contexts>
  90.     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
  91.     <providers>
  92.       <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  93.       <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
  94.     </providers>
  95.   </entityFramework>
  96. <system.data>
  97.     <DbProviderFactories>
  98.       <remove invariant="MySql.Data.MySqlClient" />
  99.       <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.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  100.     </DbProviderFactories>
  101.   </system.data></configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement