473,386 Members | 1,705 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,386 software developers and data experts.

aspnet_merge

Hey,

The aspnet_merge utility looks really good for me because I need to deploy
1000's of pages (not just to one prod server, but to dozens). However, it
seems to require that 2 .compiled files for each of my pages (one for the
aspx and one for the cs) get put into the /bin directory.

The reason I do not like this is because I need to manage (my own)
versioning for smaller "tools" within my app (say a hundred pages per tool)
for each prod server, and dealing with these .compiled files becomes awkward.
Is there any way to get around having so many .compiled files, or perhaps
there is a better way to manage them over dumping them all in the bin?

I see there is a "-r" flag on aspnet_merge that relates to .compiled files,
but I'm not sure what it does.

Thanks,
Brian.

Nov 20 '05 #1
3 2671
Hi Dear Brian Pearson,

Look into these links

Merging ASP.NET 2.0 without aspnet_merge
========================================
http://geekswithblogs.net/rwandering.../20/57585.aspx

ASPNET_MERGE and Web Deployment Projects Arrive!
=================================================
http://petesbloggerama.blogspot.com/...d-web-deployme
nt.html

aspnet_merge - a swiss army knife for ASP.NET 2.0
=================================================
http://www.dotnetslackers.com/ASP_NE...e_a_swiss_army
_knife_for_ASP_NET_2_0.aspx
aspnet_merge - a swiss army knife for ASP.NET 2.0
=================================================
http://www.dotnetnuke.com/Community/...ID/195/Default.
aspx

Visual Studio 2005 Web Deployment Projects (Beta Preview)
================================================== =======
http://msdn.microsoft.com/asp.net/re.../wdp/default.a
spx

2 .doc Files
============
http://go.microsoft.com/fwlink/?LinkId=55639

http://download.microsoft.com/downlo...-407b-8c9f-c2d
f5445b041/Using%20web_deployment_projects_final.doc
Web Deployment Projects are here
================================
http://blogs.msdn.com/bgold/archive/...09/491062.aspx

ASPNET_MERGE and Web Deployment Projects Arrive!
================================================
http://www.eggheadcafe.com/PrintSear...sp?LINKID=1033
regards,
Bye,
venkat_KL



For Anything and Everything, Please Let Me Know

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Nov 20 '05 #2
Don't get me wrong, I appreciate your attempt to help me, but a cut and paste
of a google search is not useful to me. I did the same google search before
my original post and read all of those links. If there is information that
addresses my question within those links, please let me know.

Does anyone know if it is possible to use aspnet_compiler and/or
aspnet_merge without one .compiled file for each web page?

Failing that, is there anything I can do to clean up or better organize the
many .compiled files?

And finally, what does the -r flag on aspnet_merge do? I don't understand
what this is telling me:
"Remove the .compiled files for main code assembly. This option should not
be used if your application contains any explicit type references to the main
code assembly."
"Venkat_KL" wrote:
Hi Dear Brian Pearson,

Look into these links

Merging ASP.NET 2.0 without aspnet_merge
========================================
http://geekswithblogs.net/rwandering.../20/57585.aspx

ASPNET_MERGE and Web Deployment Projects Arrive!
=================================================
http://petesbloggerama.blogspot.com/...d-web-deployme
nt.html

aspnet_merge - a swiss army knife for ASP.NET 2.0
=================================================
http://www.dotnetslackers.com/ASP_NE...e_a_swiss_army
_knife_for_ASP_NET_2_0.aspx
aspnet_merge - a swiss army knife for ASP.NET 2.0
=================================================
http://www.dotnetnuke.com/Community/...ID/195/Default.
aspx

Visual Studio 2005 Web Deployment Projects (Beta Preview)
================================================== =======
http://msdn.microsoft.com/asp.net/re.../wdp/default.a
spx

2 .doc Files
============
http://go.microsoft.com/fwlink/?LinkId=55639

http://download.microsoft.com/downlo...-407b-8c9f-c2d
f5445b041/Using%20web_deployment_projects_final.doc
Web Deployment Projects are here
================================
http://blogs.msdn.com/bgold/archive/...09/491062.aspx

ASPNET_MERGE and Web Deployment Projects Arrive!
================================================
http://www.eggheadcafe.com/PrintSear...sp?LINKID=1033
regards,
Bye,
venkat_KL



For Anything and Everything, Please Let Me Know

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Nov 20 '05 #3
I have figured out a solution to this problem, however it takes a bit of doing:

1. Run aspnet_compiler, then aspnet_merge normally and then just
ignore/delete the .compiled files.
2. Create your own replacement for the .compiled files (perhaps one large or
several smaller xml files). All that matters is that you have a way to map
from a virtual path to an Assembly and Type.
3. In your web.config, replace the PageHandlerFactory for .aspx with your
own handler factory.
4. In your handler factory look at the mapping you made in step 2. Use
reflection to load the Assembly and create an instance of your Page

