Skip to main content

Posts

Showing posts from December, 2010

Curious case of PDF file not being included as part of deployment

I included a PDF file as a part of web project and hyperlinked it in a page. This web application was part of Azure deployment. When I tried to test this in the dev fabric to my surprise i was greeted with 404 error :(
I turned out while VS does some magic for web content files (html, asp, jpg etc), but for PDF file it does not set the Build Action property of the file and hence this error. Changing the Build Action to 'Content' solved everything.

Happy Coding,
Chandermani