Web.config 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. <section name="dotless" type="dotless.Core.configuration.DotlessConfigurationSectionHandler, dotless.Core" />
  10. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  11. <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  12. <section name="CD67.FicheCollege.MVC.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  13. </sectionGroup>
  14. </configSections>
  15. <connectionStrings>
  16. <add name="Entities" connectionString="metadata=res://*/EntityModel.csdl|res://*/EntityModel.ssdl|res://*/EntityModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=T-MSSQL-02\SQLSTD2K14;initial catalog=FicheCollege;persist security info=True;user id=FicheCollege_admin;password=bk9JFwqSwYw7mEPiOhnu;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  17. <add name="EducfEntities" connectionString="metadata=res://*/EducfModel.csdl|res://*/EducfModel.ssdl|res://*/EducfModel.msl;provider=Npgsql;provider connection string=&quot;Host=POSTGIS-01;Username=usereducfro;Password=usereducfR0;Port=5432;Database=educf&quot;" providerName="System.Data.EntityClient" />
  18. </connectionStrings>
  19. <appSettings>
  20. <add key="webpages:Version" value="2.0.0.0" />
  21. <add key="webpages:Enabled" value="false" />
  22. <add key="PreserveLoginUrl" value="true" />
  23. <add key="ClientValidationEnabled" value="true" />
  24. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  25. </appSettings>
  26. <!--
  27. Pour obtenir une description des modifications de web.config, voir http://go.microsoft.com/fwlink/?LinkId=235367.
  28. Les attributs suivants peuvent être définis dans la balise <httpRuntime>.
  29. <system.Web>
  30. <httpRuntime targetFramework="4.6.1" />
  31. </system.Web>
  32. -->
  33. <system.web>
  34. <globalization uiCulture="fr" culture="fr-FR" />
  35. <siteMap defaultProvider="MvcSiteMapProvider">
  36. <providers>
  37. <clear />
  38. <add name="MvcSiteMapProvider" type="MvcSiteMapProvider.DefaultSiteMapProvider, MvcSiteMapProvider" siteMapFile="~/Mvc.Sitemap" />
  39. </providers>
  40. </siteMap>
  41. <httpRuntime targetFramework="4.5.1" />
  42. <compilation debug="true" targetFramework="4.6.1" />
  43. <pages>
  44. <namespaces>
  45. <add namespace="System.Web.Helpers" />
  46. <add namespace="System.Web.Mvc" />
  47. <add namespace="System.Web.Mvc.Ajax" />
  48. <add namespace="System.Web.Mvc.Html" />
  49. <add namespace="System.Web.Routing" />
  50. <add namespace="System.Web.WebPages" />
  51. </namespaces>
  52. </pages>
  53. <httpHandlers>
  54. <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
  55. </httpHandlers>
  56. </system.web>
  57. <system.webServer>
  58. <staticContent>
  59. <clientCache cacheControlMode="UseMaxAge" cacheControlCustom="public" cacheControlMaxAge="0.00:00:00" />
  60. <remove fileExtension=".lang" />
  61. <mimeMap fileExtension=".lang" mimeType="application/json" />
  62. </staticContent>
  63. <validation validateIntegratedModeConfiguration="false" />
  64. <handlers>
  65. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  66. <remove name="OPTIONSVerbHandler" />
  67. <remove name="TRACEVerbHandler" />
  68. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  69. <add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" />
  70. </handlers>
  71. </system.webServer>
  72. <system.data>
  73. <DbProviderFactories>
  74. <add name="Npgsql Data Provider" invariant="Npgsql" description="Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" />
  75. <!--<add name="dotConnect for PostgreSQL" invariant="Devart.Data.PostgreSql" description="Devart dotConnect for PostgreSQL" type="Devart.Data.PostgreSql.PgSqlProviderFactory, Devart.Data.PostgreSql, Version= 7.10.1134.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />-->
  76. </DbProviderFactories>
  77. </system.data>
  78. <entityFramework>
  79. <!-- Suppression du provider par défaut qui stipule SQL server
  80. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  81. -->
  82. <providers>
  83. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  84. <provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql" />
  85. </providers>
  86. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  87. <parameters>
  88. <parameter value="mssqllocaldb" />
  89. </parameters>
  90. </defaultConnectionFactory>
  91. </entityFramework>
  92. <runtime>
  93. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  94. <dependentAssembly>
  95. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  96. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  97. </dependentAssembly>
  98. <dependentAssembly>
  99. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  100. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  101. </dependentAssembly>
  102. <dependentAssembly>
  103. <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  104. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  105. </dependentAssembly>
  106. <dependentAssembly>
  107. <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  108. <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  109. </dependentAssembly>
  110. <dependentAssembly>
  111. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  112. <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
  113. </dependentAssembly>
  114. <dependentAssembly>
  115. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  116. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  117. </dependentAssembly>
  118. <dependentAssembly>
  119. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  120. <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
  121. </dependentAssembly>
  122. <dependentAssembly>
  123. <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
  124. <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  125. </dependentAssembly>
  126. <dependentAssembly>
  127. <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
  128. <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
  129. </dependentAssembly>
  130. </assemblyBinding>
  131. </runtime>
  132. <dotless minifyCss="false" cache="true" web="false" strictMath="false" />
  133. <applicationSettings>
  134. <CD67.FicheCollege.MVC.Properties.Settings>
  135. <setting name="GetCodesPostaux_URL" serializeAs="String">
  136. <value>http://lunr4:8080/solr/referentiel-communes/select?q=id%3A{0}&amp;fl=code_postal&amp;wt=xml&amp;indent=true&amp;hl=false&amp;omitHeader=true</value>
  137. </setting>
  138. </CD67.FicheCollege.MVC.Properties.Settings>
  139. </applicationSettings>
  140. </configuration>