Innovative Survey & Feedback Solutions

Phone Contact

The virtual path '/UIControls/SiteHeader.ascx' maps to another application, which is not allowed.

Article ID: 1030 Posted Date: 2/25/2005 11:46:32 AM
Products: Ultimate Survey - Enterprise .NET Edition Updated Date: 2/25/2005 11:46:32 AM

Symptom:

When trying to launch Ultimate Survey Enterprise survey software via Internet Explorer, an error is thrown that looks similar to the following:

Server Error in '/UltimateSurvey' Application.

-----------------------------------------------------------

The virtual path '/UIControls/SiteHeader.ascx' maps to another application, which is not allowed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The virtual path '/UIControls/SiteHeader.ascx' maps to another application, which is not allowed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The virtual path '/UIControls/SiteHeader.ascx' maps to another application, which is not allowed.]

System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir, Boolean allowCrossAppMapping) +472

System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) +99

System.Web.UI.TemplateControlParser.GetCompiledType(String virtualPath, String inputFile, HttpContext context) +12

System.Web.UI.UserControlParser.GetCompiledUserControlType(String virtualPath, String inputFile, HttpContext context) +177

System.Web.UI.TemplateControl.LoadControl(String virtualPath) +41

UltimateSurvey.Templates.PageTemplate.LoadControls() +225

UltimateSurvey.Templates.PageTemplate.OnInit(EventArgs e) +466

UltimateSurvey.Users.RegisterUser.OnInit(EventArgs e) +23

System.Web.UI.Control.InitRecursive(Control namingContainer) +241

System.Web.UI.Page.ProcessRequestMain() +197

Cause:

The Ultimate Survey web.config file is either cached or has improper settings.

Resolution:

1. Check the following values in your web.config file:

ApplicationURL - This setting should be the URL of your web server, e.g. http://www.prezzatech.com

AppicationRoot - This setting is the virtual path to your installation of UltimateSurvey, e.g. /UltimateSurvey

2. If updating these settings still does not solve the problem, take the following steps. First, rename your web.config file to web.config_bak. Refresh the page with the error, and a different error will occur. Next, rename the file back to web.config. This takes care of any caching problems, and the software will run.