日期:2014-05-17  浏览次数:20391 次

ASP.NET2.0 Web.config配置 ,在线等
XML code

<?xml version="1.0"?><configuration>
    <appSettings>
        <add key="ApplicationServices" value="Data Source=.;Initial Catalog=C:\COM.AOTIANHUOLI\COM.AOTIANHUOLI.WEB\APP_DATA\HIGHNIGHT.MDF;Integrated Security=True;max pool Size=512"/>
    
    <add key="signmoney" value="10"/>
    </appSettings>
    <connectionStrings>
  <add name="C:\COM.AOTIANHUOLI\COM.AOTIANHUOLI.WEB\APP_DATA\HIGHNIGHT.MDFConnectionString" connectionString="Data Source=.;Initial Catalog=C:\COM.AOTIANHUOLI\COM.AOTIANHUOLI.WEB\APP_DATA\HIGHNIGHT.MDF;Integrated Security=True" providerName="System.Data.SqlClient"/>
 </connectionStrings>
    <system.web>
        <!-- 
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会 
            影响性能,因此只在开发过程中将此值 
            设置为 true。
        -->
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="zh-CN"/>
        <compilation debug="true">
        
            <assemblies>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
        <!--
            通过 <authentication> 节可以配置 ASP.NET 用来 
            识别进入用户的
            安全身份验证模式。 
        -->
        <authentication mode="Windows"/>
        <!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。
   -->

    <customErrors mode="RemoteOnly" defaultRedirect="notfound.aspx">
    </customErrors>
    <!--<customErrors mode="Off">
        </customErrors>-->
     
    </system.web>
    <system.codedom>
    
    </system.codedom>
    <!-- 
        在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
        节。对早期版本的 IIS 来说则不需要此节。
    -->
    <system.webServer>
    </system.webServer>
</configuration>





传到服务器上,网站打不开

------解决方案--------------------
把错误页面贴出来看看
------解决方案--------------------
<authentication mode="Windows"/>
=>

<authentication mode="Forms"/>

先试试
------解决方案--------------------
lz,你那个name取得也太长了吧,这个到时候是要充当connectionString的索引作用的,取这么长可能会出问题啊~~~
------解决方案--------------------
我同LZ遇见过一模一样的问题 , 如果你还没解决 你加我QQ 451531576
------解决方案--------------------
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
 这行注释掉
------解决方案--------------------
IIS版本不匹配吧