apsnet_merge woes

T

tbh

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:

An error occurred when merging assemblies: Der Objektverweis wurde nicht
auf eine Objektinstanz festgelegt.
(the German means roughly null reference exception error)

?

if we had some clues about what was referencing what, the tool would be
considerably more useful.

cheers,

Tim Hanson
 
G

George

I am using with aspnet_merge as well I did not have problems with that.
One thing that concerns me is that you said "we don't merge until
deployment". Not sure what you mean exactly but for me merging is part of
deployment.

First I develop a project on my machine then when it's ready I compile it
with aspnet_compiler.exe and then merge it with aspnet_merge.exe
And then move it to production.
-----------------------------------------

Also some good point i read recently is if you have 2 pages with the same
name in different folders merge will fail.
read more here
http://www.cosmocentral.com/post/MSBuild-Aspnet_mergeexe-Exited-With-Code-1.aspx
and here
http://www.dotnet2themax.com/blogs/...uid,ac5c95f8-f73e-4ed7-86ad-93dab0f34d4e.aspx

George.
 
T

tbh

thanks, George,

George said:
I am using with aspnet_merge as well I did not have problems with that.
One thing that concerns me is that you said "we don't merge until
deployment". Not sure what you mean exactly but for me merging is part of
deployment.

First I develop a project on my machine then when it's ready I compile it
with aspnet_compiler.exe and then merge it with aspnet_merge.exe
And then move it to production.

yes, that's what we do too. i could probably save time by "publishing"
locally and then merging, but it still takes several minutes.

so again, any hints about newer, better versions of apsnet_merge would be
hugely appreciated.

Tim
 
G

George

Have you checked those links
-------friom original post--------------
Also some good point i read recently is if you have 2 pages with the same
name in different folders merge will fail.
read more here
http://www.cosmocentral.com/post/MSBuild-Aspnet_mergeexe-Exited-With-Code-1.aspx
and here
http://www.dotnet2themax.com/blogs/...uid,ac5c95f8-f73e-4ed7-86ad-93dab0f34d4e.aspx
----------------
Is it your case? Other than that i am not sure what else to offer.

Try to completelly remove the folder where you publishing your version. Most
likely some garbage is left there which prevents merging. Publishing only
adds new files but does not remove files...

George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top