<p>I have a ASP.NET project and when building the project it is showing build suceessfull. But when I am building the deployment project, it is showing build failed with an error message </p>

<pre><code>Error    5    "aspnet_compiler.exe" exited with code 1
</code></pre>

<p>I rechecked my project and found that when i am removing the line <strong><code>&lt;!--#include file="admin/topstyle.asp"--&gt;</code></strong>, it is working fine. If I use this line, I am getting error building web deployment project to create my dll.</p>

<p><strong>topstyle.asp</strong> is a file which render some common styles for the page like heading image and all.</p>

<p>Can anyone tell me how to get rid of this problem?</p>

Does it work successfully on other pages? Also is the Topstyle.asp page a ASP.NET page? If not it will not work as you can't mix the two technologies like that.
In ASP.NET the include syntax is discouraged. Try using a user control instead, or the <%= Globals.MyConstantThatContainsTheStyles %>.
If you are using ASP 2.0 look at using Master Pages, but that might be a big change for your app.