apsnet_merge woes

  • Thread starter Thread starter tbh
  • Start date Start date
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
 
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.
 
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
 
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
 
Back
Top