我做好的一个系统,在本地机子上运行正常,用VS。NET开发的,可放到另外的机子上,装了IIS和FRAMWORK,运行的时候就出现下面的问题,请问什么怎么回事啊,怎么样解决这么个问题?Server Error in '/hb' 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 44:            by Microsoft that offers a single logon and core profile services for member sites.
Line 45:     -->
Line 46:     <authentication mode="Forms" /> 
Line 47: 
Line 48:  <!--  AUTHORIZATION 
 Source File: D:\hb\cy\cy\web.config    Line: 46 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

解决方案 »

  1.   

    大家应该遇到过这样的问题吧,以前把一个工程从一台机子上转到另一台机子上,同样的都装了VS.NET,也会出现一些错误。请问,这样的问题应该怎么样解决~~
      

  2.   

    没有设置虚拟目录can be caused by a virtual directory not being configured as an application in IIS.设置虚拟目录 hb 就可以了
      

  3.   

    我设置了虚拟目录 hb ,而且是把工程文件夹放在hb文件夹下的,这和我在原来机子上的路径一样的,可问题还是没有解决,仍然和上面的一样。我的工程文件夹里面,有一些.css和图片文件,我没有在工程里面添加,而是直接放到用到它们的位置,这样会不会有什么影响呢?
      

  4.   

    WEB站点的端口号和原来一样吗?IIS里有几个WEB站点?
      

  5.   

    请问怎么样设置WEB站点的端口号啊?
    IIS里面有5个WEB站点,这有什么影响吗?