Click here to Skip to main content
15,886,794 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a website. When i publish my website all images, everything get published except word and pdf files. Why is it so?. Please help me out.
Posted
Comments
[no name] 14-Feb-12 7:59am    
How are you publishing and where?
Qureshali 14-Feb-12 8:01am    
In build menu-->Publish.
After that i upload files on the server using filezilla
Qureshali 14-Feb-12 8:02am    
In Microsoft visual studio Build-->Publish.
After that i upload files on the server using file zilla

1 solution

You need to set the PDF's build action in the project to "Content" (see this[^]). I assume the same thing will work for Word documents.

At a guess I'd say Microsoft is assuming that these will be project related rather than actual site content by not setting PDFs to content in the first place.
I'd also consider putting keeping the documents out the project (add time to the build, increase package size and tansfer times etc) and put them in a virtual path under your web application. Doing this will also separate out you app from the static content.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900