Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Web Projects in VS 2005

Reply
Thread Tools

Web Projects in VS 2005

 
 
=?Utf-8?B?VG9ieVJpbGV5?=
Guest
Posts: n/a
 
      11-25-2005
I was reading the post from Scott Guthrie’s site
http://weblogs.asp.net/scottgu/archi...23/423409.aspx regarding sub
webs and I have a question. When I originally set up ASP.NET to use a modular
approach to web site development I followed the Q article.
http://support.microsoft.com/default...en-us;307467#5 where you
can create a root application then a sub web

i.e.

http://localhost/application1 (references project sharedcontrols, module1,
module2)
http://localhost/application1/module1 (references project sharedcontrols)
http://localhost/application1/module2 (references project sharedcontrols)
http://localhost/application1/sharedcontrols

None of the sub webs are applications as everything fall back to the root.
When using VS 2005 it seems impossible because a you cannot exclude sub webs
unless they are an application BUT if they are an application you get an
error - The virtual path #### maps to another application, which is not
allowed.

This seems like a complete catch 22. How do I share controls between apps on
a system with about 50 separate modules. I cannot treat them as separate
applications.

Any explanation or workaround would be greatly appreciated.

Regards

Toby
 
Reply With Quote
 
 
 
 
Rick Strahl [MVP]
Guest
Posts: n/a
 
      11-25-2005
Toby,

I don't think this behavior has changed from 1.x. The only difference is
that in 1.x you HAD TO create a virtual directory in order for hosting a Web
project/Web Control project whereas in VS 2005 the default of using file
based projects don't use or respect virtual directory boundaries.

You can still do this in VS.NET 2005 by opening the project as a Web Project
from the Web as opposed to opening as a file based project. When you do
ASP.NET recognizes Virtual boundaries and separates the projects as I think
you are looking for.


+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog


"TobyRiley" <> wrote in message
news:A18A94FF-D9F0-418E-851A-...
>I was reading the post from Scott Guthrie's site
> http://weblogs.asp.net/scottgu/archi...23/423409.aspx regarding
> sub
> webs and I have a question. When I originally set up ASP.NET to use a
> modular
> approach to web site development I followed the Q article.
> http://support.microsoft.com/default...en-us;307467#5 where you
> can create a root application then a sub web
>
> i.e.
>
> http://localhost/application1 (references project sharedcontrols, module1,
> module2)
> http://localhost/application1/module1 (references project sharedcontrols)
> http://localhost/application1/module2 (references project sharedcontrols)
> http://localhost/application1/sharedcontrols
>
> None of the sub webs are applications as everything fall back to the root.
> When using VS 2005 it seems impossible because a you cannot exclude sub
> webs
> unless they are an application BUT if they are an application you get an
> error - The virtual path #### maps to another application, which is not
> allowed.
>
> This seems like a complete catch 22. How do I share controls between apps
> on
> a system with about 50 separate modules. I cannot treat them as separate
> applications.
>
> Any explanation or workaround would be greatly appreciated.
>
> Regards
>
> Toby



 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9ieVJpbGV5?=
Guest
Posts: n/a
 
      11-30-2005
Thanks, I have tried this. Adding the root project and the the virtual
directory (subweb that is NOT an application) so that 2 web site projects are
present in the solution. That works sort but you can not add any references
from one project to the next or drop web user controls across projects. If
you turn the subweb into an application then you get the error The virtual
path #### maps to another application, which is not allowed.

Can anyone try this by following the steps layed out in the ms document

http://support.microsoft.com/default...b;en-us;307467

to actually work in vs 2005.

--


Regards

Toby Riley


"Rick Strahl [MVP]" wrote:

> Toby,
>
> I don't think this behavior has changed from 1.x. The only difference is
> that in 1.x you HAD TO create a virtual directory in order for hosting a Web
> project/Web Control project whereas in VS 2005 the default of using file
> based projects don't use or respect virtual directory boundaries.
>
> You can still do this in VS.NET 2005 by opening the project as a Web Project
> from the Web as opposed to opening as a file based project. When you do
> ASP.NET recognizes Virtual boundaries and separates the projects as I think
> you are looking for.
>
>
> +++ Rick ---
>
> --
>
> Rick Strahl
> West Wind Technologies
> www.west-wind.com
> www.west-wind.com/weblog
>
>
> "TobyRiley" <> wrote in message
> news:A18A94FF-D9F0-418E-851A-...
> >I was reading the post from Scott Guthrie's site
> > http://weblogs.asp.net/scottgu/archi...23/423409.aspx regarding
> > sub
> > webs and I have a question. When I originally set up ASP.NET to use a
> > modular
> > approach to web site development I followed the Q article.
> > http://support.microsoft.com/default...en-us;307467#5 where you
> > can create a root application then a sub web
> >
> > i.e.
> >
> > http://localhost/application1 (references project sharedcontrols, module1,
> > module2)
> > http://localhost/application1/module1 (references project sharedcontrols)
> > http://localhost/application1/module2 (references project sharedcontrols)
> > http://localhost/application1/sharedcontrols
> >
> > None of the sub webs are applications as everything fall back to the root.
> > When using VS 2005 it seems impossible because a you cannot exclude sub
> > webs
> > unless they are an application BUT if they are an application you get an
> > error - The virtual path #### maps to another application, which is not
> > allowed.
> >
> > This seems like a complete catch 22. How do I share controls between apps
> > on
> > a system with about 50 separate modules. I cannot treat them as separate
> > applications.
> >
> > Any explanation or workaround would be greatly appreciated.
> >
> > Regards
> >
> > Toby

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web application projects vs. Web site projects mark.norgate@gmail.com ASP .Net 0 07-31-2006 02:42 PM
Converting Java projects to dynamic web projects in Eclipse deepstar@gmail.com Java 4 02-24-2006 03:15 PM
Can't create projects / open projects jaredea ASP .Net 4 08-10-2005 07:01 PM
ASP.NET projects aren’t 'real' projects in VS.NET 2005 Patrick Olurotimi Ige ASP .Net 0 06-09-2005 12:31 PM
where to get code of projects on network security and telecomm related projects sumit chawla C Programming 1 07-13-2004 02:54 PM



Advertisments