App.config 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="Tofly">
  5. <section name="context" type="Tofly.Core.Context.Support.ContextHandler,Tofly.Core" />
  6. <section name="objects" type="Tofly.Core.Context.Support.DefaultSectionHandler, Tofly.Core" />
  7. </sectionGroup>
  8. <sectionGroup name="common">
  9. <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
  10. </sectionGroup>
  11. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  12. <section name="ormSection" type="Tofly.Data.Configuration.DbProviderSection, Tofly.Data" />
  13. </configSections>
  14. <Tofly>
  15. <context>
  16. <resource uri="class://Tofly.Data.dll" />
  17. <resource uri="class://Tofly.Data.ADO.dll" />
  18. <resource uri="class://Tofly.DataUI.dll" />
  19. <resource uri="class://Tofly.DataUI.Win.dll" />
  20. <resource uri="class://Tofly.DataGeter.dll" />
  21. <resource uri="class://Tofly.CoreUI.dll" />
  22. <resource uri="class://Tofly.CoreUI.Win.dll" />
  23. <resource uri="class://Tofly.CoreUI.Win.Form.dll" />
  24. <resource uri="class://Tofly.CoreUI.Win.Design.dll" />
  25. <resource uri="class://Tofly.CoreUI.Plot.dll" />
  26. <resource uri="class://Tofly.CoreUI.Plot.Win.dll" />
  27. <resource uri="class://Tofly.GIS.dll" />
  28. <resource uri="class://Tofly.GIS.ArcGIS.dll" />
  29. <resource uri="class://Tofly.GIS.SpatialAnalysis.ArcGIS.dll" />
  30. <resource uri="class://Tofly.GISUI.dll" />
  31. <resource uri="class://Tofly.GISUI.Draw.dll" />
  32. <resource uri="class://Tofly.GISUI.Element.dll" />
  33. <resource uri="class://Tofly.GISUI.Element.Win.dll" />
  34. <resource uri="class://Tofly.GISUI.Element.Win.ArcGIS.dll" />
  35. <resource uri="class://Tofly.GISUI.Win.dll" />
  36. <resource uri="class://Tofly.GISUI.Win.ArcGIS.dll" />
  37. <resource uri="class://Tofly.Tool.dll" />
  38. <resource uri="class://Tofly.ToolUI.dll" />
  39. <resource uri="class://Tofly.ToolUI.Win.dll" />
  40. <!--业务库配置-->
  41. <resource uri="appSettings://Objects" />
  42. <resource uri="config://Tofly/objects" />
  43. </context>
  44. <objects xmlns="http://www.Tofly.com.cn">
  45. <!--异常处理 配置开始-->
  46. <object type="Tofly.Core.Aop.Framework.AutoProxy.TypeNameAutoProxyCreator, Tofly.Core">
  47. <property name="TypeNames">
  48. <list>
  49. <!--<value>Tofly.UICore.*</value>
  50. <value>Tofly.Component.*</value>-->
  51. <!--<value>Tofly.Main.*</value>-->
  52. </list>
  53. </property>
  54. <property name="InterceptorNames">
  55. <list>
  56. <value>aroundAdvisor</value>
  57. </list>
  58. </property>
  59. </object>
  60. <object id="aroundAdvisor" type="Tofly.Core.Aop.Support.PublicMatchMethodPointcutAdvisor, Tofly.Core">
  61. <property name="Advice">
  62. <ref object="logExceptionAdvice" />
  63. </property>
  64. </object>
  65. <object id="logExceptionAdvice" type="Tofly.Core.Aspects.Exceptions.ExceptionHandlerAdvice, Tofly.Core">
  66. <property name="ExceptionHandlers">
  67. <list>
  68. <value>on exception (#e is T(System.Exception)) log #e.Message </value>
  69. </list>
  70. </property>
  71. </object>
  72. <!--异常处理 配置结束-->
  73. </objects>
  74. </Tofly>
  75. <ormSection>
  76. <ormElementCollection DefaultItem="Access_tofly">
  77. <ormElement Name="Access_tofly" ConnectionString="bih|aja|aad|aah|aja|aad|fa|gg|aje|ii|aad|aaa|aae|aaa|ajb|aaf|df|gd|aja|aaf|df|gi|gf|fi|fh|ff|d||hc|df|dh|ei|fh|ig|aaf|ig|ih|ig|aae|aja|fa|cg|ff|gc|gh|cg|ib|aaf|aaa|ajb|ajh|aba|df|aji|ajj|ef"
  78. DbProvideType="4" />
  79. <ormElement Name="Oracle_tofly" ConnectionString="ifa|fe|hd|fe|ff|fe|hc|fi|fa|fg|ha|hb|ha|ei|gh|fi|hd|gh|fe|gg|fi|fa|di|eg|ej|df|di|ed|ef|df|di|df|di|dh|eb|dg|fg|ha|hb|ha|ei|hc|fi|hb|hf|fi|hb|fa|di|eg|ej|df|di|ed|ef|df|di|df|di|dh|eb|ei|he|hc|fh|hb|gc|fh|fa|aab|aad|ajf|ie|ii|aac|aad|aac|ie|ii|aae|ei|hj|fe|hc|hc|hg|gi|hb|fh|fa|aab|aad|ajf|ie|ii|aac|aad|aac|ie|ii|aae|ei|hj|gi|hb|hd|fa|di|ec|ej|di|fd|ec|di|ec|di|dg|aaf|ii|aab|ei|hf|fi|hb|hc|gc|gi|gh|f|"
  80. DbProvideType="1" />
  81. </ormElementCollection>
  82. </ormSection>
  83. <common>
  84. <logging>
  85. <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
  86. <arg key="configType" value="INLINE" />
  87. </factoryAdapter>
  88. </logging>
  89. </common>
  90. <log4net>
  91. <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
  92. <file value="Logs\\syslog" />
  93. <appendToFile value="true" />
  94. <rollingStyle value="Date" />
  95. <maxSizeRollBackups value="100" />
  96. <maximumFileSize value="1000KB" />
  97. <staticLogFileName value="false" />
  98. <layout type="log4net.Layout.PatternLayout">
  99. <conversionPattern value="记录时间:%date " />
  100. </layout>
  101. </appender>
  102. <root>
  103. <level value="ERROR" />
  104. <appender-ref ref="RollingFileAppender" />
  105. </root>
  106. </log4net>
  107. <appSettings>
  108. <add key="MapStandardScale" value="5000, 6000, 8000, 10000, 15000, 20000, 25000, 30000, 50000, 100000, 150000, 200000, 250000, 300000, 500000, 800000, 1000000, 2000000, 3000000, 5000000" />
  109. <add key="Objects" value="" />
  110. <add key="InitProject" value="false" />
  111. <add key="ClientSettingsProvider.ServiceUri" value="" />
  112. </appSettings>
  113. <startup useLegacyV2RuntimeActivationPolicy="true">
  114. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  115. <supportedRuntime version="v2.0.50727" />
  116. </startup>
  117. <system.web>
  118. <membership defaultProvider="ClientAuthenticationMembershipProvider">
  119. <providers>
  120. <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
  121. </providers>
  122. </membership>
  123. <roleManager defaultProvider="ClientRoleProvider" enabled="true">
  124. <providers>
  125. <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
  126. </providers>
  127. </roleManager>
  128. </system.web>
  129. </configuration>