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.NetFramework2.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搞定啦,哈哈哈
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

superdont

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值