Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

WSH - New ActiveXObject & Persmission denied

Posted on 2002-04-05
10
Medium Priority
?
370 Views
Last Modified: 2008-02-01
Im trying to create a COM object using the
myobject = New ActiveXObject([object], [remote host])

this results in a "permission denied" alert.
i get no alerts when i try to create the object locally.

the object is my own and i was wondering if i need to
change some security settings through dcomcnfg?

the code is written using jscript in a .wsf file.


best regards
akorn
0
Comment
Question by:akorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 6920787
A couple of things to do what you want.

On the remote host the component should have been added to Component Services (win2000 / xp) or MTS (win NT). After that you should also set permission for this object for who may access them and under which user it should be ran. (easily accomplished, check the properties of the component within MTS or Component Services).

Then the next (easy) step is to export the component. This will eventually give you an application which you will need to send to your clients. Run the program from there and the component should be created with the above code (note: only if that user has permission to).

You may need to create a new package (within MTS or Component Services) which suits your needs though...

CJ

0
 

Author Comment

by:akorn
ID: 6927848
sorry but i think i havent made myself clear.

ive already got the COM Service installed on several machines. and ive also installed the object on the clients. there is no problem running vbs or .wsf files as long as im running them locally ie.:

  Var myobject = New ActiveXObject([Object])

but for some reason the call:

  Var myobject = New ActiveXObject([Object], [Remote Host])

gives a "persmission denied" alert! ive discovered that this alert does not show if the client station is a windows 2000 server, only when im using windows 2000 pro.

also the remote server is NOT on the same domain as the client. when the server is on the same domain as the client theres no problem.

ive tried to change the "Default Authentication Level" in dcomcnfg aswell as added the users in "Default Access Permission" and "Default Launch Permissions". to no avail.

im at loss here...
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6927892
Have you tried giving Everyone (or at least the IUSR_MACHINENAME and IWAP_MACHINENAME users) launch and access permissions within component services (on the remote host)?

CJ
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:akorn
ID: 6927901
yes i have. both on the remote host and on the local one.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 6927915
Should only be done on the server.

Anyway, another thoguht. You say that when it is within the same domain then everything works correctly. This remoten server is not on the same domain. So, are you accessing it using the http port (80)?

If so you might want to give RDS a try

var mobj = New ActiveXObject("RDS.DataSpace")
var myobject = mobj.CreateObject("[Object]", "[remotehost]")

CJ
0
 

Expert Comment

by:quirkyquirky
ID: 7299413
0
 

Expert Comment

by:ComTech
ID: 7300661
This person has been suspended for multiple violations of the Member Agreement, and will reject the proposed answer, and return your question to the Active Questions List.  The Moderator Group is deleting all 388 locked questions.

These were posted by three persons:

quirkyquirky
EliteKiller
liloXwin
 
Thank you,
ComTech
CS Admin @ EE
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7508169

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7548088
Question has been closed as per recommendation

JGould-EE Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Simple Linear Regression
Progress

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question