Not sure which version of IIS you are running, but this article should assist you:
Main Topics
Browse All TopicsI made a sub folder in the main folder, but when I open it (www.mysite.com/newsite) I get a error:
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineTo
any help?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You may get this error when trying to browse an asp.net application.
The debug information shows that "This error can be caused by a virtual directory not being configured as an application in IIS."
However, this error occurs primarily out of 2 scenarios.
1. When you create an new web application using visual studio.net, it automatically creates the virtual directory and configures it as an application.
However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and
may get the above error. The debug information you get as mentioned above, is applicable to this scenario.
To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will
automatically create the "application" using the virtual directory's name. Now the application can be accessed.
2. When you have sub-directories in your application, you can have web.config file for the sub-directory. However, there are certain properties which cannot
be set in the web.config of the sub-directory such as authentication, session state (you may see that the error message shows the line number where the
authentication or sessionstate is declared in the web.config of the sub-directory). The reason is, these settings cannot be overridden at the sub-directory level
unless the sub-directory is also configured as an application (as mentioned in the above point).
Mostly we have the practice of adding web.config in the sub-directory if we want to protect access to the sub-directory files (say, the directory is admin and we
wish to protect the admin pages from unathorized users).
But actually, this can be achieved in the web.config at the application's root level itself, by specifing the location path tags and authorization, as follows:-
<location path="Admin">
<system.web>
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
</system.web>
</location>
However, if you wish to have a web.config at the sub-directory level and protect the sub-directory, you can just specify the Authorization mode as follows:-
<configuration>
<system.web>
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
</system.web>
</configuration>
Thus you can protect the sub-directory from unauthorized access.
Generally when you have multiple web applications running in separate subfolders - you will break the applications if you remove the subfolder's web config & try to use the root.
A more simple approach is to configure simple html files in the root that redirect to the appropriate subfolder/application. In this case - the root site will not most likely not need a web.config - and each subfolder can have their own web.config file.
In this manner - you can have http://mysite.com/blog and http://mysite.com/shop and http://mysite.com/cms all using their own web.config and modifying inheritance is not required.
Each of these subfolders should be configured as applications in IIS
We typically include a simple html page with the redirect jmtinclt suggests that redirects to a subdirectory with our primary website, or if we have access tot he server - we will do this in IIS - but both work fine.
for example: http://www.abinko.com has a redirect to http://www.abinko.com/web - that site uses DotNetNuke right now, the new site can be built in a different folder & we are happy with it - we'll update the redirect to the new folder.
Our store (completely different web application) is at http://www.abinko.com/stor
We also have blogs, forums and other web applications running in subdirectories that I wonlt mention here.
Business Accounts
Answer for Membership
by: TrumpetbobPosted on 2009-11-02 at 15:20:28ID: 25724814
Having a folder withing a main folder will not pull up anything unless you have an index.html in that folder for it to find.
ranganh/ar chive/2005 /04/25/ 376 09.aspx
Although with this error, you might try this:
http://geekswithblogs.net/