当前位置:编程学习 > C#/ASP.NET >>

二级网址 web.confing 怎么配置

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 17:     
Line 18: 
Line 19:     <sessionState timeout="30"/>
Line 20:     <!-- 
Line 21:             设置 compilation debug="true" 将调试符号插入
 






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 26:             以标识传入的用户。 
Line 27:         -->
Line 28:     <authentication mode="Windows"/>
Line 29:  <!--
Line 30:             如果在执行请求的过程中出现未处理的错误,
 
--------------------编程问答-------------------- iis里面采用主机头,每个网站都是一个应用程序,不能只是虚拟目录 --------------------编程问答-------------------- 在IIS将该目录做成应用程序:打开IIS —> 默认Web站点 —> 找到该目录右键打开属性页 —> 目录(或虚拟目录)卡 —> 在下半部分“应用程序设置”处点第一项的“创建”,把该目录做成应用程序。   
在IIS中把站点主目录指向Web.config文件 --------------------编程问答-------------------- 两大强人,又学到东西了
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,