Loading a dll from a COM executable that is running under a custom user is not working RRS feed

  • Question

  • Hi,

    on a Windows Server 2008 x64 machine we are trying to load a dll from a COM executable under a particular local user (added to local Administrators group).

    The problem is not caused by the dll itself, because we have written a small program that calls that dll successfully.

    We experience the problem from a .NET web application that runs under an AppPool configured with the same custom user. In the web application we get the following error:

    System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

    we were thinking about a permission problem, so we set the full control to that specific user on the folder where the dll is and also on IIS application pool the Web application runs under.

    Is there something new in Windows Server 2008 regarding security issues and/or COM dlls?

    Thanks in advance.

    Friday, July 23, 2010 10:18 AM