Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Web.config 5.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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=301879
  5. -->
  6. <configuration>
  7. <configSections>
  8. <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
  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. <loggingConfiguration name="Logging Application Block" tracingEnabled="true" defaultCategory="GeneralLog" logWarningsWhenNoCategoriesMatch="true">
  12. <listeners>
  13. <add name="Database Trace Listener" type="Microsoft.Practices.EnterpriseLibrary.Logging.Database.FormattedDatabaseTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" databaseInstanceName="Logs-test" writeLogStoredProcName="dbo.WriteLog" addCategoryStoredProcName="dbo.AddCategory" formatter="Text Formatter" traceOutputOptions="None" />
  14. </listeners>
  15. <formatters>
  16. <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" template="Timestamp: {tab}{timestamp}&#xA;Category: {tab}{category}&#xA;Activity Code: {tab}{eventid}&#xA;Priority: {tab}{priority}&#xA;Severity: {tab}{severity}&#xA;UserName: {tab}{title}&#xA;Machine: {tab}{machine}&#xA;Application: {tab}{appDomain}&#xA;Session Id: {tab}{processId}&#xA;Win32 ThreadId: {win32ThreadId}&#xA;Thread Name: {tab}{threadName}&#xA;Message: {tab}{message}&#xA;Payload: {tab}{processName}&#xA;Extended Properties: {newline}{dictionary({key} - {value}&#xA;)}" name="Text Formatter" />
  17. <add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" template="Extended Properties: {newline}{dictionary({key} - {value}&#xA;)}" name="Text Formatter for DB" />
  18. </formatters>
  19. <categorySources>
  20. <add switchValue="All" name="GeneralLog">
  21. <listeners>
  22. <add name="Database Trace Listener" />
  23. </listeners>
  24. </add>
  25. </categorySources>
  26. <specialSources>
  27. <allEvents switchValue="All" name="All Events">
  28. <listeners>
  29. <add name="Database Trace Listener" />
  30. </listeners>
  31. </allEvents>
  32. <notProcessed switchValue="All" name="Unprocessed Category">
  33. <listeners>
  34. <add name="Database Trace Listener" />
  35. </listeners>
  36. </notProcessed>
  37. <errors switchValue="All" name="Logging Errors &amp; Warnings">
  38. <listeners>
  39. <add name="Database Trace Listener" />
  40. </listeners>
  41. </errors>
  42. </specialSources>
  43. </loggingConfiguration>
  44. <connectionStrings>
  45. <add name="Logs-test" connectionString="Server=127.0.0.1;Database=Logs-test;Integrated Security=True" providerName="System.Data.SqlClient" />
  46. </connectionStrings>
  47. <appSettings>
  48. <add key="webpages:Version" value="3.0.0.0" />
  49. <add key="webpages:Enabled" value="false" />
  50. <add key="ClientValidationEnabled" value="true" />
  51. <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  52. </appSettings>
  53. <system.web>
  54. <compilation debug="true" targetFramework="4.5" />
  55. <httpRuntime targetFramework="4.5" />
  56. </system.web>
  57. <system.webServer>
  58. <handlers>
  59. <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  60. <remove name="OPTIONSVerbHandler" />
  61. <remove name="TRACEVerbHandler" />
  62. <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
  63. </handlers>
  64. </system.webServer>
  65. <runtime>
  66. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  67. <dependentAssembly>
  68. <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
  69. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  70. </dependentAssembly>
  71. <dependentAssembly>
  72. <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
  73. <bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
  74. </dependentAssembly>
  75. <dependentAssembly>
  76. <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" />
  77. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  78. </dependentAssembly>
  79. <dependentAssembly>
  80. <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
  81. <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
  82. </dependentAssembly>
  83. <dependentAssembly>
  84. <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
  85. <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
  86. </dependentAssembly>
  87. </assemblyBinding>
  88. </runtime>
  89. </configuration>