473,573 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about using multiple asp.net projects for a web site

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.as px"
hash="fde4916e6 " filehash="ffffe 84d717a4765" flags="110000"
assembly="App_W eb_-xo1n4yg" type="ASP.defau ltlogin_aspx">
<filedeps>
<filedep name="/Security/DefaultLogin.as px" />
</filedeps>
</preserve>

The /security - how can I get the compile/system to pre-compile without the
virtual path ie "/security"

Also, is it possible to break a web site up into smaller units and combine
this units to make a bigger site? If so, where is the documentation on the
recommended way to do it?

Thanks

Eric

Feb 22 '06 #1
10 3735
There are three approaches you could use:

1) The VS 2005 Web Deployment Project. This includes the aspnet_merge.ex e utility
that will merge assemblies into a single well named assembly. This is what you'd want
to use if you want to use the VS 2005 Web Site Project option and generate a single
named assembly :

http://msdn.microsoft.com/asp.net/re...p/default.aspx

2) The VS 2005 Web Application Project. This provides a VS 2003-like compilation model
where the project always gets compiled into a single assembly. Here is a tutorial that walks
through how to-do this with the current preview:

http://webproject.scottgu.com/CSharp...rControls.aspx

3) You can use either the publish web or aspnet_compiler MSBuild task with the released
VS 2005 and generate fixed name assemblies that are updatable (which means that .ascx files
are preserved).

This blog post walksthrough how to-do this:

http://weblogs.asp.net/scottgu/archi...28/423888.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"eswanson" <ej*******@news groups.nospam> wrote in message
news:CF******** *************** ***********@mic rosoft.com...
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.as px"
hash="fde4916e6 " filehash="ffffe 84d717a4765" flags="110000"
assembly="App_W eb_-xo1n4yg" type="ASP.defau ltlogin_aspx">
<filedeps>
<filedep name="/Security/DefaultLogin.as px" />
</filedeps>
</preserve>

The /security - how can I get the compile/system to pre-compile without the
virtual path ie "/security"

Also, is it possible to break a web site up into smaller units and combine
this units to make a bigger site? If so, where is the documentation on the
recommended way to do it?

Thanks

Eric


Feb 22 '06 #2
If we were to use option 1. Would we build each of our asp.net web projects
into separate named assemblies?

I used the IDE to publish the web sites, but it sounds like I would use the
option of creating a named assembly for each of our web projects?

What we are attempting to do, is if a set of web pages change, we only want
to move those modified webpages up to the production server while leaving the
rest of the web site alone.

Say we have 20 pages, which are divided into 5 projects. We would build the
5 projects and copy these assembies up to our prod web site. Later if one of
the projects changes, we would rebuild this project and copy it back up to
the prod server. Is this correct?

Thanks

Eric
"Juan T. Llibre" wrote:
There are three approaches you could use:

1) The VS 2005 Web Deployment Project. This includes the aspnet_merge.ex e utility
that will merge assemblies into a single well named assembly. This is what you'd want
to use if you want to use the VS 2005 Web Site Project option and generate a single
named assembly :

http://msdn.microsoft.com/asp.net/re...p/default.aspx

2) The VS 2005 Web Application Project. This provides a VS 2003-like compilation model
where the project always gets compiled into a single assembly. Here is a tutorial that walks
through how to-do this with the current preview:

http://webproject.scottgu.com/CSharp...rControls.aspx

3) You can use either the publish web or aspnet_compiler MSBuild task with the released
VS 2005 and generate fixed name assemblies that are updatable (which means that .ascx files
are preserved).

This blog post walksthrough how to-do this:

http://weblogs.asp.net/scottgu/archi...28/423888.aspx


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"eswanson" <ej*******@news groups.nospam> wrote in message
news:CF******** *************** ***********@mic rosoft.com...
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.as px"
hash="fde4916e6 " filehash="ffffe 84d717a4765" flags="110000"
assembly="App_W eb_-xo1n4yg" type="ASP.defau ltlogin_aspx">
<filedeps>
<filedep name="/Security/DefaultLogin.as px" />
</filedeps>
</preserve>

