web.config文件

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
 <add key="SMS_UploadFiles_Path" value="E:\SMS_UploadFiles\" />
 <add key="ConnectionString" value="Provider=SQLOLEDB.1;Persist Security Info=False;User ID=wxoa;pwd=jroa123;Initial Catalog=WxOA;Data Source=ServerDB;Connect Timeout=30" />
  <add key="ConnnectionString" value="server=BOBO\PLAYBOY;database=ITExplorer;User id=sa;Pwd=sa"></add>
  </appSettings>
  <system.web>
 <httpHandlers>
  <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
  </httpHandlers>

  <compilation defaultLanguage="vb" debug="true" />
 <customErrors mode="RemoteOnly" defaultRedirect="error.aspx" />

 <authentication mode="Forms">
  <forms name="Debug" loginUrl="login.aspx" protection="All" timeout="30" path="/" />
 </authentication>

 <authorization>
          <deny users="?" />
 </authorization>

 <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="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="20"
    />
  <globalization requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" fileEncoding="gb2312" />

     <httpRuntime executionTimeout="300" maxRequestLength="30960" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
 
 <pages buffer="true" enableSessionState="true" enableViewState="true" enableViewStateMac="true" autoEventWireup="true" validateRequest="false" />
  </system.web>

 <location path="ValidateCode.aspx">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
 </location>
 
  <location path="error.aspx">
  <system.web>
   <authorization>
    <allow users="*" />
   </authorization>
  </system.web>
 </location>
</configuration>

posted @ 2006-10-11 14:14  RobotTech  阅读(312)  评论(0编辑  收藏  举报