Total "Melt Down" in LS
-
Saturday, July 14, 2012 4:35 PM
What I had feared could happen, has. I've had a total melt down in a LS project. I was editing some field names on the sql server, but did refresh the connection. Any pointers on debugging this would be appreciated!
Myron Oakley
All Replies
-
Saturday, July 14, 2012 10:43 PM
Have a look at this post..
http://www.virtualrealm.com.au/mykre/Lightswitch-ndash-Turning-on-some-Debugging-or-Trace-Logs
and one from the lightswitch team.
http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx
-
Sunday, July 15, 2012 1:26 AMI had a friend whos LightSwitch took a dive. I had him create a new table (doesn't matter just any table) and that fixed everything. It appears that when you create a new table LightSwitch will recreate everything and that can sometimes fix it when it is hosed up.
-
Sunday, July 15, 2012 11:54 AMModerator
You won't be able to do any of the things suggested above, until your lsml file is fixed.
Look in the Errors pane & either try to fix the problems listed (double-clicking the error will take you to the line in the lsml file), or post them here.
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster. - Proposed As Answer by ADefwebserverMVP Monday, July 16, 2012 4:03 AM
-
Monday, July 16, 2012 12:36 AM
That is correct. My suggestion would only work if you were getting the red X's when you are able to run the application.You won't be able to do any of the things suggested above, until your lsml file is fixed.
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster.
-
Monday, July 16, 2012 3:24 AMModeratorI wasn't criticising your suggestion, just pointing out that the project has to be able to be opened first, in case the OP didn't realise.
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster. -
Monday, July 16, 2012 4:03 AM
I wasn't criticising your suggestion, just pointing out that the project has to be able to be opened first, in case the OP didn't realise.
Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer" By doing this you'll help people find answers faster.
After I reread th original error I realized that you are correct. My suggestion will not work until the error in the .lsml file is fixed first.
-
Monday, July 16, 2012 12:28 PM
Then answer was to simply restore from a backup. I had less than an hour of work into it so wasn't all that bad. This also taught me ( again ) a valuable lesson, backup as often has you'd care to re-do the work. The next time I'll also run WinMerge against the live and backup project directories. This could be real of real value debugging what exactly went wrong.
When developing in LS, I will be backing up hourly.
Thanks
Myron Oakley
- Marked As Answer by Myron O Monday, July 16, 2012 12:28 PM

