If you receive this error when trying to run an application in a sub folder of your website then please create an application starting point for your sub folder (see link below for instructions).
That makes a new application root for your sub folder so it can host its own isolated asp.net application:
http://portal.winserve.co.uk/knowledgebase.php?action=displayarticle&id=63