/    Sign up×
Community /Pin to ProfileBookmark

Calling method of a COM Component fails from remote machine

I have an classic ASP application.
I have created an object variable for one of my COM component and I am calling its method in my JavaScript code.
This works just fine from my local machine but when I access my machine from another maching using the URL, same code does not work.
Object seems to get created successfully (typeof gives “object” for that variable) but method does not get invoked.
I checked IE security settings on that another machine, they are OK.

Below is code snipet.
————————————

var objImageFunction;
objImageFunction = new ActiveXObject(“Proj1.Class1”)
objImageFunction.DeleteFromPPFUploads(“test”, “sameer”);

objImageFunction = null;
—————————————-

I have written trace code in the DLL which I am calling. That log gets written when i access my own machine locally but not when i access my machine from another machine using my URL.

What could be the reason?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @sameernavare spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...