sandeep ram

sandeep ram

  • NA
  • 23
  • 0

Multiple web.config files in ASP.NET Web Application

Jan 9 2010 7:24 AM
Hi,

I have the following problem :

I have an application which has one root web.config file .

The application has two subfolders - Folder 1 and Folder 2

I am using ASP.NET Membership API and I want to specify 2 separate login URLs for the landing page inside each folder. To achieve this I tried to add a web.config file inside each folder, but that resulted in the following Error

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

I have looked it up a lot on the net  and I understand that this is a fundamental problem in VS2008 where you cannot have multiple web.config files

Now how do I go about implementing multiple login URLs for different sections of the application ?

Answers (1)