访问上传的文件提示:Server Error in '/' Application.
--------------------------------------------------------------------------------Configuration Error 
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: 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.Source Error: 
Line 47:             安全身份验证模式。 
Line 48:         -->
Line 49:  <authentication mode="Windows"/>
Line 50:  <!--
Line 51:             如果在执行请求的过程中出现未处理的错误,Source File: d:\webroot\xxxxxx\web\test\web.config    Line: 49 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618 下面是web.config报错的地方:Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
            通过 <authentication> 节可以配置 ASP.NET 用来 
            识别进入用户的
            安全身份验证模式。 
        -->
<authentication mode="Windows"/>       lin:49(就这里)
<!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。        <customErrors mode="RemoteOnly" 该怎么解决啊,我就想在网页上添加个RSS阅读,但是出错了,求解决啊,还有就是谁有。net的不错rss源码啊

解决方案 »

  1.   

    你项目中是不是用2个web.config
      

  2.   

    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.这个错误一般有两个原因
    1. 没有为你的虚拟目录创建asp.net applicaton。 在虚拟目录属性中,点击Create按钮2. 在不是应该是asp.net application中放置了web.config.删除即可。
      

  3.   

    This error can be caused by a virtual directory not being configured as an application in IIS.