Home » General, Programming / Coding

aspnet_merge.exe exited with code 1 – Duplicate Class Error

4 August 2010 1,123 views No Comment

Usually you would get this error with your Web Deployment Project if there have multiple classes with same name.

To fix this issue you need to rename the conflicting classes.

To find out the conflicting classes follow these steps:

- From Visual Studio Tools Menu Click Options.
- Expand Projects and Solutions
- Click on Build and Run
- From the dropdown “MSBuild Project Build Output Verbosity” select Diagnostic
- Click on OK to save
- Now build your project using the Web Deployment Project
- Now wait for the project build to fail.
- From the Visual Studio View Menu click on Output You will see where the duplicates on output when it fails to build. Fix the duplicates.
- Build again.

From Webcosmo Webmaster Forum http://www.webcosmoforums.com/asp/21401-aspnet_merge-exe-exited-code-1-a.html

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.