Re: Problem launching out-of-process server from JavaScript?

From: Ishank Jain (ijain_at_vitalimages.com)
Date: 02/22/05


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
>>
>>
>>
>>
>
>



Relevant Pages

  • Re: COCreateInstance fails from service for non-admin
    ... Your service executes in a diferent windowstation from your ... That means DCOM security gets checked. ... >> the .exe server you are creating. ... > I use the default launch permissions. ...
    (microsoft.public.vc.atl)
  • Re: Windows 2003, Excel and SAP.NET
    ... On the Windows 2003 server, start Component Services from the Administrative ... You should see one or more of COM+ Applications, DCOM Config, Distributed ... Scroll down to Microsoft Excel Application, ... first frame (Launch Permissions), click the Customize radio button and then ...
    (microsoft.public.dotnet.framework.interop)
  • Re: How to determine if the Com server running on the remote machine?
    ... one has to be a domain admin or local admin to set ... > It's needed to determine if the Com server running on the remote machine. ... > Do not launch the server even if there is appropriate launch permissions? ...
    (microsoft.public.dotnet.languages.vc)
  • Error 800c5000...Please HELP
    ... The codes that I am running returns error message 800c5000 on my Client ... But it's running fine on one of my Test server. ... I checked the Client server "Default Launch Permissions". ...
    (microsoft.public.inetserver.iis)
  • Re: Tier3 today - And Flex-it like NASDAQ (*Only better!*)
    ... FlexBuilder, or just working on the FABridge functionality in general, you ... ArrayCollections are completely accessible via the Javascript in ... Broadcasted server to client messages, ...
    (comp.os.vms)