The /security - how can I get the compile/system to pre-compile without the
virtual path ie "/security"

Also, is it possible to break a web site up into smaller units and combine
this units to make a bigger site? If so, where is the documentation on the
recommended way to do it?

Thanks

Eric


Feb 22 '06 #3
Hi Eric,

All of the options Juan has posted in his message is based on single web
project, the aspnet_compiler or aspnet_merge tool all precompile single
website's source files and UI components into different assemblies. If
you've separated a single website into multiple website, I'm afraid those
option(like web deployment project) won't work.

Generally, we just consider for a single web site web application, then we
can use the Web Deployment Project to help make the whole precompiled
website has only one assembly which contains all the precompiled web UI
component classes and other helper classes.... For detailed mechanism of
the asp.net 2.0 precompilation and the web deployment project, see the
articles linked in the following page:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 23 '06 #4
I think I understand that the developers only looked at a single web site as
a single web application.

What I am talking about is a single web site, single web application made up
of multiple VS.Net web projects. In the end I want a single web site, single
web application made up of multiple VS.NET web projects compiled into
multiple assemblies stored in the bin directory of the single web site. The
bin directory would contain multiple assemblies storing the source code of
our application components. Is this possible with option number 1 of Juan's
options?

Thanks

Eric

"Steven Cheng[MSFT]" wrote:
Hi Eric,

All of the options Juan has posted in his message is based on single web
project, the aspnet_compiler or aspnet_merge tool all precompile single
website's source files and UI components into different assemblies. If
you've separated a single website into multiple website, I'm afraid those
option(like web deployment project) won't work.

Generally, we just consider for a single web site web application, then we
can use the Web Deployment Project to help make the whole precompiled
website has only one assembly which contains all the precompiled web UI
component classes and other helper classes.... For detailed mechanism of
the asp.net 2.0 precompilation and the web deployment project, see the
articles linked in the following page:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Feb 23 '06 #5
Thanks for making that clearer, Steven!

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:%2******** *******@TK2MSFT NGXA01.phx.gbl. ..
Hi Eric,

All of the options Juan has posted in his message is based on single web
project, the aspnet_compiler or aspnet_merge tool all precompile single
website's source files and UI components into different assemblies. If
you've separated a single website into multiple website, I'm afraid those
option(like web deployment project) won't work.

Generally, we just consider for a single web site web application, then we
can use the Web Deployment Project to help make the whole precompiled
website has only one assembly which contains all the precompiled web UI
component classes and other helper classes.... For detailed mechanism of
the asp.net 2.0 precompilation and the web deployment project, see the
articles linked in the following page:

http://msdn.microsoft.com/asp.net/re...p/default.aspx

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Feb 23 '06 #6
Thanks for the response Eric,

I think this is just the problem here.

