This is a migrated thread and some comments may be shown as answers.

[Solved] VS 2008 Live Demos compile error allowDefinition='MachineToApplication'

4 Answers 216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ed Musters
Top achievements
Rank 2
Ed Musters asked on 08 Oct 2008, 07:11 PM

Hi All,

I have a Windows Server 2008 / SQL 2008 / VS 2008 machine and was trying to load the the Live Demos project, but compiling it gave the following 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. 

The reason is that you (wisely) said "yes" to creating a backup of the project, and it created a Backup folder.  Unfortunately, this backup folder contains a web.config file, VS2008 is confused because it found multiple web.config files in the root folder AND sub-folders off of the main web site.

The solution is just to move the Backup folder out of the Live Demos folder, somewhere else for safe keeping.  Recompile!  Now your live demos are running in VS2008!  Enjoy.

Ed.
Toronto, Canada.
"Choose your destiny, flawless victory..."

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Oct 2008, 07:52 AM
Hello Ed,

Thank you for your recommendation. I suppose you mean that you created project backup by yourself? If you check the RadControls archive you should notice that there is no such folder inside.

Thanks for sharing the solution with us.

Let us know whether we can assist you further.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Wei
Top achievements
Rank 1
answered on 25 Nov 2008, 04:30 PM
Thanks Ed.
This solved my problem
0
John Mathis
Top achievements
Rank 1
answered on 23 Jan 2009, 06:54 PM
Mine too!

Thanks.
0
TriZetto
Top achievements
Rank 1
answered on 09 Apr 2009, 08:18 PM
This solved my problem too.  

And for what its worth, I believe the backup directory is created by VS when it converts the solution to VS2008. 
Tags
General Discussions
Asked by
Ed Musters
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Wei
Top achievements
Rank 1
John Mathis
Top achievements
Rank 1
TriZetto
Top achievements
Rank 1
Share this question
or