子目录web.config的配置有问题!
为了分别指定每个目录可以访问的用户,在每个子目录下用不同的web。config,但是访问该目录的时候出错:
Server Error in '/authorize' 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 23: “Forms”、“Passport”和“None”
Line 24: -->
Line 25: <authentication mode="Forms">
Line 26: <forms name="AuthCookie" loginUrl="../login.aspx">
Line 27:
Source File: E:\Anakin\Project\NET\authorize\anakin\web.config Line: 25
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
请大家指教,该如何解决?