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
550 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 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 DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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