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 46:             安全身份验证模式。 
Line 47:         -->
Line 48:     <authentication mode="Windows" />
Line 49:  <!--
Line 50:             如果在执行请求的过程中出现未处理的错误,
 Source File: d:\hosting\users\s041257\tongfang\web.config    Line: 48 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3053 

解决方案 »

  1.   

    除了虚拟目录的根目录外,任何子目录下的web.config文件中不能再有 <authentication   mode= "Windows "/> 配置节。
      

  2.   

    如果是发布在IIS下的包的错误
    在服务里找 .NET v2.0.50727的服务开启没有本地运行出错的话
    试试在vs.net命令行提示中写 
    aspnet_regiis -i 
      

  3.   

    是在本地  程序运行非常正常  就是上传到ftp上以后出现了这个错误   要怎么修改呢
      

  4.   

    你的服务器 没有支持.NET3.5的组件  装一个NET3.5 或是IIS配置使用的版本是2.0的。  应该明白了吧
      

  5.   

    那我就要跟服务器那边 联系呗 让他们装一个.net 3.5的框架 或把iis配置升级到2.0  没有办法在我程序这边更改 解决么