Solved

The virtual path 'xxx' maps to another application, which is not allowed.

Posted on 2004-08-24
2
3,072 Views
Last Modified: 2012-06-21
I created a project that contains 4 separate UserControls. Within this project I have a WebForm in which I drag all 4 UserControls onto and compile. This all works fine. However, when I add another UserControl from a co-worker onto this same WebForm and compile I receive the following error:

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The virtual path 'xxx' maps to another application, which is not allowed

Can anyone help???

Thanks in advance.
0
Comment
Question by:Tazster
2 Comments
 
LVL 2

Expert Comment

by:claygarrett
ID: 11887455
Can you post the code of the ascx file?  Or at least the first part of it?
0
 
LVL 10

Accepted Solution

by:
jnhorst earned 250 total points
ID: 11889291
If I am not mistaken, ascx user controls can only be used within the application into which they were built.  If you want true reusability, a "composite control" (a type of custom control that consists of multiple standard controls - like a textbox above a dropdownlist), would be a much better way to go.

John
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Displaying a web form as a modal popup dialog box. 4 30
Gridview selected row 9 46
IIS redirect 1 68
mail.To.Add 5 26
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question