LightSwitch Fix: Unable to load data. Please check your network connection and try loading again.


If you are a LightSwitch developer, you might have faced the error saying “Unable to load data. Please check your network connection and try again.” In this post we would one of the ways that I found while fixing this.

As you see in the following image, the red-cross symbol appears with the tooltip as “Unable to load data. Please check your network connection and try again.”.

 

After searching a lot, I got to know that, the problem lies only in the server code where the Queries custom code is written. If you look at the following code, the underlined value was creating a problem while converting in the LINQ.

 

Well when the conversion was removed from the LINQ and provided with a converted value. It worked flawlessly.

 

This is a quick tip I found while fixing the issue, hope this post helps.

Like Method Of Tried in Facebook.