Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Web Page "Cant Find File"

$
0
0

Hi All

I have a .pdf file in my VS2010 ASP.net web application thats located in a folder off the project folder called "CV" like

project\CV\MyFile.pdf

When I run the Web app and select the page to display the .pdf all works well.

 

When I publish the project the .pdf file cannot be found. Ive located the physical folder and .pdf file on the inetpub\wwwroot\project\CV\MyFile.pdf

so I know the file and folder have been created and exist.

 

Heres the code I use to display the .pdf:-

<object width="900" height="1200" type="application/pdf" data="../CV/Profile.pdf?#zoom=85&scrollbar=2&toolbar=0&navpanes=0&copying contents=0" id="pdf_content"><p>Sorry, but I cant find the document.</p></object>


Any ideas why my live app cant find the file even though the location and file exist?

Hope that makes sense.

tia

 

 

 

 

 


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>