how to remove permissions on the screens in lightswitch RRS feed

  • Question

  • i assigned permissions on some of the screens in my application in lightswitch but the database(SQL) i used to connect to was removed and i replaced another database(SQL), so now am running the application but the users i had assigned roles and permission are lost even the screens are disenabled.

    i want to enable the screens

    Thursday, May 22, 2014 11:40 AM


  • Have you tried recreating the users and roles?

    If you want to remove the checking of permissions, Right-click on the Screens node in the Solution Explorer and choose "Edit Screen Navigation".

    Right-click on a screen in the Navigation list and choose "Edit ScreenName_CanRun Code".

    This takes you to the code where your application is checking for permission. Comment out the code.

    Simon Jones
    If you found this post helpful, please "Vote as Helpful". If it actually answered your question, please remember to "Mark as Answer". This will help other people find answers to their problems more quickly.

    • Proposed as answer by Angie Xu Wednesday, May 28, 2014 9:42 AM
    • Marked as answer by Angie Xu Thursday, May 29, 2014 3:21 AM
    Thursday, May 22, 2014 11:59 AM