Re: Problem launching out-of-process server from JavaScript?
From: Ishank Jain (ijain_at_vitalimages.com)
Date: 02/22/05
- Next message: Ishank Jain: "Re: Problem launching out-of-process server from JavaScript?"
- Previous message: Alex Blekhman: "Comprehensive sample of MSHTML hosting?"
- In reply to: Brian Muth: "Re: Problem launching out-of-process server from JavaScript?"
- Next in thread: Ishank Jain: "Re: Problem launching out-of-process server from JavaScript?"
- Reply: Ishank Jain: "Re: Problem launching out-of-process server from JavaScript?"
- Reply: Brian Muth: "Re: Problem launching out-of-process server from JavaScript?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Feb 2005 12:22:04 -0600
Hmmm... How do find what launch permissions I have for the COM Server?
I caught the error as decribed in the article and it says "Automation Server
can't create object". It also has a Code 0 (Anyone know what that means???)
Thanks,
Ishank
"Brian Muth" <bmuth@mvps.org> wrote in message
news:O08hQlJGFHA.2180@TK2MSFTNGP12.phx.gbl...
> What are the launch permissions of the COM server?
>
> My guess is you are probably not catching the Javascript error properly.
> I'm
> not a Javascript expert (I tend to use VBScript) but you might find the
> following article helpful.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnscrpt/html/WebErrors2.asp
>
> Brian
>
> "Ishank Jain" <ijain@vitalimages.com> wrote in message
> news:emjOmoGGFHA.4088@TK2MSFTNGP09.phx.gbl...
>> Hi,
>>
>> I have an out-of-process COM server (an exe) which implements the
> IDispatch
>> interface and am I having problems creating its instance through
> JavaScript.
>>
>> The thing is, when the COM server process is running, creation of the
>> ActiveX object is successful but it fails when it is not running. The way
> I
>> understood this worked was that the if the COM server exe was not
>> running,
>> the SCM will start the executable but I cannot see the COM server
> executable
>> being started/launched in the task manager. When I make the actual 'new
>> ActiveXObject(...)' call in JavaScript, IExplorer freezes for a few
> seconds
>> as if it is doing some processing but the task manager shows no
>> processing
>> being done. The call then times out and IExplorer comes out of the freeze
>> with the status bar saying 'Error'
>>
>> So is there anything special that needs to done to launch an
> out-of-process
>> server using automation that I am not doing?
>> Also, is there a way to monitor what the SCM is currently doing i.e. what
>> process if it trying to launch etc?
>>
>> Another way to reproduce this was to use the <object> tag.
>>
>> <object classid="clsid:84B47960-C50B-481A-B632-20FE1B0B441F" ID="abc.xyz"
>> VIEWASTEXT>
>> <SPAN STYLE="color:red"> 2 ActiveX control failed to load! -- Please
> check
>> browser security settings. <br> </SPAN>
>> </object>
>>
>> So if the COM exe server is running I am able to create the object using
> the
>> Class UID but if its not running I see the 'Active X conrol' text on the
>> page showing that I was unable to create the object.
>>
>>
>> A little help would be appreciated,
>>
>> Thanks,
>> Ishank Jain
>>
>>
>>
>>
>
>
- Next message: Ishank Jain: "Re: Problem launching out-of-process server from JavaScript?"
- Previous message: Alex Blekhman: "Comprehensive sample of MSHTML hosting?"
- In reply to: Brian Muth: "Re: Problem launching out-of-process server from JavaScript?"
- Next in thread: Ishank Jain: "Re: Problem launching out-of-process server from JavaScript?"
- Reply: Ishank Jain: "Re: Problem launching out-of-process server from JavaScript?"
- Reply: Brian Muth: "Re: Problem launching out-of-process server from JavaScript?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|