Hyperlink to .pdf not working

Discussion in 'ASP.NET / ASP.NET Core' started by jd4moto, Dec 21, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have a .pdf hyperlinked as follows: <a href="../subfolder/docname.pdf" target="_blank">docname</a>
    When I run my application in debug mode (MS visual studio express 2010) I can open this doc with no issues, but when I publish my app to DiscountASP, I try to open the file and I get the error:

    HTTP Error 404.0 - Not Found
    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    Does anyone have any suggestions? Thanks!!!
     
  2. Ok, I'm an idiot. Got it figured out, I guess you need to set the type to "content" in the pdf properties...
     
  3. mjp

    mjp

    Thanks for posting that follow-up, it will help someone else down the road.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page