Petrus
March 22nd, 2007, 09:41 AM
I can browse and open PDF's on my company's intranet by clicking on a weblink in IE7, however when trying to navigate directly to the PDF the browser is not redirected. There is no error, no indication that it attempted to open this file.
Example:
Works: Navigate to http://Server/Documents, and then click on a document link.
Doesn't Work: Navigate to http://Server/Documents/MyDocument.pdf
I need to use IE, because .NET's WebBrowser control uses IE extensions to operate. I'm writing a program that navigates to a URL to display a selected PDF in the WebBrowser. The PDF's are located in a virtual directory hosted in IIS. Like IE7, my program will navigate and display pdf's from the internet. I can also view the contents of my virtual directory and select a hyperlinked PDF document for viewing. But attempting to navigate directly to a target intranet-hosted PDF causes this error:
Internet Explorer cannot download (Filename) from (server).
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found.
Acrobat Reader 7 will display these PDF's leading me to believe that IIS is correctly configured. Anyone else hosting PDF's via a virtual directory in IIS that would be able to test this out?
Example:
Works: Navigate to http://Server/Documents, and then click on a document link.
Doesn't Work: Navigate to http://Server/Documents/MyDocument.pdf
I need to use IE, because .NET's WebBrowser control uses IE extensions to operate. I'm writing a program that navigates to a URL to display a selected PDF in the WebBrowser. The PDF's are located in a virtual directory hosted in IIS. Like IE7, my program will navigate and display pdf's from the internet. I can also view the contents of my virtual directory and select a hyperlinked PDF document for viewing. But attempting to navigate directly to a target intranet-hosted PDF causes this error:
Internet Explorer cannot download (Filename) from (server).
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found.
Acrobat Reader 7 will display these PDF's leading me to believe that IIS is correctly configured. Anyone else hosting PDF's via a virtual directory in IIS that would be able to test this out?