Problem solved! Now instead of 2 .compiled files for EVERY web page, I get
to decide on the format for the mapping between virtual path and
Assembly/Type that will serve the page.

One nifty side benefit of this is that I can now store my assemblies
anywhere I want (not just the \bin dir!), since I'm loading them myself using
reflection.

Some other notes for people going through this:
- You don't need to put empty web pages all over, just uncheck "verify that
files exists" in the IIS mapping
- It seems that pre-compiled sites don't allow a mixture of regular and
compiled pages. One can imagine creating a solution for this with the above
technique.

I was mildly disappointed that I couldn't organize the .compiled files "out
of the box", but I'm very happy that ASP.NET is flexible enough to let me
code it up myself.

Brian.

"Brian Pearson" wrote:
Don't get me wrong, I appreciate your attempt to help me, but a cut and paste
of a google search is not useful to me. I did the same google search before
my original post and read all of those links. If there is information that
addresses my question within those links, please let me know.

Does anyone know if it is possible to use aspnet_compiler and/or
aspnet_merge without one .compiled file for each web page?

Failing that, is there anything I can do to clean up or better organize the
many .compiled files?

And finally, what does the -r flag on aspnet_merge do? I don't understand
what this is telling me:
"Remove the .compiled files for main code assembly. This option should not
be used if your application contains any explicit type references to the main
code assembly."
"Venkat_KL" wrote:
Hi Dear Brian Pearson,

Look into these links

Merging ASP.NET 2.0 without aspnet_merge
========================================
http://geekswithblogs.net/rwandering.../20/57585.aspx

ASPNET_MERGE and Web Deployment Projects Arrive!
=================================================
http://petesbloggerama.blogspot.com/...d-web-deployme
nt.html

aspnet_merge - a swiss army knife for ASP.NET 2.0
=================================================
http://www.dotnetslackers.com/ASP_NE...e_a_swiss_army
_knife_for_ASP_NET_2_0.aspx
aspnet_merge - a swiss army knife for ASP.NET 2.0
=================================================
http://www.dotnetnuke.com/Community/...ID/195/Default.
aspx

Visual Studio 2005 Web Deployment Projects (Beta Preview)
================================================== =======
http://msdn.microsoft.com/asp.net/re.../wdp/default.a
spx

2 .doc Files
============
http://go.microsoft.com/fwlink/?LinkId=55639

http://download.microsoft.com/downlo...-407b-8c9f-c2d
f5445b041/Using%20web_deployment_projects_final.doc
Web Deployment Projects are here
================================
http://blogs.msdn.com/bgold/archive/...09/491062.aspx

ASPNET_MERGE and Web Deployment Projects Arrive!
================================================
http://www.eggheadcafe.com/PrintSear...sp?LINKID=1033
regards,
Bye,
venkat_KL



For Anything and Everything, Please Let Me Know

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Nov 20 '05 #4

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

Similar topics

14
by: saunderl | last post by:
Hello Everyone, I'm a lead developer of a ASP.Net site. We have over 150 "applications" running at our site. Each application is a "Solution" in VS. When we roll to test and production, the...
16
by: Kent | last post by:
We have created several Assemblies that we add to the GAC on our web servers. In an ASP.NET app in VS2003, Adding a reference to strong named GAC'd Assembly meant that the web app would use...
1
by: Justin Martin | last post by:
Hi, I've just started to use the beta of the web deployment tool. However, it keeps failing with the following message: "aspnet_merge.exe" exited with code 1. Can anyone shed any light on this...
2
by: bb | last post by:
when using the web deployment project to merge my aspnet assemblies i get an unusual error 'access to path denied' i double checked path looks ok, and gave everyone full perms on the folder and...
2
by: bosa | last post by:
Hi, I am looking for a way to deploy a precompiled ASP.NET site that does not involve the bin directory. My problem is that deploying binary files to the bin directory remains a no-no on...
5
by: Mufasa | last post by:
Is there any way to get a version number of a web site? I used System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() in 1.1 and it seemed to return a version number. When I...
0
by: kaza | last post by:
Hi, I am trying to execute some commands in afterbuild event but they simply wont fire. tried it on two different machines but I could not get it to work thanks hier is my xml code :...
0
by: Waldy | last post by:
Hi there, I have a web site project that I am trying to create a deployment file for. However, when I build the solution I get the error shown above. I have searched the web and found that it is...
3
by: tbh | last post by:
hi, off and on i have run into troubles with aspnet_merge. since these problems don't appear on my development machine (we don't merge until deployment) they are time-consuming and annoying. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...

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.