Solved

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 appli

Posted on 2013-06-26
3
516 Views
Last Modified: 2013-06-26
Hi there,

I am tryiing to solve this problem but I do not have an idea. I am new on ASP.net
These are the following errors.


Warning      2      C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\EHR\Apps\Main.aspx: ASP.NET runtime 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. (C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\ehr\web.config line 20)      C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\EHR\Apps\Main.aspx      1      1      C:\...\EHR\

Warning      1      C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\EHR\Site.master: ASP.NET runtime 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. (C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\ehr\web.config line 20)      C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\EHR\Site.master      1      1      C:\...\EHR\

Error      3      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.      C:\Users\giofranc\Documents\Visual Studio 2010\WebSites\EHR\EHR\Web.config      20      

Thanks for help
0
Comment
Question by:gfranco
3 Comments
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 39278787
IIS7?

If you right click on the project nad go to properties . . . are you trying to use your local IIS (custom) or the one in visual studios (default)?

Try creating an application (iis7) or virtual directory (iis6)  in your IIS.
0
 
LVL 11

Accepted Solution

by:
lenordiste earned 500 total points
ID: 39278795
Hi gjfranco,

since you are beginning in ASP.NET I will assume you did not tinker too much with default configuration settings. The error you have looks like what would happen if you do backups of your projects by just copy-pasting them in the same directory as the website you are trying to run or in a directory listed in your Visual Studio 's project folder. If this is the case than IIS will get confused by finding multiple applications and not knowing which one to instantiate.

Can you give us some details about the file structure of the project you are running ? maybe do a few screenshots of your project's folder as well as your IIS setup?
0
 

Author Comment

by:gfranco
ID: 39278818
I was be able to figure it out the problem, what pointing to an extra folder duplicated.

Thanks for your help. i will reward you for your generosity.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now