473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Sub application and sharing

I have 2 applications in my web site. The root application and a sub
application. I want them to share certain items like my header and footer
user controls. How do I do this? When ever I try and reference a file in
the main appliaction I get the below error.

Parser Error Message: The virtual path '/mainproject/header.ascx' maps to
another application, which is not allowed.

I don't want to combine them to one application because the sub project is a
forum and I would like to have its own web.config, etc...

--
Bill
Nov 18 '05 #1
3 1455
Hi,

You can share custom server controls between appliccations.
http://www.15seconds.com/issue/040421.htm

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #2
Thanks but I need a user control since 90% of the functionality is just
plain HTML. I don't want to write code just to print out all the tags. It
would also be hard to modify the HTML and format it later.

I found this article on how to do it but that is what I was doing and it
yields the same error:
http://support.microsoft.com/default...b;en-us;324785

Bill

"Natty Gur" <na***@dao2com.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

You can share custom server controls between appliccations.
http://www.15seconds.com/issue/040421.htm

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #3
FYI, I found the solution.

If you create a sub project and make it an application and try to share a
user control from the root project then you will get the error "Virtual Path
maps to another application, which is not allowed."

So what you must do is create a virtual directory for the sub project under
the main project but do not make it an application. This is what I tried
first but I was getting an error saying that the namespace of the sub
project was not found. To resolve this you must add the sub project as a
reference to the main project. Once I did this it all worked well.

Just though I would share this incase anyone else had the same problem.
Thanks but I need a user control since 90% of the functionality is just
plain HTML. I don't want to write code just to print out all the tags. It would also be hard to modify the HTML and format it later.

I found this article on how to do it but that is what I was doing and it
yields the same error:
http://support.microsoft.com/default...b;en-us;324785

Bill

"Natty Gur" <na***@dao2com.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

You can share custom server controls between appliccations.
http://www.15seconds.com/issue/040421.htm

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 18 '05 #4

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

Similar topics

0
by: Magic1812 | last post by:
Magic Software invites you to join us this coming Tuesday (January 13th, 2004) at 12:00 EDT / 17:00 GMT for a FREE live Webinar: Title: Accelerated Application Integration and Information...
0
by: Magic1812 | last post by:
Magic Software invites you to join us this coming Tuesday (January 13th, 2004) at 12:00 EDT / 17:00 GMT for a FREE live Webinar: Title: Accelerated Application Integration and Information...
3
by: CharlieHoo | last post by:
Hello, How to share session state between two or more ASP.NET applications in the same server or different ones? Thanks a lot. Charlie
0
by: Magic1812 | last post by:
Magic Software invites you to join us this coming Tuesday (January 13th, 2004) at 12:00 EDT / 17:00 GMT for a FREE live Webinar: Title: Accelerated Application Integration and Information...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.