Advertisement
Guest User

web.config

a guest
Mar 1st, 2018
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="emailConfigGroup">
  5. <section name="provider" type="OccasionalWork.WebUI.Infrastructure.Config.EmailSection" allowLocation="true" allowDefinition="Everywhere"/>
  6. </sectionGroup>
  7. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  8. </configSections>
  9. <connectionStrings>
  10. <add name="DefaultConnection" connectionString="server=xxx;user id=xx;pwd=xxx;database=occasionalwork;Convert Zero Datetime=True" providerName="MySql.Data.MySqlClient" />
  11. </connectionStrings>
  12. <log4net debug="true">
  13. <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
  14. <file value="logs\log.txt" />
  15. <appendToFile value="true" />
  16. <rollingStyle value="Size" />
  17. <maxSizeRollBackups value="10" />
  18. <maximumFileSize value="10MB" />
  19. <staticLogFileName value="true" />
  20. <layout type="log4net.Layout.PatternLayout">
  21. <conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - %m%n" />
  22. </layout>
  23. </appender>
  24. <root>
  25. <level value="DEBUG" />
  26. <appender-ref ref="RollingLogFileAppender" />
  27. </root>
  28. </log4net>
  29. <appSettings>
  30. <add key="webpages:Version" value="3.0.0.0" />
  31. <add key="webpages:Enabled" value="false" />
  32. <add key="ClientValidationEnabled" value="true" />
  33. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  34. </appSettings>
  35. <emailConfigGroup>
  36. <provider>
  37. <emailProvider username="noreply@occasionalwork.se"
  38. password="xxxx"
  39. email="noreply@occasionalwork.se"
  40. server="smtp01.binero.se"
  41. port="587"
  42. useSsl="false"/>
  43. </provider>
  44. </emailConfigGroup>
  45. <system.web>
  46. <authentication mode="Forms">
  47. <forms loginUrl="~/Account/Login" timeout="2880" />
  48. </authentication>
  49. <compilation debug="true" targetFramework="4.5.2">
  50. <assemblies>
  51. </assemblies>
  52. </compilation>
  53. <httpRuntime targetFramework="4.5.2" />
  54. </system.web>
  55. <runtime>
  56. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  57. <dependentAssembly>
  58. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  59. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  60. </dependentAssembly>
  61. <dependentAssembly>
  62. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  63. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  64. </dependentAssembly>
  65. <dependentAssembly>
  66. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  67. <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
  68. </dependentAssembly>
  69. </assemblyBinding>
  70. </runtime>
  71. <system.data>
  72. <DbProviderFactories>
  73. <remove invariant="MySql.Data.MySqlClient" />
  74. <add description=".Net Framework Data Provider for MySQL" invariant="MySql.Data.MySqlClient" name="MySQL Data Provider" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.10.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
  75. </DbProviderFactories>
  76. </system.data></configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement