Launch thread with another user account than main thread

  • Thread starter Thread starter Franck
  • Start date Start date
F

Franck

Hi,
Got a windows Service which run under LOCAL SYSTEM account.
Its main goal is to printout xls file to pdf.

It seems that LOCAL SYSTEM account has not enough rights to do that (as
launching the same code in a windows app works great)

Is there a way to launch my Excel.Automation object in another thread
which will use another user account with enoug right to perform the
tasks ?

Thks for help.
 
Simply run your service under an account that has the appropriate
permissions.
 
I changed to my user account.
I unregistered/registered the service and it's no longer visible in my
service list! normal ?
 
Franck said:
Got a windows Service which run under LOCAL SYSTEM account.
Its main goal is to printout xls file to pdf.

It seems that LOCAL SYSTEM account has not enough rights to do that (as
launching the same code in a windows app works great)

Is there a way to launch my Excel.Automation object in another thread
which will use another user account with enoug right to perform the
tasks ?

<URL:http://groups.google.com/groups?q=dotnet+impersonation>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top