Consulting

Results 1 to 3 of 3

Thread: Solved: Run-time Error 70 creating application object in Windows 7

  1. #1

    Solved: Run-time Error 70 creating application object in Windows 7

    I have a C++ application that has an automation interface accessible via Visual Basic. I've added the app's type library as a Reference, and the application object is initialized using the following code (this is in Excel):

    dim erapp as ERStudio.Application

    set erapp = New ERStudio.Application


    This works fine on Windows XP, but on Windows 7 when it tries to create the new object I get a "Run-time error '70': Permission Denied" error.

    Does anyone know why this might occur? I tried disabling the UAC, and I tried running under the Administrator account (actually logged in as Administrator, not using the file context menu), but no luck. I also tried CreateObject method of creating the object, but that made no difference. I checked the registry and the app and CLSID are registered properly.

    Any help would be greatly appreciated. Thanks!

  2. #2
    I figured it out! The app was actually not registered properly. In the LocalServer32 key in the CLSID key didn't include the executable name. It only had the app directory. We seem to be having issues registering the app on Windows 7, but that's for us to figure out.

  3. #3
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Thanks for posting back!
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •