日期:2014-05-19  浏览次数:20476 次

web.config的简单问题,在线等,TKS!
在VS2005(Windows2000   server)中新建一个ASP.NET网站,修改web.config中的compilation   debug为true,接着按F5调试,但提示出错:
无法在web服务器上启运调试。 <?xml   version= "1.0 "?>
<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.1//EN " "http://wwww.w3.org/TR/XHTML11/DTD/XHTML11.DTD>
<HTML   xmls= "https://www.w3.org/1999/xhtml ">

    ……

确保服务器操作正确。请通过执行“调试”-> "Debug.start   without   debugging "验证web.config中没有语法错误,可能还需要参考联机文档中的ASP.net和ATL   Server调试主题。

按上面提示,我按ctrl+F5,显示的网页上
You   are   not   authorized   to   view   this   page

我的web.config为:
<?xml   version= "1.0 "   encoding= "utf-8 "?>
<!--  
        注意:   除了手动编辑此文件以外,您还可以使用  
        Web   管理工具来配置应用程序的设置。可以使用   Visual   Studio   中的
          “网站”-> “Asp.Net   配置”选项。
        设置和注释的完整列表在  
        machine.config.comments   中,该文件通常位于  
        \Windows\Microsoft.Net\Framework\v2.x\Config   中
-->
<configuration   xmlns= "http://schemas.microsoft.com/.NetConfiguration/v2.0 ">
        <appSettings/>
        <connectionStrings/>
        <system.web>
                <!--  
                        设置   compilation   debug= "true "   可将调试符号插入
                        已编译的页面中。但由于这会  
                        影响性能,因此只应在开发过程中设置  
                        此值。

                        Visual   Basic   选项:
                        设置   strict= "true "   将禁止所有会导致  
                        数据丢失的类型转换。  
                        设置   explicit= "true "   将强制声明所有变量。
                -->
                <roleManager   enabled= "true "   />
                <compilation   debug= "true "   strict= "false "   explicit= "true "   />
                <pages>
                        <namespaces>
                                <clear   />
                                <add   namespace= "System "   />
            &nbs