S
Saurabh
I have a windows service, which uses Powerpoint interop to access the PPT
file and process it. When I run this service on windows XP, it runs fine and
it is able to access/open/modify the PPT file as and when needed.
But when I ran this service on Windows 2008, it gave me an error saying
"PowerPoint could not open the file."
I tried to accessing a file directly from windows service from the same
folder as that of the PPT and it works but when I am trying to access that
PPT file using Interop it gives me this error.
Can any one tell me what could be the problem here? Is this a UAC related
issue?
I even tried adding a manifest to service exe with "<requestedExecutionLevel
level="requireAdministrator" uiAccess="false" />" but when I try to start
this service it says "could not start the service on local computer. The
requested operation requires elevation." I tried using Net Start command
from an elevated command windows but still it kept on giving the same error.
How does one will start a windows service which has above menifest i.e.
requires administrator? Is it a good practice to include such manifest in the
windows service?
file and process it. When I run this service on windows XP, it runs fine and
it is able to access/open/modify the PPT file as and when needed.
But when I ran this service on Windows 2008, it gave me an error saying
"PowerPoint could not open the file."
I tried to accessing a file directly from windows service from the same
folder as that of the PPT and it works but when I am trying to access that
PPT file using Interop it gives me this error.
Can any one tell me what could be the problem here? Is this a UAC related
issue?
I even tried adding a manifest to service exe with "<requestedExecutionLevel
level="requireAdministrator" uiAccess="false" />" but when I try to start
this service it says "could not start the service on local computer. The
requested operation requires elevation." I tried using Net Start command
from an elevated command windows but still it kept on giving the same error.
How does one will start a windows service which has above menifest i.e.
requires administrator? Is it a good practice to include such manifest in the
windows service?