NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on May 11, 2013, 12:47:52 AM

Title: Com Object problems when using webserver app as a service
Post by: MikeR on May 11, 2013, 12:47:52 AM
Hi, clever people,

I have converted one of my webserver apps to a service using self service
When I run the application as a normal exe everything works fine.
When I run it as a service I seem to experience problems with calls to com objects.
I think its some authority issue with windows but don't know where to look.

The symtoms are:
My office inside excel spreadsheet export no longer works.
I can't see any messages in debugview using p_web._trace ..
I think p_web._trace also uses a com object.

Many thanks.
Title: Re: Com Object problems when using webserver app as a service
Post by: Bruce on May 11, 2013, 12:52:15 AM
>> I think p_web._trace also uses a com object.

no it doesn't it uses a windows API call.

perhaps you need to change the settings of your service -
Services Manager (services.msc) - right click on the service and go to properties.
I'm thinking that Excel is not installed into the "user" that you have your service running as.

cheers
Bruce
Title: Re: Com Object problems when using webserver app as a service
Post by: MikeR on May 11, 2013, 05:24:36 AM
Thanks Bruce ill check that Monday when im back in the office,
any clue why I cant see the p_web._trace messages when I run debugview on the server ?
I can see it on the server when the app is run as an exe but not when its running as a service ?
Title: Re: Com Object problems when using webserver app as a service
Post by: Bruce on May 12, 2013, 09:57:52 PM
I'd have to check, but I don't think debugview messages go from a service to a desktop. Not sure, I've never tried.

cheers
Bruce