Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I use the openfiledialog component in the windows service project ,
I can't open the disktop normally . Who can tell me why ?
Posted

1 solution

Remember that the account your windows service runs in is not necessarily your account. In other words, this looks like it does not have permissions to see the desktop (as the desktop is a folder under your account).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900