How to require username and password to install a Click Once application from IIS RRS feed

  • Question

  • Hi,

    I would like to require web users to supply a username and password before being allowed to install a smart client application from our web server.  These would be non-domain users with non-fixed ip addresses.  The applications get installed for both connected and disconnected modes.  I'm running IIS6 under Win2K3Server.  Does anyone know how I can accomplish this?

    Many Thanks,


    • Moved by Sam Wood Saturday, June 4, 2011 9:26 PM ClickOnce, not Windows Server Solutions (From:Windows Server Solutions SDK)
    Monday, May 9, 2011 5:49 PM


  • There is no built-in way for ClickOnce to support this. The only option is to intercept the request to the .application file using http handlers, display a login form and authenticate the user, and if it's okay, send back the .application file as required by the ClickOnce deployment.

    This code samples shows how to intercept the request and respond with the deployment files stored in SQLServer. Maybe you can customize this to display a login dialog before returning the requested information.



    Click here to visit my ClickOnce blog!
    Microsoft MVP, Client App Dev
    • Proposed as answer by Cosmin Pirvu Monday, June 6, 2011 6:09 AM
    • Marked as answer by Mike Dos Zhang Tuesday, June 7, 2011 7:38 AM
    Monday, June 6, 2011 12:54 AM