Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
How to Open Web Url Using Windows Service C# ?


What I have tried:

I have tried with

System.Diagnostics.Process.Start("www.google.com");
Posted
Comments
F-ES Sitecore 21-Dec-17 5:45am    
You can't because the service doesn't have access to the user's desktop.
Udara Eshan Ariyarathne 21-Dec-17 6:04am    
Is there any Workaround for this ?
Dave Kreskowiak 21-Dec-17 10:38am    
No. This is because a service interacting with the user desktop is a security risk.
F-ES Sitecore 21-Dec-17 20:01pm    
If there was a workaround services would be accessing your desktop :) Why do you have a mail server and a mail client, a database server and a database client and so on. The service is in the background doing the work and the client is a desktop app communicating with the service generally over TCP/IP.

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