Web.config 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Pour plus d’informations sur la configuration de votre application ASP.NET, consultez la page
  4. http://go.microsoft.com/fwlink/?LinkId=169433
  5. -->
  6. <configuration>
  7. <configSections>
  8. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  9. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  10. </configSections>
  11. <appSettings>
  12. <add key="webpages:Version" value="2.0.0.0" />
  13. <add key="webpages:Enabled" value="false" />
  14. <add key="PreserveLoginUrl" value="true" />
  15. <add key="ClientValidationEnabled" value="true" />
  16. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  17. </appSettings>
  18. <system.web>
  19. <httpRuntime targetFramework="4.5.1" />
  20. <compilation debug="true" targetFramework="4.5.1" />
  21. <pages>
  22. <namespaces>
  23. <add namespace="System.Web.Helpers" />
  24. <add namespace="System.Web.Mvc" />
  25. <add namespace="System.Web.Mvc.Ajax" />
  26. <add namespace="System.Web.Mvc.Html" />
  27. <add namespace="System.Web.Routing" />
  28. <add namespace="System.Web.WebPages" />
  29. </namespaces>
  30. </pages>
  31. </system.web>
  32. <system.webServer>
  33. <validation validateIntegratedModeConfiguration="false" />
  34. <handlers>
  35. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  36. <remove name="OPTIONSVerbHandler" />
  37. <remove name="TRACEVerbHandler" />
  38. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  39. </handlers>
  40. </system.webServer>
  41. <entityFramework>
  42. <!-- Suppression du provider par défaut qui stipule SQL server
  43. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  44. -->
  45. <providers>
  46. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  47. </providers>
  48. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
  49. </entityFramework>
  50. <oracle.manageddataaccess.client>
  51. <version number="*">
  52. <dataSources>
  53. <!-- Définition du datasource, cet alias est utilisé par la connexion Entity -->
  54. <dataSource alias="ETU811" descriptor="(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = T-ORADB-01.cg67.fr)(PORT = 1523)))(CONNECT_DATA =(SERVICE_NAME = ETU811)))" />
  55. </dataSources>
  56. </version>
  57. </oracle.manageddataaccess.client>
  58. <connectionStrings>
  59. <!-- 1ère connexion nécessaire pour créer le model Entity -->
  60. <add name="OracleConnection" providerName="Oracle.ManagedDataAccess.Client" connectionString="User Id=FER;Password=fer;Data Source=T-ORADB-01.cg67.fr:1523/ETU811" />
  61. </connectionStrings>
  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-3.0.0.0" newVersion="3.0.0.0" />
  67. </dependentAssembly>
  68. <dependentAssembly>
  69. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  70. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  71. </dependentAssembly>
  72. <dependentAssembly>
  73. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  74. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  75. </dependentAssembly>
  76. <dependentAssembly>
  77. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  78. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  79. </dependentAssembly>
  80. <dependentAssembly>
  81. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  82. <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
  83. </dependentAssembly>
  84. <dependentAssembly>
  85. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  86. <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  87. </dependentAssembly>
  88. </assemblyBinding>
  89. </runtime>
  90. </configuration>