Auto restart of Application at machine restart hangs the application
<p>I have a windows application developed in c#, starts automatically everyday when machine starts. By using this windows c# application we are launching an html application to show all the details which reads from this c# application. And this windows application before launches html, reads updated data from server if any available. 
My issue is when machine starts application also starts and unable to connect to server and goes idle and launches html application and the html application will not be able to communicate and get any data from the windows application.</p>

<p>But when manually again stop and start the windows application it start connect to server and launch html with proper data.</p>

<p>In registry settings we have give winlogon as c:\myapplication.exe.
Is there any way to make my c# application should wait until the machine starts completely and load all network connections in the machine and later the application starts.</p>

<p>Any suggestions.</p>

<p>Regards
Sangeetha</p>