aspnet_compiler.exe exited with code 1 during build process

Recently, I encountered aspnet_compiler.exe exited with code 1 error during build process. For you information, I’m running the build in Team Foundation Build 2010. Surprising, I only hit this error during local build with Visual Studio 2010.  To trace the root cause of the problem, you need to run aspnet_compiler manually with the error stack. The following are the steps that I performed:

Step 1: Open the Visual Studio 2010 Command Prompt.

Step 2: Run the aspnet_compiler.exe with the errorstack flag on your project (where C:\PROJECT is the location of your project). For example,

<Command Prompt>aspnet_compiler.exe -errorstack -v /PROJECT -p C:\PROJECT

Step 3: Look for the problem in the output.

Step 4: Since it doesn’t give you a specific line number, search through your ASPX files and try to find the error..

Step 5: After fixing the problem, rerun the compiler to ensure the problem is solved.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: