473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The virtual path issues

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.
Nov 19 '05 #1
1 1216
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
===========
"Shikari Shambu" <sh************ *@hotmail.com> wrote in message
news:Of******** ******@TK2MSFTN GP14.phx.gbl... 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.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1369
by: Ronen | last post by:
My web application name is xyz--> so I have a virtual directory name xyz. The problem: I need each time to install it under different name! What would be the best way to do it and avoid all this problems: 1. Registering user-controls and linking to other files (scripts, css...) who uses in the path the app name. 2. Inside style sheet we use classes that uses URL (with app name) 3. Regular images controls (server and client side) that are...
5
3690
by: Ian | last post by:
I have and Access 97 DB that prints a report that has many pages, sometime about 800-1000 page, each page contains a colour picture along with text boxes. The pictures are displayed on the report but the DB only stores the path to the picture. On the reports detail sections On Print event I have the code (.Picture = ). Image path is the field that store the picture location. My problem is that when I send this report to the printer,...
9
2010
by: TPS | last post by:
I have a virtual directory where all posted files are stored. The ASP app does not have rights to the share on the other server where the vir dir resides. What is the best way to give the asp app the rights to post files to the vir dir. Thanks
0
1009
by: Ronen | last post by:
My web application name is xyz--> so I have a virtual directory name xyz. The problem: I need each time to install it under different name! What would be the best way to do it and avoid all this problems: 1. Registering user-controls and linking to other files (scripts, css...) who uses in the path the app name. 2. Inside style sheet we use classes that uses URL (with app name) 3. Regular images controls (server and client side) that are...
14
12732
by: Lorenzo | last post by:
Hello, I have a web application with a virtual directory in it. With 'virtual directory' i mean a folder whose physical path is different from the physical path of the application, but in which Web Sharing is active. For example: my application is in "C:\Inetpub\wwwroot\MyApp", the Virtual folder is in "C:\VirtualFolder", and IIS sees it as if it were in "C:\Inetpub\wwwroot\MyApp\VirtualFolder".
4
3240
by: tommaso.gastaldi | last post by:
Hi friends I was in the need to find a sort of "definitive" :) solution to transform a virtual path such as "~/MyDir/MyFile into a full web address. In particular I needed it * within web services *. I would like to be informed that the framework provides a function to do that, but for now I am missing it.
2
2162
by: tshad | last post by:
I am trying to use my IIS web server on my local machine for testing my web site. The problem is that periodically it will not use the virtual directory for the root. This happens for my logon page, for instance. If I have the following Virtual Directory: Staff.
8
2605
by: JJ | last post by:
I'm confused about paths. I have a functionn that uses the mappath method, which I think requires a virtual path (is that the same as a relative path?). But this doesn't always work as the path can take the form of the following: 1. /directory/images/xyz.gif (works fine) 2. http://localhost:1234/www.mytestwebsite.com/directory/images/xyz.gif (doesn't work) 3. http:///www.someremotesite.com/directory/images/abc.gif (doesn't work)
0
898
by: shaun.berryman | last post by:
I have a quick question in regards to Virtual Path Providers (VPP) as I've been trying to determine if going that route for URL Rewriting is the best path. First let me tell you that I've been scouring the internet to find some good examples of VPP in use for Rewriting and it had been difficult. MSDN posted a good article about their URI scheme at (http://msdn.microsoft.com/msdnmag/issues/05/02/InsideMSDN/) which gave a good insight on...
4
8735
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
Best way I can think to describe this is through an example. I have a virtual directory, let's call it "MyVirtualDirectory" that maps to \\MyServer\Shared. I have a path that is \\MyServer\Shared\SomeDirectory\SomeFile.txt. I need to convert this path to a virtual path with the virtual directory name. The result I'm after would be: MyVirtualDirectory\SomeDirectory\SomeFile.txt
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10484
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.