Error: aspnet_merge.exe exited with code 1

Last post 11-19-2008 5:08 AM by narendersinghkahlon. 11 replies.

Sort Posts:

  • Error: aspnet_merge.exe exited with code 1

    05-12-2006, 12:14 PM
    • Member
      148 point Member
    • aivanoff
    • Member since 02-28-2006, 5:08 PM
    • Posts 45

    I have web deployment project with "Allow this precompiled site to be updatable" set to "false". If "Output Assemblies" set to anything but "Merge individual folder output to its own assembly" I get the following error:

    "aspnet_merge.exe exited with code 1".

    Alex
  • Re: Error: aspnet_merge.exe exited with code 1

    05-12-2006, 2:32 PM
    • All-Star
      55,186 point All-Star
    • DarrellNorton
    • Member since 04-04-2003, 3:49 PM
    • VA, USA
    • Posts 6,634
    • Moderator
      TrustedFriends-MVPs
  • Re: Error: aspnet_merge.exe exited with code 1

    05-12-2006, 3:01 PM
    • Member
      148 point Member
    • aivanoff
    • Member since 02-28-2006, 5:08 PM
    • Posts 45

    I turned on detailed logging in MSBuild and here is the error:

    An error occurred when merging assemblies: Access to the path 'C:\Projects\Rewrite\Engineering\Source\Mail\SendMailWebDeploy\Debug\bin\SendMailWeb.pdb' is denied.

    Alex
  • Re: Error: aspnet_merge.exe exited with code 1

    05-16-2006, 3:11 AM
    • Contributor
      2,881 point Contributor
    • Pluginbaby
    • Member since 11-20-2005, 8:07 PM
    • Canada
    • Posts 486
    • TrustedFriends-MVPs

    debug file seems to be locked by another process.
    Are sure your application is not running while deploying? and in debug mode ?

    In case just restart Visual Studio and retry.

    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    Laurent Duveau
    Silverlight MVP / Silverlight Insider
    http://weblogs.asp.net/lduveau/
  • Re: Error: aspnet_merge.exe exited with code 1

    05-16-2006, 9:29 AM
    • Member
      148 point Member
    • aivanoff
    • Member since 02-28-2006, 5:08 PM
    • Posts 45
    No. I restart the computer, start VS, load project, build it and get the error.
    Alex
  • Re: Error: aspnet_merge.exe exited with code 1

    05-17-2006, 10:40 PM
    Answer
    • Member
      148 point Member
    • aivanoff
    • Member since 02-28-2006, 5:08 PM
    • Posts 45

    I finally figured what was causing this: name of the output assembly. If it is set to the same name as the project name (in my case SendMailWeb) then I get an error. Looks like it is due to the fact that WDP names its output assembly the same. After renaming output to SendMail everything works. Thanks everyone!

    Alex
  • Re: Error: aspnet_merge.exe exited with code 1

    05-18-2006, 3:31 AM
    • Contributor
      2,881 point Contributor
    • Pluginbaby
    • Member since 11-20-2005, 8:07 PM
    • Canada
    • Posts 486
    • TrustedFriends-MVPs
    Ok,
    Nice to share tips !!
    (If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

    Laurent Duveau
    Silverlight MVP / Silverlight Insider
    http://weblogs.asp.net/lduveau/
  • Re: Error: aspnet_merge.exe exited with code 1

    08-22-2006, 9:59 PM
    • Participant
      1,084 point Participant
    • mcsenow
    • Member since 05-24-2003, 7:29 PM
    • McLean, VA
    • Posts 218
    This error has been reported for so long and there is no fix for it.  Many developers piss at the new build model in .NET 2 because it does not allow to build and distribute the code as an DLL as using Web Site Project.  Do we suppose to distribute opensource? 
  • Re: Error: aspnet_merge.exe exited with code 1

    09-14-2006, 10:48 AM

    I had this error and discovered that it was caused by having a DataSet with the Same name as my ASPX page, example TaskRate.XSD and TaskRate.ASPX.  I renamed my page and the error went away.  I hope this helps others.

     

    Gerry

  • Re: Error: aspnet_merge.exe exited with code 1

    09-27-2007, 12:45 PM
    • Member
      2 point Member
    • rosekillervn
    • Member since 12-24-2005, 3:28 AM
    • Posts 2

    this problem occur in  aspnet_merge.exe, because 2 page have same class name in project.

    When u compile, if u choose " single page assemblies", this error don't occur. When u choose merge assemblies, it will occur.

    To solve this problem  is very easy. Find the page have the same class name and change it. 

     

    Xhuyvn. 

  • Re: Error: aspnet_merge.exe exited with code 1

    08-27-2008, 7:41 AM
    • Member
      2 point Member
    • annie_india
    • Member since 08-27-2008, 9:40 AM
    • Posts 1

    Hello everyone,

    I also had this problem and your solution is right.

    thank you.

    annie

  • Re: Error: aspnet_merge.exe exited with code 1

    11-19-2008, 5:08 AM

    The main reason behind the problem is the duplicate "Inherits" name of pages.

    For solution you can visit:

    http://an-it-solution.blogspot.com/2008/11/aspnetmergeexe-exited-with-code-1.html

    Warm Regards,
    Narender Singh

    http://an-it-solution.blogspot.com
Page 1 of 1 (12 items)