Re: IIS and .dll file access problems
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 05/06/04
- Previous message: David Wang [Msft]: "Re: Problem with Custom Errors"
- In reply to: anonymous_at_discussions.microsoft.com: "IIS and .dll file access problems"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 6 May 2004 01:17:37 -0700
By definition, IIS treats resources with the .DLL extension as "executable"
(along with .EXE, .COM, .CGI, .ISA -- this is why you can't have a directory
with a .com extension). IIS also treats extension that are scriptmapped,
like .ASP , as "scripts".
Thus, If "Scripts and Executables" is enabled for a vdir and a resource with
.DLL extension is requested by the browser, IIS WILL attempt to execute the
DLL as an ISAPI on the server
If "Scripts" is enabled instead, access to the .DLL extension will result in
IIS serving up the file for download (since "executables" is not allowed).
This is how you configure IIS to distinguish a request for a .DLL file as
"execute this on the server" or "send it to the browser as a download".
If you claim that the other servers which run the app just fine and have
"Scripts and Executables" enabled on the vdir containing this DLL, then
either:
1. The browser requests the resource as a .DLL, thus IIS will execute it on
the server. If that's the case, then check if your .DLL file is corrupted,
which would cause IIS to fail to execute it when requested.
2. The browser never requests the resource as a .DLL, but something else
running on the server or client relies on the DLL being registered. If
that's the case, then check if the DLL is registered and ACL'd properly on
the client or server.
In both cases, you must know what your application is using and where a
given DLL is running (either on the server or downloaded and executed in the
client) in order to configure it properly. You have given insufficient
information as to how your application works, so it is really hard to assist
any further.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // <anonymous@discussions.microsoft.com> wrote in message news:8b8e01c432d0$cc8cea70$a401280a@phx.gbl... That does work, however the application that uses that dll file still will not access it, so I guess it's a little deeper than just being able to download it. It needs to be able to execute as well. There are other servers which run the app just fine and have it set to script and execute as well... >-----Original Message----- >Make sure that you have Scripts Only set on the VD and >not Scripts and Executables. > >doug >>-----Original Message----- >>I have a brand new server with a fresh install of W2k >>running IIS, I have created a virtual directory, have >>created the directory on the hard drive and given the >>IUSER full access to the folder, also the VD has >>R/W/Browse all that turned on. I can go to >>http://localhost/folder and view the contents, access >the >>files, even download the files locally on the machine. >>But I have a .dll file in the folder that just brings >>up 'page cannot be displayed' as opposed to trying to >>download it. if I change the file name to .anything it >>will try to download it. If I take a .txt file that >>opens, and change it to .dll it will page not displayed >>in IE. >> >>can anybody help me? >>. >> >. >
- Previous message: David Wang [Msft]: "Re: Problem with Custom Errors"
- In reply to: anonymous_at_discussions.microsoft.com: "IIS and .dll file access problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|