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.
But when manually again stop and start the windows application it start connect to server and launch html with proper data.
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.
Any suggestions.
Regards Sangeetha
There are various options to achieve your result:
If your C# application is exposed as service, you could delay load the service with depends on
3.You could use free program like Start Up Delayer to delay your program
4.You could create an infinite loop in your c# program and break once all your dependencies are loaded. E.g. checking your are able to connect to the server and so on.