Monday, March 26, 2012

VWD2008 Cassini wont run pages properly. allowDefinition=MachineToApplication beyond appli

I have installed VWD2008 and now when I try to run .NET applications using Cassini I get the following error....

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.

Two obvious symptoms that I believe are affected by this are:
1) Master Pages are not displayed in the editor. In fact it seems to crash and nothing is displayed.
2) Images are not displayed in Cassini. They are in the editor but when I run the page all I see are red crosses where the images should be.

Please can anybody help me?

Many thanks for any help :)

You probably have nested web.configs. rename the second.

Jeff


That was indeed the problem; I have just realised it.

Thank you very much for your help.

0 comments:

Post a Comment