473,651 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Projects on single web site

Hi,

We are developing a large modular application, and in order to simplify
splitting of work between developers etc. we want to develop it using
several different projects, and then combine the results into a single site.
We plan to do this by having a 'Site' folder in which the main project
will sit, with each of the other projects as a sub-folder of this.

The main project has master pages defined, as well as custom error pages
etc. which we would like to reference in all the other projects.

Can anyone tell me:
- Is this possible at all - has somebody managed it?
- Is there a way of making all the projects use the Web.config file from
the main project?
- Are there likely to be any problems using session to pass data between
applications?
- Anything else I need to know, any tutorials etc?
I am using VS2005 Pro (c#)

Thankyou

Paul.
Dec 1 '06 #1
2 3102
For what it's worth, here's the way I've been doing it for years:

- Create one solution.
- The solution can contain multiple projects.
- Usually, there is only one "web application" project. All the others
are supporting libraries.
- When we *do* have multiple web applications, each web application has
a separate web.config.
- When deployed, IIS can be set up so that both web applications
*appear* to be the same application.
- There shouldn't be any problem (maybe a few path issues that can be
fixed) sharing common pages like error pages and login pages.
I think each separate web application has separate session (right?).
Not shared.
Each separate web application can share authentication cookie (login
status) without problems.

Another way... I don't normally do it this way...
Your developers could just deploy their .aspx and .dll files to the
main web application when they are done with them. I've seen this
work. (They develop in a separate web application, then combine files
with the main application at deployment time).

In VS2003 we used to partition everything with "projects". In VS2005,
that's a little more difficult and we tend to partition everything by
"folders". Common code like base pages, etc... need to be in the
App_Code folder, for example.

Dec 1 '06 #2

OK, Thanks for that.

I'll have a play around and see what works best.
Paul

GroupReader wrote:
For what it's worth, here's the way I've been doing it for years:

- Create one solution.
- The solution can contain multiple projects.
- Usually, there is only one "web application" project. All the others
are supporting libraries.
- When we *do* have multiple web applications, each web application has
a separate web.config.
- When deployed, IIS can be set up so that both web applications
*appear* to be the same application.
- There shouldn't be any problem (maybe a few path issues that can be
fixed) sharing common pages like error pages and login pages.
I think each separate web application has separate session (right?).
Not shared.
Each separate web application can share authentication cookie (login
status) without problems.

Another way... I don't normally do it this way...
Your developers could just deploy their .aspx and .dll files to the
main web application when they are done with them. I've seen this
work. (They develop in a separate web application, then combine files
with the main application at deployment time).

In VS2003 we used to partition everything with "projects". In VS2005,
that's a little more difficult and we tend to partition everything by
"folders". Common code like base pages, etc... need to be in the
App_Code folder, for example.
Dec 4 '06 #3

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

Similar topics

1
1511
by: dinosaur8000 | last post by:
Hi, I have two ASP.NET solutions in my website, located in two directories: c:\projects\mainsite -- the main web site solution c:\projects\newmodule -- a module I'm adding on solution My web site's root is pointing to "c:\projects\mainsite", and I've created a virtual directory called "newmodule" pointing to "c:\projects\newmodule".
6
1951
by: Steve Mauldin | last post by:
I have three websites that were developed by using the same code in .net. They are all located under wwwroot on my desktop running windows 2000 pro.because Windows 2000 pro only supports a single Default Web Site I have to switch the IIS path to test the code on my own box. Once I boot up, I change the path on the Default Web Site in the Internet Services Manager to point to project A and I start up the IDE and I select project A to edit...
1
2129
by: David Herbst | last post by:
I have a solution that contains one main web project, ten sub web projects and a controls library project all in a single web application. I followed the steps in the following MS KB: How To Create an ASP.NET Application from Multiple Projects for Team Development http://support.microsoft.com/default.aspx?scid=kb;en-us;307467 e.g. http://localhost/application1 (references project sharedcontrols, module1, module2)
10
3746
by: eswanson | last post by:
I have broken up my web site into smaller web site projects. When I look at the precompiled files, it always has the virtual directory in them ie: <preserve resultType="3" virtualPath="/Security/DefaultLogin.aspx" hash="fde4916e6" filehash="ffffe84d717a4765" flags="110000" assembly="App_Web_-xo1n4yg" type="ASP.defaultlogin_aspx"> <filedeps> <filedep name="/Security/DefaultLogin.aspx" /> </filedeps> </preserve>
9
14269
by: TC | last post by:
I need to design a system which represents multiple "projects" in SQL Server. Each project has the same data model, but is independent of all others. My inclination is to use one database to store all projects. Looking at the numbers involved, however, I wonder if I would get better performance by storing each project in its own database. Suppose I have 50 projects, each with two users and 10,000 rows; it seems to me I'd rather have 50 x...
3
2071
by: Claudio Pacciarini | last post by:
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source depot. Although they are different, in some of them we share C# code by referencing source files that are external (not part of the projects) on each project. For instance, some of our projects have the typical “sources” file with:
6
3981
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public string UID; public string PWD; }
3
3916
by: | last post by:
I'm seeking (probably basic) guidance on the right way to split a large site that's supposed to represent one domain(mydomain.org) into many small VS.NET projects, and how to avoid issues with multiple web.config files leading to the error: "It is an error to use a section registered as allowDefinition = 'MachineToApplication'"... I'm fairly new to VS.NET and my sloppy first solution was to make one huge solution/project with just one...
6
2119
by: Bob Johnson | last post by:
I'm finally getting around to migrating a "big" ASP.NET 1.1 app to 2.0. I've been reading up on the differences and I'm NOT finding something I was lead to believe was the case a long time ago. I somehow was under the impression that, when compiling an ASP.NET 2.0 app, that multiple dll files were output for the project: one .dll per ASPX page/file. Gone was the day when we could simply compile the project and get a single .dll that we...
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8275
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,...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
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
7297
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 projectplanning, coding, testing, and deploymentwithout 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...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2699
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
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.