You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by zahir <za...@india.hp.com> on 2002/03/04 10:38:49 UTC

Re: os-windows/10027: Class not registered while server started as service

Pls. remove my name fro mthe mailing list.

zahir

Janne Kokkonen wrote:

> >Number:         10027
> >Category:       os-windows
> >Synopsis:       Class not registered while server started as service
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    apache
> >State:          open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:          sw-bug
> >Submitter-Id:   apache
> >Arrival-Date:   Mon Mar 04 01:30:00 PST 2002
> >Closed-Date:
> >Last-Modified:
> >Originator:     Kristian33@hotmail.com
> >Release:        1.3.23
> >Organization:
> apache
> >Environment:
> Win 2000, allready compiled package
> >Description:
> Our program publishes COM-component (singleton) as Local Server. So component is available only when program is runnig. Now we use this component from web page using python script (creates same singleton component, for communication purposes ) from this COM-server (our program). Everything works just fine, when we use script from apache started from console window. Python Script uses COM-component just fine. But when we use same script from apache started as service, we get error "Class Not registered", fast everything is similar than while using console window (only difference is that we started apache as service instead of starting it as console window).  We have added Rpcss to registry. We also tested this COM-component from another service (own) and all worked just fine -> cause of error is most likely the apache. Everything
> works also fine, if component is publisced as inproc, but then the main idea
> of communication is wasted. We need component created as Local Server
> >How-To-Repeat:
> Create program that publish COM-component as local server and then try to
> use it with some script page from apache. Our python script is like this:
> import win32com.client
>
> print "Content-Type: text/html"
> print
>
> ctx = pythoncom.CLSCTX_LOCAL_SERVER
>
> o = win32com.client.Dispatch("ExternalQueryConnectorComponent.ExternalQueryConnector", clsctx=ctx )
> s = str(o.externalXMLQuery("out Message inserted here"))
>
> print s
> >Fix:
> No Idea. But script still works fine with console, so...
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>  [In order for any reply to be added to the PR database, you need]
>  [to include <ap...@Apache.Org> in the Cc line and make sure the]
>  [subject line starts with the report component and number, with ]
>  [or without any 'Re:' prefixes (such as "general/1098:" or      ]
>  ["Re: general/1098:").  If the subject doesn't match this       ]
>  [pattern, your message will be misfiled and ignored.  The       ]
>  ["apbugs" address is not added to the Cc line of messages from  ]
>  [the database automatically because of the potential for mail   ]
>  [loops.  If you do not include this Cc, your reply may be ig-   ]
>  [nored unless you are responding to an explicit request from a  ]
>  [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
>
>