Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateObject returns permission denied

Status
Not open for further replies.

hat77

Programmer
Jan 22, 2007
3
US
Hi,

I get a permission denied error message when trying to 'CreateObject' of type "QuickTest.Application" (using VBscript).

A portion of the problem has been solved by this thread: thread333-1146373.

This is my first time logging into this site, so please be patient if I am not familiar with the proper posting/referencing procedures.

Regards
 
Hi,

I have a VBScript file (named call_qtp.vbs)...below you will find the contents of the file.

I am executing this file on a machine named "DLAT". Once executed, this script is supposed to launch an application, known as QuickTest, on a remote machine named "GWXP"; thus the name mentioned within the script.

If I understand correctly (from the documentation the QuickTest people provided), I should be able to launch this application from a remote machine, (in this case "DLAT"), even if I don't have it installed on "DLAT". In fact, their documentation states that I should be able to run the application remotely, but fails to mention if that calling machine (in this case "DLAT") has to have the application installed itself. Probably I have to have it installed...don't know...probably will try this.

-----------------------------------------
--Start of file
-----------------------------------------
Dim qtApp
Set qtApp = CreateObject("QuickTest.Application","GWXP")
qtApp.Launch
qtApp.Visible = True
-----------------------------------------
--End of file
-----------------------------------------

When I execute this file, I get the following error message:


-----------------------------------------
--Error message
-----------------------------------------
...
Error: ActiveX component can't create object: 'QuickTest.Application'
Code: 800A01AD
Source: Microsoft VBScript runtime error

By the way, I have setup the proper DCOM permissions on "GWXP" to allow remote users (within the same domain) to execute the QuickTest application and all of its necessary components. I used the following reference to do most of this work: thread333-1146373

Thanks for your time!
 
Unless the application can install itself remotely OR uses WMI I can't see how it would work remotely unless it was installed on the remote machine. Likewise I can't see how it could be created unless it was installed locally as well.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Mark,

Thanks for the reply. I really appreciate it. I am going to install the application on "DLAT" and then try the script again. For the long term, this is not the solution I am looking for.

Best Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top