473,659 Members | 3,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2684
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_dep loyment_project s_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_dep loyment_project s_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 PageHandlerFact ory 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_dep loyment_project s_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
1493
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 main dlls are rolled to the sites single bin directory and the aspx, asmx etc files are rolled to various folders on the server. Now with ASP.Net 2.0 they changed everything. No longer is a web project a project, its a SITE. The dll names are...
16
2084
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 whatever version was in the GAC. Now in an ASP.NET app in VS 2005, adding a reference to a GAC'd assembly actually adds a version specific reference to the web.config. That means that we would have to change the assembly reference in every single...
1
960
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 message? thanks
2
4971
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 files, but nothing. anyone got anything to try? Task "AspNetMerge"
2
1171
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 several security check-lists and is unacceptable to my customers. I tried using the aspnet_merge, signing the assembly with a strong
5
9718
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 do that in 2.0, it always returns 1.0.0.0. The version # isn't really important, I just want to keep track of when changes happen. I suppose I could even do something like compile time. So is there anyway to tell the date/time when a file was...
0
1386
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 : <!-- To modify your build process, add your task inside one of the
0
1558
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 usually caused by duplicate class names. I found that I did have a couple of duplcates where I had been copying pages around. Now that I have checked all my pages and removed or renamed the duplicates I am still getting the error. I have...
3
1170
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. i've searched for clues here and elsewhere but haven't found much definitive yet. in particular, is there a newer version of aspnet_merge that doesn't (nearly) crash with the unhelpful message:
0
8428
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8748
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
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
7359
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2754
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
1739
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.