Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1

    Start QTP from VB

    Hello guys,
    i'm trying to start qtp from a vb application.
    By creating the QuickTest.Application Object i'm getting the following error:

    Creating an instance of the COM component with CLSID {2B9B8E92-EBAA-44AF-A23C-9FBD08EAFA54} from the IClassFactory failed due to the following error: 80070005.

    Any help would be appreciated.
    Regards, kaktus

  2. #2

    Re: Start QTP from VB

    Did you google the error code ?

    Have a look at this ..


    The cause for the error is stated as :
    The authenticated user for the Visual Basic (VB) run-time file (Msvbvm60.dll) does not have sufficient permissions. The authenticated user is the IUSR_computername account when you use anonymous access or the user that is authenticated with the Web page.

    To resolve this problem, assign Windows NT File System (NTFS) Read and Execute file permissions to the appropriate users for VB run time (Msvbvm60.dll). VB run time is usually located in the Winnt\System32 folder.

    Hope this helps..


    P.S Google the error codes , most of these are standard documented error codes which have resolution posted.
    If you do find solution to a problem - have a bud & re-visit !

  3. #3

    Re: Start QTP from VB

    Hello Pai,

    thx for your reply.
    I already tried this solution but it don't work for me. To solve the problem, I set the authenticated user of my web page to administrator. This does not help either.

    Any other suggestions?

    Regards, kaktus

  4. #4

    Re: Start QTP from VB

    Not sure if this will help you (as you might have already followed these steps) but just to double check.-

    1) Created a new console solution

    2) Added referece to COM dll.
    C:\Program Files\HP\QuickTest Professional\bin\QTObjectModel.dll ("QuickTestProfessional 9.5 Object library")

    3) C# Code snippet below (may be you can try in a new project and see if there is a real prb)
    <font class="small">Code:</font><hr /><pre>
    using System;
    using System.Collections.Generic;
    using System.Text;
    using QuickTest;

    namespace ConsoleApplication1
    class Program
    static void Main(string[] args)
    QuickTest.Application qtApp = new QuickTest.Application() ;
    if (qtApp.Launched == false )
    qtApp.Visible = true;

    </pre><hr />
    4) Also, just curious to know if you are able to involke QTP using vbscript ?

  5. #5

    Re: Start QTP from VB

    Do you have admin rights on your system ? As avinash said try invoking QTP from vbscript and see if you get similar errors.
    If you do find solution to a problem - have a bud & re-visit !

  6. #6

    Re: Start QTP from VB

    Hello, sorry for the late answer.

    Yes, I have admin rights on my system (a server (OS: Windows server 2008)).

    The problem is that my application is a ASP.NET application which runs on a IIS server.

    If I run my code local on the server, it works fine.
    But if i run the code from the ASP site on the IIS, I get the error. So it have to be a authorization issue with the IIS server. I already gave admin rights to the IIS user but it don't help.

    I'm sorry, I gave you too less informations.


  7. #7

    Re: Start QTP from VB

    Sorry kaktus not much of experience on IIS servers. May be someone who is experienced on IIS can shed some light.
    If you do find solution to a problem - have a bud & re-visit !

  8. #8

    Re: Start QTP from VB

    Is you IIS server having QTP installed on it?

  9. #9

    Re: Start QTP from VB

    Hi avinash,
    I tried the way you suggested.
    Added library in refrences and tried to Launch Application.

    But cant,
    I am using Visual Studio 2010 and QTP 11.

    Please suggest me.

    Saurabh Gupta

  10. #10

    Re: Start QTP from VB

    @Saurabh, Are you getting any error. What line of code is causing exception ?


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:25 PM.

Copyright BetaSoft Inc.