IIS 6 Deployment - Forms authentication - Username & Password Prompt? RRS feed

  • Question

  • Hello,

    I followed the post from Beth Massi to Deploying LightSwitch Applications to IIS6: Deploying LightSwitch Applications to IIS6 & Automating Deployment Packages

    My problem is that if I want to access my solution I always prompted for Username & Password (german) but not that from the LS app - what I'm doing wrong?

    please help - it is very important!

    I also have this with IIS 7 - what I'm doing wrong?

    Why do I get always a logon before the LS logon?


    • Edited by Yann DuranModerator Tuesday, December 11, 2012 1:06 PM Fixed link text
    • Edited by Mad Rian Tuesday, December 11, 2012 2:51 PM
    Tuesday, December 11, 2012 10:49 AM


  • I have found the problem and maybe this could be helpful for other people:

    I have use the Application_Initialize() event to write data in the database - this works for desktop apps with windows authentication but is

    a problem if you use Forms authentication because at this time the user is not logged on and this causes the extra "Windows logon"

    I now use the Application_LoggedIn() and it works!
    (hours of searching in IIS and LS and only Fiddler shows the problem - next time I look at Fiddler first ;-))


    • Proposed as answer by Dave KidderModerator Wednesday, December 12, 2012 4:31 AM
    • Edited by Mad Rian Wednesday, December 12, 2012 8:09 AM
    • Marked as answer by Angie Xu Thursday, December 20, 2012 12:33 AM
    Tuesday, December 11, 2012 4:58 PM