Login doesn't work on website launched on local but works with visual studio

Last post 03-08-2007 6:18 AM by Simo A.. 8 replies.

Sort Posts:

  • Login doesn't work on website launched on local but works with visual studio

    11-14-2006, 1:11 AM
    • Loading...
    • kurisutofu
    • Joined on 11-14-2006, 6:04 AM
    • Posts 14

    Hello,

     I've started a website which works fine when I launch it with visual studio 2005 entreprise edition. But when I publish it or copy the files in the root repertory for IIS, the login page appears but even if I input the right login/password, I received  the message saying I mistook and the user is unknown ...

     I use the ASPNETDB.MDF database to authenticate users and in the Visual studio project folder and in the IIS folder, the sizes are the same. Moreover, I've set authentification to "Windows" (usually, I have it to "Forms")  so I can access the whole website and checked the list of users, it seems everything is as it's supposed to be... so why the login can't be done? does anyone know?

     

  • Re: Login doesn't work on website launched on local but works with visual studio

    11-14-2006, 4:04 AM
    kurisutofu:

     I use the ASPNETDB.MDF database to authenticate users and in the Visual studio project folder and in the IIS folder, the sizes are the same.



    This does not mean the 2 database files have the same content. Make sure you've completely uploaded the website as well as its database file, you can take a look at this post:
    HOW-TO: Database from VWD to Shared Host
    Welcome to my SQL/ASPNET forum for Chinese
    http://51up.org/bbs/forumdisplay.php?fid=38
  • Re: Login doesn't work on website launched on local but works with visual studio

    11-14-2006, 1:27 PM
    • Loading...
    • jscruggs
    • Joined on 11-14-2006, 6:20 PM
    • Posts 1
    I'm having the same problem as kuristofu.  I have verified that the database contained on my published website contain the same information.  Anybody else have an idea?
  • Re: Login doesn't work on website launched on local but works with visual studio

    11-14-2006, 8:33 PM
    • Loading...
    • Nerbert
    • Joined on 11-15-2006, 1:33 AM
    • Posts 1

    Try this

     

    http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx 

  • Re: Login doesn't work on website launched on local but works with visual studio

    11-14-2006, 10:17 PM
    Answer
    • Loading...
    • kurisutofu
    • Joined on 11-14-2006, 6:04 AM
    • Posts 14

    In fact, I found, thanks to a french forum.

    In the IIS configuration, in permission, you have to give read and write permission to the user "network service" because it's the one running when you launch your website. 

  • Re: Login doesn't work on website launched on local but works with visual studio

    01-03-2007, 6:25 PM
    • Loading...
    • tarantula
    • Joined on 01-03-2007, 11:17 PM
    • Posts 1

    Hi,

    Can you explain what you did. I am new to ASP .NET and am facing the same issue.

    Using forms authentication which is checking whether the user is a valid user in the network. the authentication is working fine in VS2005 but giving an error of invalid password when  am puting it in the local IIS

  • Re: Login doesn't work on website launched on local but works with visual studio

    01-04-2007, 3:55 AM
    If it's just a login failure to the web application, you'd better to check the applicationName issue, please refer to this article:
    Always set the "applicationName" property when configuring ASP.NET 2.0 Membership and other Providers

    If you mean something wrong when connecting to SQL, please post error message so that I can help further.
    Welcome to my SQL/ASPNET forum for Chinese
    http://51up.org/bbs/forumdisplay.php?fid=38
  • Re: Login doesn't work on website launched on local but works with visual studio

    03-08-2007, 6:09 AM
    • Loading...
    • Scorgit
    • Joined on 04-11-2005, 8:54 AM
    • Posts 10

    Hi,

     Can you please explain what you did, or post the link to the French forum? I'm facing the same problem, and I cannot figure out what the solution is.

     Thanx in advance!

    Regards,
    Tom

  • Re: Login doesn't work on website launched on local but works with visual studio

    03-08-2007, 6:18 AM
    • Loading...
    • Simo A.
    • Joined on 03-07-2007, 4:58 AM
    • Posts 34
    You have to assign windows permissions on the App_Data folder, to the following windows accounts( for a Win 2003 Server ): IUSR_[machine name], IWAM_[machine name] and/or IIS_WPG. This means opening up a Windows Explorer, navigate to the /[Your site folder]/App_Data folder, right click on it and select properties -> Security and add the accounts to the 'Group and user names' list. This should do the trick.
    You can't have everything...Where would you put it?...
    Joy, frustration, excitement, madness, aha's, headaches ... codito ergo sum!
Page 1 of 1 (9 items)
Microsoft Communities
Page view counter