<?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 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>
<appSettings/>
<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.
        -->
<compilation debug="true"/>
<!--
            The <authentication> section enables configuration 
            of the security authentication mode used by 
            ASP.NET to identify an incoming user. 
        -->
<authentication mode="Windows"/>
<!--
            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>
        -->
</system.web>
</configuration>
Error1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. D:\Documents and Settings\063872P.GSISTUDENT\Desktop\WebSite2\WebSite2\Web.Config

解决方案 »

  1.   

    检查一下你的IIS 里的website -》属性-》目录安全性-》匿名访问和身份验证控制-》编辑-》 集成windows 身份验证 打上勾
      

  2.   

    可是我是用asp.net做的。而且还是vb的语言阿。
      

  3.   

    把虚拟目录设置应用程序,或者把Bin目录和App开头的目录放到网站根目录
      

  4.   

    This error can be caused by a virtual directory not being configured as an application in IIS.
    这就是解决方案