APS.NET 菜鸟问题 急 在线等……
在IE中显示错误信息如下:
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 49: 它为成员站点提供单独登录和核心配置文件服务。
Line 50: -->
Line 51: <authentication mode="Windows" />
Line 52:
Line 53: <!-- 授权
Source File: D:\web\2\scard\web.config Line: 51
Show Additional Configuration Errors:
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. (D:\web\2\scard\web.config line 88)
--------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
总是出现这个错误,我在IIS里也设置成应用程序了,在文件夹里也给WEB共享了,也允许匿名访问了,可是怎么还是不行啊……
[解决办法]
是不是IIS的问题啊。是否应用程序名没有创建?在IIS的目录里面你看下,就是进入IIS的起始页
[解决办法]
据我猜测,你的虚拟目录创建的位置不对
如你的网站在c:\temp\demo,你应该对Demo创建虚拟目录,而不是对temp创建