Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear All,

I have created Web(ASP.NET C#) and Windows application(WinForms) for Candidates test and using database SQL-SERVER 2014.

Now, I have one requirement:
While the candidate is having a test and internet is off, the candidate can continue and finished the exam after finishing the exam it should update the result to the server automatically without any user interaction.

What I have tried:

I created one windows services to update the result via communicating the webserver but unfortunately, its getting failed to communicate webserver.

Can anyone suggest me some good ideas, Please?

Thanks
Posted
Updated 19-Aug-19 21:33pm

You will get "failed to communicate" until the connection can be made : i.e. when the internet connection is returned.

So what you need to do is use a try ... catch block in your service to detect the failure, and schedule a retry later: maybe wait one minute and retry.
 
Share this answer
 
Export / Import the data as XML, here is an example: Export data from SQL Server as XML[^]
And also: Importing and Processing data from XML files into SQL Server tables[^]
 
Share this answer
 
v2

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