?
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
Medium Priority
?
560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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