I converted a web application and it compiled successfully in VS 2005. However, when I try to run the application, I see errors like this in the log file:
Exception: System.ArgumentException
Message: Invalid path for child request 'http://localhost/Web/MyPage.aspx'. A virtual path is expected.
Source: System.Web
at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Execute(String path)
I understand this is probably the result of the path mapping to another application. Previously, this path did not map to another application. In the conversion process, it is now somehow mapping to another application.
While investigating this, I attempted to precompile the site using aspnet_compiler. This fails with the following errors:
Utility to precompile an ASP.NET application Copyright (C) Microsoft Corporation. All rights reserved.
/none/Tools/System/Reports/clientreport.aspx(2): error ASPPARSE: The virtual path '/Web/Controls/MyMenu.ascx' maps to another application, which is not allowed.
Again, this indicates that the aspx page contains a control which appears to now be part of another application. Any suggestions on how to fix this? Thanks.