none
The DllRegisterServer returns 0x80070005

    Question

  • I coded a H.264 directshow-based decoder. I register it by running the "regsvr32.exe diavc.ax" and it succeeds. But some users report that it fails with the following message:

    The module "diavc.ax" was loaded but the call to "DllRegisterServer" failed with error code 0x80070005.

    How can I solve the problem?

    The next code is the "DllRegisterServer", it is very simple.

    STDAPI DllRegisterServer()
    {

        return AMovieDllRegisterServer2( TRUE );

    }

     

    Friday, December 10, 2010 3:42 PM

All replies

  • What are your dependencies?  Did you statically link to the CRT to avoid a dependency on the CRT DLL's?

    If they are running Vista/Windows 7 make sure they elevate to UAC Administrator privileges before attempting to register.


    www.chrisnet.net
    Friday, December 10, 2010 4:18 PM
  • What are your dependencies?  Did you statically link to the CRT to avoid a dependency on the CRT DLL's?

    If they are running Vista/Windows 7 make sure they elevate to UAC Administrator privileges before attempting to register.


    www.chrisnet.net
    Yes, the filter is staticly linked to CRT to avoid a dependency on the CRT dlls.
    Saturday, December 11, 2010 6:41 AM
  • hurric wrote:
    >
    >I coded a H.264 directshow-based decoder. I register it by running
    >the "regsvr32.exe diavc.ax" and it succeeds. But some users report
    >that it fails with the following message:
    >
    >The module "diavc.ax" was loaded but the call to
    >"DllRegisterServer" failed with error code 0x80070005.
     
    That's E_ACCESSDENIED. Does this happen on Vista and Win 7 systems? If
    so, the problem is likely to be UAC and the need for elevation.
    --
    Tim Roberts, timr@probo.com
    Providenza & Boekelheide, Inc.
     

    Tim Roberts, DDK MVP
    Saturday, December 11, 2010 7:45 AM
  • Tell your users to launch the command prompt window with a right click, "Run as administrator". The they can enter "regsvr32.exe filtername.ax"
    Michel Roujansky, http://www.roujansky.com
    • Proposed as answer by kt223 Friday, December 17, 2010 2:28 AM
    Saturday, December 11, 2010 1:10 PM