NetTalk Central

Author Topic: Com Object problems when using webserver app as a service  (Read 2744 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • Email
Com Object problems when using webserver app as a service
« 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Com Object problems when using webserver app as a service
« Reply #1 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

MikeR

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • Email
Re: Com Object problems when using webserver app as a service
« Reply #2 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 ?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Com Object problems when using webserver app as a service
« Reply #3 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