Last post Apr 30, 2010 03:11 AM by idreesbari
May 12, 2008 09:08 AM|mikexkearney|LINK
Im using a Wrox textbook to learn ASP.net. I use their example website to view source-code in VS Express 2005 and all has been fine.
Ive never submitted a website to IIS, though I have installed it.
I recently installed VS 2008 Profesional Edition.
Loading the website in VS 2008's Cassini throws the same error.
"Error 1 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\Michael Kearney\Documents\IT\ASP.net\Wrox\WroxUnited\WroxUnited\web.config 42 "
May 12, 2008 09:22 AM|markarmitage|LINK
Try making the virtual directory an application in IIS (Open IIS, navigate to the virtual directory, right click, select properties, home directory tab and click Create in the application settings section).
May 12, 2008 09:42 AM|mikexkearney|LINK
Thanks for your time - it didnt work.
Why would this site require the creation of a Virtual Directory if its never been integrated with IIS before? Im trying to use Cassini.
Sep 18, 2008 09:22 AM|Sachin_03|LINK
We can resolve the error by -
1. Look for a duplicate web.config file in the project. If present delete it.
2. If not, cut the web.config file and paste it in the root folder of the app
(under project folder)
Feb 03, 2010 01:10 AM|divyakalra|LINK
My poblem is resolved by this solution, Thanks a lot
Apr 14, 2010 11:57 AM|bhanumurthy24|LINK
I have the same error in my application. I cannot go with the IIS thing where I need to change things in Virtual directory, because, I do not have access to it, nor did I use IIS on my system for this entire application. I have just 1 web.config file, no
other web.config's in any other sub directories. But still I have the same 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.
Apr 18, 2010 02:23 PM|Sachin_03|LINK
Pls check if the configuration file is present in the root folder.
May be while opening the web site in VS you are drilling down into sub folders.
Apr 30, 2010 03:11 AM|idreesbari|LINK
My problem resolved using below solutions
2. If not, cut the web.config file and paste it in the root folder of the app (under project folder)