Web.Config 5.4 KB
<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="ApplicationConfiguration" type="SysFramework.ApplicationConfiguration, SysFramework" />
    <section name="MyCMMIConfiguration" type="Comm.Configuration, Comm" />
  </configSections>
  <appSettings>
  </appSettings>
  <connectionStrings />
  <system.web>
    <compilation defaultLanguage="c#" debug="true">
      <compilers>
        <compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs" compilerOptions="/d:DEBUG;TRACE" />
      </compilers>
      <assemblies>
        <add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </assemblies>
    </compilation>
    <customErrors mode="RemoteOnly" />
    <!--  身份验证 
          此节设置应用程序的身份验证策略。可能的模式是“Windows”、“Forms”、





Passport”和“None





    -->
    <!--  应用程序级别跟踪记录
          应用程序级别跟踪在应用程序内为每一页启用跟踪日志输出。





          设置 trace enabled="true" 以启用应用程序跟踪记录。如果 pageOutput="true",则
          跟踪信息将显示在每一页的底部。否则,可以通过从 Web 应用程序
          根浏览 "trace.axd" 页来查看 
          应用程序跟踪日志。





    -->
    <trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
    <!--  会话状态设置





          默认情况下,ASP.NET 使用 cookie 标识哪些请求属于特定的会话。





          如果 cookie 不可用,则可以通过将会话标识符添加到 URL 来跟踪会话。





         若要禁用 cookie,请设置 sessionState cookieless="true"





    -->
    <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="2000" />
    <!--  全球化





          此节设置应用程序的全球化设置。





    -->
    <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    <xhtmlConformance mode="Legacy" />
  </system.web>
  <ApplicationConfiguration>
    <!-- Trace file settings -->
    <add key="SysFramework.Tracing.Enabled" value="true" />
    <!-- Set this to the file with the trace settings. This file should be relative
             to the root application directory. -->
    <add key="SysFramework.Tracing.TraceFile" value="DuwamishTrace.txt" />
    <!-- The TraceLevel for this switch.  -->
    <add key="SysFramework.Tracing.TraceLevel" value="4" />
    <!-- This switch name. The trace level for this name can be set through
             environment variables or the registry  -->
    <add key="SysFramework.Tracing.SwitchName" value="DuwamishTraceSwitch" />
    <!-- This description of the Tracing.SwitchName switch -->
    <add key="SysFramework.Tracing.SwitchDescription" value="Error and information tracing for Duwamish" />
    <!-- Event log settings
	Note: The default Escalade event source name is created in the local machine during setup. If you wish to log events to a different event source
              that event source must exist.
        -->
    <add key="SysFramework.EventLog.Enabled" value="True" />
    <add key="SysFramework.EventLog.Machine" value="." />
    <add key="SysFramework.EventLog.SourceName" value="MyCMMI" />
    <!-- Use the standard TraceLevel values:
             0 = Off
             1 = Error
             2 = Warning
             3 = Info
             4 = Verbose -->
    <add key="SysFramework.EventLog.LogLevel" value="1" />
  </ApplicationConfiguration>
  <MyCMMIConfiguration>
    <!-- Settings specific to the Duwamish application -->
    <add key="MyCMMI.DataAccess.ConnectionString" value="222207218231207218162222224204201209218208224226179200212216221138179175165228198178197211219213219221212197174221197172217198230206211198229207174219222213216222206158155154155172168217214211203205229207212223151184215228201222170183171177189171" />
    <add key="MyCMMI.Web.EnablePageCache" value="True" />
    <add key="MyCMMI.Web.PageCacheExpiresInSeconds" value="3600" />
    <add key="MyCMMI.Web.EnableSsl" value="False" />
    <add key="MyCMMI.WebService.ClientPath" value="D:\work\TestSoftware\App\bin\Debug\" />
    <add key="MyCMMI.MyCMMI.LicencePath" value="D:\Contamination Explorer.lic" />
    <add key="MyCMMI.MyCMMI.UpdateSwitch" value="True" />
  </MyCMMIConfiguration>
</configuration>