Problem creating an Application Administrator when publishing from VS2012RC -> SQL Server 2008

Locked Problem creating an Application Administrator when publishing from VS2012RC -> SQL Server 2008

  • Wednesday, July 04, 2012 5:49 PM
     
     

    When I deploy my LS app I am not able to log in to it. On checking, all files are correctly deployed to IIS 7.5 and the database is correctly deployed to my SQL 2008 Server. However, when I check the dbo.aspnet.Applications and dbo.aspnet_Membership tables no records have been created.

    When I publish my app through the Lightswitch Publish Application Wizard I am selecting "Yes, create an Application Administrator" and entering a Username and Password. I thought these details were used to create an admin record in the aspnet membership services tables?

    I am using Forms Authentication and all connection strings seem to be correct.

    Am I missing something? Any ideas please?

    Thanks,

    Paul.


    LightSwitchShells.com - Make your business apps shine! Website design for £249, Unlimited pages, Facebook and Twitter integration. www.domainscanners.com

All Replies

  • Wednesday, July 04, 2012 11:50 PM
     
     Answered

    Finally figured this out...

    My App uses Forms Authentication and I created a custom Login screen as outlined here...

    http://blogs.msdn.com/b/mthalman/archive/2011/12/08/creating-a-custom-login-page-for-a-lightswitch-application.aspx

    When I deployed my app using VS12RC and visited the custom Login screen (Login.aspx) I was unable to login as no entries existed in my databases ASP.NET Membership services tables.

    The trick is to first visit the standard default.htm file. This then creates the necessary membership entries and you can then login through your custom login screen in the normal way.


    LightSwitchShells.com - Make your business apps shine! Website design for £249, Unlimited pages, Facebook and Twitter integration. www.domainscanners.com

    • Marked As Answer by Hale Wednesday, July 04, 2012 11:50 PM
    •