As you mentioned, in your case there're multiple vs 2005 web projects
making up of a single website. However, the precompilation of the VS
2005(aspnet_com piler) or web deployment project(aspnet_ merge) is targeting
a single web project(not a logical site in your scenario. So if you want
to build a single assembly for your whole site, you need to do the
precompilation after you've intergrated all those seprate vs 2005 web
projects into single main web project, then use the options mentioned in
previous message on that single project.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 24 '06 #7
Hi Steven,

Can you have multiple compiled assemblies make up a web site? If so, it
looks like the best way would be to make them updateble. Is this the correct
assumption. What I do not want to do is to make one giantic assembly for the
web site.

Instead we are attempting to make smaller assemblies that will make up the
whole web site. Is this possible under VS 2005?

Thanks

Eric

"Steven Cheng[MSFT]" wrote:
Thanks for the response Eric,

I think this is just the problem here.

As you mentioned, in your case there're multiple vs 2005 web projects
making up of a single website. However, the precompilation of the VS
2005(aspnet_com piler) or web deployment project(aspnet_ merge) is targeting
a single web project(not a logical site in your scenario. So if you want
to build a single assembly for your whole site, you need to do the
precompilation after you've intergrated all those seprate vs 2005 web
projects into single main web project, then use the options mentioned in
previous message on that single project.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 26 '06 #8
Thanks for your response Eric,

Well, I've got that what you want is make the whole website separated into
multiple parts and precompiled them into separate assemblies rather than
generate a single too huge one. I'm afraid this not supported by the
current precompilation model. The current precompiler will perform the
precompilation based on project/website level. So when precompiling the
website, it'll build some application scope data and helper
classes(interna l use) into the precompiled assembly, if we separate one
web site project into multiple ones and precompile the separately, I'm
afraid there will cause those assemblies contains duplicate items which
will conflict with one another. In addition ,the path problem you mentioned
is also one of the potenital issues.

Currently I think the "merge each individual folder output to its own
assembly" option of the "Web Deployment Project" may be one possible
workaround, this can help make each sub folder( the page or resources in
it) in the applicaiton be precompiled into a separate assembly.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 27 '06 #9
I will try this.

Thanks

Eric

"Steven Cheng[MSFT]" wrote:
Thanks for your response Eric,

Well, I've got that what you want is make the whole website separated into
multiple parts and precompiled them into separate assemblies rather than
generate a single too huge one. I'm afraid this not supported by the
current precompilation model. The current precompiler will perform the
precompilation based on project/website level. So when precompiling the
website, it'll build some application scope data and helper
classes(interna l use) into the precompiled assembly, if we separate one
web site project into multiple ones and precompile the separately, I'm
afraid there will cause those assemblies contains duplicate items which
will conflict with one another. In addition ,the path problem you mentioned
is also one of the potenital issues.

Currently I think the "merge each individual folder output to its own
assembly" option of the "Web Deployment Project" may be one possible
workaround, this can help make each sub folder( the page or resources in
it) in the applicaiton be precompiled into a separate assembly.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Feb 27 '06 #10

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

Similar topics

43
2603
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the User first hits Internet Explorer 6.0 on your browser.
9
1571
by: AGoodSpellr | last post by:
Is it possible to use Visual Studio to create ASP.NET projects on a web server, without giving the various people that will be doing this full administrator privliges? Each user will need to have independent folders that they can modify (ie, one user cannot change the contents of another user's folder). Access to the server must be strictly...
4
1135
by: Dinçer | last post by:
Hi, I have two ASP.NET web projects residing on IIS. (Lets say, http://localhost/Web1 and http://localhost/Web2 ) When I debug one of these applications (using VS .NET) and stop at a breakpoint, I came accross this problem: I can't run the other web application from Internet Explorer. The page waits and waits and waits... As soon as I...
10
3429
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read somewhere that each folder under the "web site" is compiled in separate assembly. I however, did not find that the "web site" creation in vs.net...
0
269
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">...
2
311
by: raskovsky | last post by:
Hello, I'm new to access, I've used vc++ and sql, but I was required to program this project in access. I have two questions in one. First let me explain my program. It's a huge database which takes the accounting of a construction company. One of the most important things of the program is to load all the bills of the different suppliers. The...
34
2559
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button remains desperatly grayed. It also seems impossible to open the library in another Access instance
1
1315
by: Nathan Sokalski | last post by:
I have a Visual Studio Solution that contains multiple ASP.NET Projects. I do not want to put all of the pages (*.aspx files) in the root directory of my site, because that would be very disorganized. However, I am having trouble getting any projects other than the one that I place in the root directory to work. What extra steps do I need to...
7
1410
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I did my MCAD sometime ago in 1.1, using the 305 manual. I've since moved up to VS 2005. I've created perhaps a half dozen Dot Net 2.0 web applications. (Click on the Create Project link within Recent Projects and Asp.Net Web Applications.) Now I find out that my co-worker has been programming in a different style. He's been using the...
0
7746
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7668
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...
0
7983
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. ...
0
8179
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...
0
8035
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...
0
6356
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...
1
5556
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...
1
2166
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
1
1269
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.