Login control failing

I'm having problems with the Login control.

I'm testing using a new application with one "Default" page.  I've enabled ASPNETDB using "ASP.NET configuration", and set a role and a user.

The Login control works when I run it from within Visual Web Developer Express.

When I run the app from IIS using IE and try to log in I get:

Cannot open user default database. Login failed.
Login failed for user 'xxx\ASPNET'.

I attach ASPNETDB (in App_Data) in SQL Server Manager Studio Express.  I Add the user xxx\ASPNET, make ASPNET the owner of the database, try various other security settings (setting aspnet_ FullAcceess mappings) etc, but none of them solve the problem, and sometimes I get different errors, but by then I've tried so many things that I've lost track.

Surely this must be easy, or near automatic.  What am I missing

Can anyone point me to instructions about how to set this up, or suggest what might be wrong

Thanks
John



Answer this question

Login control failing

  • Krismu

    Hello PEte,

    I am using Microsoft products since 1983 now, using Windows since

    Windows 386 (in 1986 or 1988 ), had the Windows SDK kit in 1989.

    A few weeks ago, I installed Visual Studio 2005 on my system,

    together with SQL Server 2005.

    Today, I tried to start up my first Web Project in Visual Studio 2005,

    to run into exactly the kind of errors like this guy is asking you.

    Now, why don't you just ANSWER the guy's question, instead of sending

    him into Microsoft forums, websites, places that are HIDING the answers under

    500.000 other irrelevant topics unless you happen to type in the one single magical

    search string that gets you through (wich means : sending someone into the desert:

    wich one of the 500.000 sand hills is the one with the magical treasure ) .

    I ( and he probably also) have been sitting in front of my machine for 45 minutes,

    looking at the ongoing installation procedures of your package, only to realize much

    later that an important part of the installation is, in fact, not performed (we want to

    use your product, not just simply have it present on our hard disk and in our machine

    registry; and if your application all the sudden pretends that first 10 other unknown

    setups and configurations, possible existing on some hidden forum and activated

    only if you know the magical search string, are to be performed, then the setup of

    your application, e.g. Visual Studio 2005, is insufficient).

    Please provide a supplemental setup list that appears every time you startup Visual

    Studio 2005, and warns me that I am stupid ( :) ! ) unless I perform the remaining

    setup tasks AND that tells me right away, without detours, what batch file or script on

    MY hard disk I have to run ( Internet Forums or Help Centers are an invalid answers,

    a loss of time and a source of frustration).

    As a fervent admirer and user of your products, I hope that you are not offended by

    my suggestions, and that they can be build into Visual Studio 200 .

    Sincerley Yours,

    Rene De Borger



  • Progalex

    Thanks, Pete.

    John

  • CoverPpl

    Hi!

    Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39

    There are guided tutorials and other really helpful info over on the ASP.NET website (http://www.asp.net) that will get you going!

    HTH,

    PEte



  • Login control failing