Cannot get Personal Web Site Starter kit Login to work on IIS

HI, I am totally new to ASP.NET and have started exploring VWD. After much struggling I have the Personal Web Site Starter kit running locally and on IIS, but have hit a wall when it comes to getting the Login feature to work on IIS. When I access the project on the local disk throught the dev enviroment everything runs well, i.e. I can log in and get access to the "Friends" libraries. When I access the project through IIS things look ok until I try to login, however the user is never authenticated and I remain an anonymous user. I just get the "Your login attempt was not successful. Please try again." message.

I notice that when I set up the users through Website >> ASP.NET Configuration, the dev environment will access the project on the local disk whether I have it open directly on the disk or through http://... on IIS.

I am running the whole setup on one single Windows Server 2003 EE.

Any ideas

Kind regards
HakanS


Answer this question

Cannot get Personal Web Site Starter kit Login to work on IIS

  • Bharathi Raja

    What are the file system paths for your two webs
  • Eddy-kun

    If you create a user (manually through code) via IIS, can you log in with that user   Trying to see if it's a general login issue or if you really somehow ended up with two membership databases.
  • Dickin

    Hey there,

    Maybe it's different for me cause i've got a Dutch version of Windows XP Professional, but I had the same problem with a single website. I discovered that (could be the same in english vs dutch)

    You need to give full permissions to:

    • ASP-NET Machine Account
    • Network
    • Networkservice

    With that I gain secure access to my website. I restricted certain users in a variety of levels, which I can say am glad I solved it with a little bit of your help.

    Thanks again for the news_date

    Greetz,

    The_Dude_1978



  • maniac

    Jeff,
    This is not about the post but I attended DevConnections in Las Vegas in 05. I was wondering if there is any way I could get my hands on your presentation on MasterPages, Site Navagation, & Themes. Or maybe the project that you did in the session. Thanks

    Brad Lindberg
    Web Developer
    Washoe Health System

  • Deepakgg

    YES! After adding the NETWORK and NETWORK SERVICE accounts (with full privileges) to all the project files the login/database works just fine on IIS!

    Thanks! I can now move on to the next challenge!

    :-)

  • Thieme

    The local path is c:/web/testkayandhakan2 which translates to http://localhost:3847/testkayandhakan2/ with the VWD dev server. The external path on IIS is http://test.kayandhakan.com. Both paths point to the same directory so the database and everything should be the same.

    I started out with two different machines but have "collapsed" the project to one place in order to narrow down the problem.

    Any suggestions


  • Mandhadi

    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

    My guess straight off the bat is that IIS isn't accessing the SQL databases, and thus failing.  Make sure that IIS and the NETWORK Service user has permissions to those files.  If that still doesn't work, pop over to the ASP.NET forums and see what you can find over there.

    HTH,

    PEte



  • Cannot get Personal Web Site Starter kit Login to work on IIS