web.config的配置

<? xml version="1.0" ?>
<!--  
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    WindowsMicrosoft.NetFramework 2.xConfig 
-->
< configuration >
    
< appSettings />
    
< connectionStrings >
  
< add  name ="dangweiConnectionString"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString2"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="sqlconn"  connectionString ="server=192.168.0.200cs;database=dangwei;
uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString3"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString4"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString5"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString6"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString7"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
  
< add  name ="dangweiConnectionString8"  connectionString ="Data Source=192.168.0.200cs;
Initial Catalog=dangwei;uid=sa;pwd=404;"

   providerName
="System.Data.SqlClient"   />
 
</ connectionStrings >
    
< system .web >
        
<!--  
            Set compilation debug="true" to insert debugging 
            symbols into the compiled page. Because this 
            affects performance, set this value to true only 
            during development.
        
-->
        
< httpHandlers >
   
< add  path ="Reserved.ReportViewerWebControl.axd"  verb ="*"
type
="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms,
Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

    validate
="false"   />
  
</ httpHandlers >
  
< compilation  debug ="true" >
   
< buildProviders >
    
< add  extension =".rdlc"  type ="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.
Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
  />
   
</ buildProviders >
  
</ compilation >
        
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        
-->
        
< authentication  mode ="Forms" >
        
< forms  loginUrl ="denglu.aspx" />
        
        
<!--
            The <customErrors> section enables configuration 
            of what to do if/when an unhandled error occurs 
            during the execution of a request. Specifically, 
            it enables developers to configure html error pages 
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        
-->
        
</ authentication >
        
    
</ system.web >
  
< system .web >
    
< customErrors  mode ="Off" />
  
</ system.web >
    
< location  path ="security" >
    
        
    
    
< system .web >
    
< authorization >
    
< deny  users ="?" />
    
< deny  users ="*" />
    
</ authorization >
        
</ system.web >
        
</ location >
</ configuration >






终于把服务器上的web.config搞定啦,哈哈哈

你可能感兴趣的:(web.config的配置)