none
Default user after deployment

    Question

  • Hi

    I've deployed my Lightswitch app to IIS.
    But I do not have a default user to log in.  Following forum posts like (http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/3b59bba2-4e10-41c9-9936-b1919aff8e50/)  it was suggested to repackage with the option "Yes, create the Application Administrator at this time"

    When I do that, I'm getting an error when I import the site into IIS.  The error is "Could not find the provider 'LightSwitchAddAdministrator'".  This error message is not found on google, but some other close matches suggest that I should package without the option "Yes, create the Application Administrator at this time". This option do fix this error, but it creates the error in step 1.

    And that's an endless loop....

    Any other ideas?

    Wednesday, May 23, 2012 1:11 PM

Answers

  • HI,

    I am not sure that I understood you correctly. I understood that you have the problem that you do not have any user to log on to your deployed application.

    The tool Microsoft.LightSwitch.SecurityAdmin.exe which is part of the LightSwitch Dependencies which you should have installed on the server first (and can be installed through the Web Installer) can create an administrator for your application. That user will be inside the admin role so at least it can do the user management.

    http://msdn.microsoft.com/en-us/magazine/hh456409.aspx might be of interest for you.

    With kind regards,

    Konrad

    • Marked as answer by Jowalski Wednesday, May 23, 2012 1:49 PM
    Wednesday, May 23, 2012 1:29 PM

All replies

  • HI,

    I am not sure that I understood you correctly. I understood that you have the problem that you do not have any user to log on to your deployed application.

    The tool Microsoft.LightSwitch.SecurityAdmin.exe which is part of the LightSwitch Dependencies which you should have installed on the server first (and can be installed through the Web Installer) can create an administrator for your application. That user will be inside the admin role so at least it can do the user management.

    http://msdn.microsoft.com/en-us/magazine/hh456409.aspx might be of interest for you.

    With kind regards,

    Konrad

    • Marked as answer by Jowalski Wednesday, May 23, 2012 1:49 PM
    Wednesday, May 23, 2012 1:29 PM
  • The SecurityAdmin.exe gave me some MSDTC issues, but working through all of that, it eventually managed to work.

    Thanks for the hint.

    Wednesday, May 23, 2012 1:49 PM