Adjust DLL permissions in a web application

Discussion in 'General troubleshooting' started by Scott Stoecker, Oct 28, 2014.

  1. I have a DLL that I am trying to access through a VB.NET page. When I attempt to call a class within this DLL, I receive this message:

    Unable to load DLL 'yaz': The specified module could not be found. (Exception from HRESULT: 0x8007007E)​

    I am able to access this code on my development (local) machine.

    After researching, one of the possible solutions was to give the DLL 'Read and Execute permissions for IIS User (IUSER)'. Is it possible to have permissions to the DLL in question changed, if they are not set to the suggested settings already? I'm trying to narrow down what could be wrong with my application.

    Thank you,
    Scott
     
  2. Elshadriel

    Elshadriel Winhost Staff

    Hi Scott,

    Make sure you upload the DLL to the /bin folder. In Visual Studio, you need to make sure the Copy Local value is set to "True." Please read this blog for more information.
     
    Last edited by a moderator: Oct 14, 2015
    Michael likes this.

Share This Page