Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem opening a file in IE Browser

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
Not sure why this is occuring but I am having an issue opening PDF files on my local intranet via a webpage I just created. I can access them if I use FILE:// but not HTTP://

Example:

FILE://<server>/<share>/test.pdf - I can open it this way
- Page cannot be displayed

I can open PDF files in my browser. I tested by going to other sites on the internet.

What could be causing this?

Thx
 
This is related to how the web server is set up. To do this,[ol][li]the web server machine itself needs to access the share just like any other network share (as if you were sitting at the console of the web server)[/li][li]That mapped share must be accessible from or mounted in the web space in order to be served to the clients.[/li][/ol] If those conditions are not met, this will never work. What you're trying to do is not uncommon, but those 2 things (or some form of them) must be done. Again, this is something to be done on the server & has nothing to do with the browser.
 
I believe that I do have access to it as in the web app, I can upload and download files to the location on the other machine. The ID that I am using to start the web server has full rights to the share where the files are stored.

Is that the same thing or something completely different?
 
1. If you were seated at the console of the web server, could you navigate to //<server>/<folder>/<folder>/test.txt using windows explorer (not internet explorer)?

Again, I don't know the IIS nomenclature so this might not be exactly correct, but if the above is true

2. Has this path been mapped to the web server's web space? And if so, at what path? In apache, this would be a directory Alias. I don't know what it's called in IIS.
 
According to Serbtastit's post in your other thread (thread41-1309619), it seems to be called a virtual directory. You should continue the discussion there because this is not a browser problem.
 
ok...i got it working (i hope) now based on Serbtastit's post using the Virtual Directory. I will now have to go back and modify my code to reflect that change. Hopefully won't be that big of a change.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top