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
512 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 39

Expert Comment

by:Kyle Abrahams
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 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

9 Experts available now in Live!

Get 1:1 Help Now