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 36:           “Passport”和“None”
Line 37:     -->
Line 38:    <authentication mode="Forms">
Line 39:       <forms name=".ASPXAUTH " loginUrl="login.aspx" timeout="30" path= "/">
Line 40:     </forms> 
 Source File: C:\Inetpub\wwwroot\dingtian1\admin\web.config    Line: 38 

解决方案 »

  1.   

    在IIS中把虚拟目录配置为应用程序
      

  2.   

    是不是该目录下的web.config文件中验证模式与你项目中的web.config配置有冲突
      

  3.   

    在Admin中加入web.config,admin需要在IIS中设置为虚拟目录才行。
      

  4.   

    如果你再根目录的web.config文件中配置了<authentication mode="Forms">节点的属性,在子目录下的web.config文件中不能再配置<authentication mode="Forms">节点了.
      

  5.   

    在IIS中,右击要创建应用的文件夹,属性,创建。
      

  6.   

    外面web.config和里面的这个文件有冲突了
      

  7.   

    在IIS中把虚拟目录配置为应用程序
    解决问题了,可是又有Could not load type 'dingtian1.admin.login'
    在项目里面怎么将文件夹生成应用程序?
    http://support.microsoft.com/?scid=kb;zh-cn;306155&spid=1108&sid=global
      

  8.   

    不知道,你是不是用了一个解决方案中包含两个项目的方法来做的。如果是这样,就需要在iis中将admin设置为一个虚拟目录。假设一下
    C:\Inetpub\wwwroot\dingtian1  对应为:http://localhost/dingtian1
    那么在iis中要将 admin 对应到:C:\Inetpub\wwwroot\dingtian1\admin 下且admin虚拟目录要在dingtian1 虚拟目录中设置在iis 中选定dingtian1 右键, 再创建admin的虚拟目录。仅供参考。
      

  9.   

    和根目录下的WEB.CONFIG有冲突了
      

  10.   

    Could not load type 'dingtian1.admin.login'可能要重新编译一下程序,可以程序有问题