请教各位,我建了一个虚拟目录,运行它下面的程序时出现下面的错误怎么解决,怎么配置iisConfiguration 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 23:           "Forms", "Passport" and "None"
Line 24:     -->
Line 25:     <authentication mode="Windows" /> 
Line 26: 
Line 27: 
 

解决方案 »

  1.   

    你的站点目录设置一下Web共享就行了
      

  2.   

    IIS下,把你的目录如下操作:属性----创建就可以了!
      

  3.   

    1:点击你的项目文件夹并设置为WEB共享
    2:IIS下,把你的目录如下操作:
      属性----创建
      

  4.   

    你的虚拟目录:属性--->目录安全性--->编辑--->集成windows验证
      

  5.   

    在我的電腦上按右鍵,選擇管理,展開服務及應用程式--Internet Information Services--網站--Default Web Site,找到你新建的虛擬目錄,按下右鍵,選擇內容,在虛擬目錄選項卡中點擊建立按鈕,將點擬目錄配置為應用程序.