473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

vb.net windows service

I have a windows service which instantiates the Powerpoint Application using
PIA. When I am running this windows service am not able to open the Microsoft
powerpoint application. This problem happens in XP and win 2000, Where as the
same works fine in win 2003 server. Any suggestions to make this work in XP
and Win 2000.
Nov 21 '05 #1
3 1827
Actually launching a desktop application from a windows service is very bad
thing. A service actually runs even when a user is not logged in and when no
desktop is available.

If you still want to try, see if setting the allow interact with Desktop
setting helps.

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
"Saran" wrote:
I have a windows service which instantiates the Powerpoint Application using
PIA. When I am running this windows service am not able to open the Microsoft
powerpoint application. This problem happens in XP and win 2000, Where as the
same works fine in win 2003 server. Any suggestions to make this work in XP
and Win 2000.

Nov 21 '05 #2
"Saran" <Sa***@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
I have a windows service which instantiates the Powerpoint
Application using PIA
Question #1 - why?
Services are intended to run unattended, even when no-one is logged
onto the machine. PowerPoint is, primarily, a desktop application
and may not even run under those conditions.
When I am running this windows service am not able to open the
Microsoft powerpoint application.
Could be a permissions problem, could just be that powerpoint
just doesn't like running without a desktop on which to display itself.
This problem happens in XP and win 2000, whereas the same
works fine in win 2003 server.


Now /that/ sounds like a configuration difference - on the '2003
server, can your service "interact" with the Desktop? That's the
most likely difference.

HTH,
Phill W.
Nov 21 '05 #3


"Phill. W" wrote:
"Saran" <Sa***@discussions.microsoft.com> wrote in message
news:88**********************************@microsof t.com...
I have a windows service which instantiates the Powerpoint
Application using PIA
Question #1 - why?
Services are intended to run unattended, even when no-one is logged
onto the machine. PowerPoint is, primarily, a desktop application
and may not even run under those conditions.


This windows service keeps checking a particular folder( folder path read
from a config file) for ppt files. When it finds a ppt file it opens the file
using powerpoint instance and extracts the data and create a XML file. For
this reason(unattendedly checking for files and processing it) This happens
perfectly. But while this is happening when a user manually opens powerpoint
to create powerpoint files the powerpoint application opens in win 2003
server and not in win 2000 and XP.
When I am running this windows service am not able to open the
Microsoft powerpoint application.
Could be a permissions problem, could just be that powerpoint
just doesn't like running without a desktop on which to display itself.


Yes it seems to be permission related problem when I run the service
using Local System account the user is able to open Powerpoint application
even in win 2000 and XP.
But I have installed the service with a specific account and in case of a
specific account it is not allowing the user to open powerpoint application.
Where in win 2003 allows the user to open powerpoint application when the
service is installed for a specific account.
This problem happens in XP and win 2000, whereas the same
works fine in win 2003 server.


Now /that/ sounds like a configuration difference - on the '2003
server, can your service "interact" with the Desktop? That's the
most likely difference.


Interact with the desktop option is only enabled for Local System Account.
HTH,
Phill W.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
3
by: Doug Bailey | last post by:
I am trying to control a Windows Service via a Web Service interface. (I am developing in .NET2003) I am using the ServiceController object which allows me to read the state of the services with...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi, I created a web service that I want to host in windows service. The problem is that if I host it as windows service it does not use the configuration file. I have to define the binding,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.