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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS Problem?

Status
Not open for further replies.

tassflint

Programmer
Dec 29, 2005
21
US
Hello all,

One of my pages has an html object tied to a 3rd party twain dll . This page works just like it is supposed to within Visual Studio 2005. The problem comes when I upload it to our intranet server. The object does not see the dll, even though it is pointing to the location within its own file structure. Here is the code for my object.
Code:
<object id="Twain1" name="Twain1" 
          classid="[URL unfurl="true"]http://dc2/scan/Twain.dll#Twain.VSTwain"[/URL]
          codebase="[URL unfurl="true"]http://dc2/scan/Twain.dll#fileversion=1,6,1,1">[/URL]
    </object>

I have followed all the instructions on the vendors faq to set the .Net security settings. Is there something within IIS that I can look at to see if IIS is not allowing the dll to be viewed. I have already changed the properties of the dll to allow script access within IIS.

Thanks in advance,

Brian
 
so, dc2 is the name of the local IIS server and that is where the dll is found?

The problem most likely is, that unless you are accessing the page from the local IIS server only, nobody remotely (outside of that local server) will be able to get the dll, because the codebase has to be processable from the user's browser.

Local server addresses (1 name addresses) are only usable by the local server, and in small cases, by the local LAN ... it won't be accessible by anyone on the internet itself or likely outside that server.

You need to supply the IP address or actual domain in the codebase etc URLs.

If you can enter the URL in the browser address field as and it actually works (downloads the file), then it will work for anyone not on the local server.
 
safaritek,

I am able to download the file from that url. I have also tried putting in the IP address for dc2 and it did not work either. Are there special permissions that need to be set in either IIS or maybe in Windows 2003 that I am missing?

Brian
 
The site where the dll is hosted would need to have the IP address added to the headers.

I cannot access the dll with that URL, so that would mean it is only accessible on the local network, not to the general public, correct?

So long as you have the permissions in place that the supplier provided, it should be fine.
 
safaritek,

Yes, it is our intranet server and has no outside connections. I do have all permissions.

What do you mean by adding the IP address to the headers? I only began web programming this year when I started with this company.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top