The virtual path issues

  • Thread starter Thread starter Shikari Shambu
  • Start date Start date
S

Shikari Shambu

Hi,
I have an ASP.NET application that has multiple folders (maps to directories
under the rootweb). When my code tries to access a control that is under
/common folder I get the following error

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

How do I overcome this issue. The folder and the subfolders are really part
of a single application.
 
re:
The folder and the subfolders are
really part of a single application.

Are you sure about that ?

The error message says that /common/
is a sub-directory of wwwroot.

If you have created an application at /root/YourApp,
for example, you can't call code or pages from
/root/common within the /root/YourApp application.

Create a subdirectory "common" at /root/YourApp/common
and use *that* directory.



Juan T. Llibre
ASP.NET MVP
===========
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top