Have you ever had Visual Studio tell you your web application publish failed, but never gives you a reason why? You’re not alone. I’ve been putting off looking into this issue on a project and just found a way to get my answer right away.
Here’s what you should do inside of Visual Studio to find out why your publish failed.
- Click the Tools menu > then Options to bring up the Options dialog.
- Expand ‘Projects and Solutions’ on the left and click General
- On General, click ‘Show Output window when build starts’
- Now click on ‘Build and Run’ in the left tree
- Next select a value from the ‘MSBuild project build output verbosity’ drop down menu
- OK your way back to the main Visual Studio window
- The next time you Build or Publish your project, you should see the Output panel pop up. If your publish is still failing, the answer will live inside the Output panel
Here’s a visual walkthrough of these instructions.





hi,
tnx a lot !
Thanks, you are a life saver!
Glad this helped out guys
brilliant!
Thanks for clearing up this annoyance!
Thank you, this was really bugging me!
Gracias amigo, me estaba volviendo loco con este error…gracias nuevamente…
No problemo!
Thanks Eric ……….
It solved my problem
Avinash
Thank you very much for detailed solution – it helped!
Yuri
oops,it seems not working for me.there's no message that can help me to solve whatever bugs from the Output window.
any ideas?
jojo, Unsure why this wouldn't work for you unless your panels aren't visible for some reason. If your project is giving you trouble after building it, be sure to check the Error List ( View > Error List ).
hi,eric.Thanks for your reply.I managed to build the project successfully,but somehow when it comes to publishing the bin folder,it fails.There’s no error in the error list.I even tried to restart my IIS,but it won’t work.
sorry..it’s actually my mistake.I deleted a file from the physical folder,but I didn’t remove it from the solution file. :p
anyway,thanks eric.great post anyway!
Jojo, I know the feeling:) Glad you're up and running again.
Hi Man, Thx a Lot, Helped me and saved me time!
quality – cheers mate
Excellent
Very helpful post. Thank you.
Nice Work Done.
It's Grate
I found out the problem due to your post. thanks!
Thaks a lot, this tip help me resolved my issue.