Saturday 11 April 2015

Could not load file or assembly 'C1.Silverlight.5'

While working on the Lightswitch Using C1 component, I was facing an issue that application is running in Debug mode but it was not working in Release mode. Whenever I try to run a lightswitch application in Release mode then I was facing the below issue. 

Could not load file or assembly  'C1.Silverlight.5, VersiĆ³n 5.0.20142.419, Culture=neutral, PublicToken=2aa4ec5576d6c3ce’ or one of its dependencies. The system cannot find the file specified.

After debugging this issue and find the solution from Richa's reply. It is occurring due to the C1 dll files are not loading in release mode in lightswitch. That's why it is giving this error. To resolve this issue please follow the below step.

Open the .csproj file for the desktop client project in notepad and remove the occurrence of the below lines. 


Now open project in VS and rebuild and run the application.