Bloqueada Screen Code Generation failed....

  • Wednesday, May 02, 2012 6:59 PM
     
     

    We are creating lots of Apps with LS and I got caught out on this little bug, not seen this else where in the forums.

    • I created a Table in the designer, my entity got created.
    • I created a Create New Screen for that entity.
    • I then tried accessing the Code for that screen.
    • I needed to do some setup work on the create.
    • My LINQ queries wouldn't resolve, I thought I'd forgotten how to write them. Nop - worked in another project.

    I then scrolled up the page and noticed that the ONLY reference was to System, all the other references and Lightswitch references were missing from the code file. I simply copied and paste that in from another file, and everything burst into life.

    No rocket science required here to resolve the problem, not sure why the code didn't generate correctly, but it did throw me off track for a while. Hope this helps if you notice something really odd when coding on a Screen page.

    Thanks,

    Steve


    Steve

All Replies

  • Friday, May 04, 2012 2:58 PM
    Moderator
     
     Answered

    Hi Steve, can you report this bug using our connect site?  https://connect.microsoft.com/site1231

    Please give step-by-step instructions on how to reproduce the error (including the names of the buttons/context menu items you click, what files you edit, etc.).

    We can then investigate it and try to get it fixed.

    Eric


    http://blogs.msdn.com/b/eric_erhardt/

  • Saturday, May 05, 2012 8:56 PM
     
     
    What I have noticed is that you must build the solution after adding/modifying an intrinsic entity before moving on to create screens and add custom code. I did not stop to investigate further but I encountered similar symptoms but a simple rebuild fixed them. Hope it helps...

    Xpert360 blog | twitter : @xpert360 Opinions are my own. Please mark as answer if this helps solve your problem.