Re: IIS and .dll file access problems

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 05/06/04

  • Next message: Bojidar Alexandrov: "Re: Windows XP IIS - HTTP 403.9 - Access Forbidden"
    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?
    >>.
    >>
    >.
    >
    

  • Next message: Bojidar Alexandrov: "Re: Windows XP IIS - HTTP 403.9 - Access Forbidden"

    Relevant Pages

    • Re: IIS 6 and executables
      ... other people want to execute myprogram.exe on the server. ... IIS will treat such URL requests. ... "Scripts and Executables", then both scripts and executables are allowed to ...
      (microsoft.public.inetserver.iis)
    • Re: HTTP 403.1 Forbidden: Execute Access Forbidden
      ... This sounds like an Visual InterDev behavior/requirement -- I really have no ... execute ASP script, you MUST have the "Scripts" execute permission [so ... scripts and executables is not necessary to run the default.asp page]). ... IIS is merely doing what you configured. ...
      (microsoft.public.inetserver.iis)
    • Re: That stupid cant execute error is driving me insane
      ... This error comes up when the vdir does not have "Scripts" or "Scripts and ... Executables" Execute Permission and you try to access a URL that is either ... Here is a simplistic view of how IIS does request processing: ... If the mapping is dynamic, then IIS decide whether the URL should be ...
      (microsoft.public.inetserver.iis)
    • How to configure my application to recognize the bin directory?
      ... Everything used to work on IIS 5 but now on IIS 6 my ... scripts cannot find the namespace compipiled in the dll in my bin ... But the dll is in the bin ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: LogonUser / CreateProcessAsUser - Behaves differently from different calling applications
      ... >CreateProcessAsUser to execute the command. ... Calling the DLL from another win32 ... > * This object maintains data for the Authentication and Process ...
      (microsoft.public.win32.programmer.kernel)