Last post Jun 25, 2009 02:09 AM by Gemini12
Jun 13, 2007 12:07 PM|300M|LINK
I am running Visual Studio 2005 and SQL Express. I was able to setup the Club Site on my local workstation and everything seems to work fine. When I attempt to publish the site to a remote server (it's in the bedroom) also using SQL Express, I can no
longer login with the Admin account I created. The application event log says,
"Membership credential verification failed". I've looked through these forums, but can't seem to locate what changes I might need to make to the web.config file. Any help would be appreciated.
Jun 13, 2007 01:28 PM|Freakyuno|LINK
Generally the first thing I check - when I start getting login errors - is that the correct permissions are setup on the App_Data directory.
If you are publishing it to Windows 2000 then the user ASP.NET needs full control over the directory, if it's windows 2003 then NETWORK SERVICE needs full control over the directory.
The issue arises because the database tracks last login (as an update query) so when it tries to write that field, and fails - it denies the user from logging in.
Post back and let us know where you end up. :)
Jun 13, 2007 02:52 PM|300M|LINK
Well, I gave ASP.NET account FULL CONTROL over the APP_DATA directory, but unfortunately I am still unable to logon with the Admin account which was created on the DEV workstation. The error message from the login control is
Your login attempt was not successful. Please try again. When I check the Application Event log on the W2K server, the error message is as follows:
Event Type: Information
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1315
Time: 2:42:32 PM
Event code: 4006
Event message: Membership credential verification failed.
Event time: 6/13/2007 2:42:32 PM
Event time (UTC): 6/13/2007 7:42:32 PM
Event ID: af524bd6ce134d8b9b17297fb89d3c8b
Event sequence: 9
Event occurrence: 3
Event detail code: 0
Application domain: /LM/W3SVC/1/Root/ClubSite-1-128262370423771552
Trust level: Full
Application Virtual Path: /ClubSite
Application Path: C:\Inetpub\wwwroot\clubsite\
Machine name: SERVER05
Process ID: 2412
Process name: aspnet_wp.exe
Account name: SERVER05\ASPNET
Request URL: http://server05/ClubSite/Default.aspx
Request path: /ClubSite/Default.aspx
User host address: 192.168.0.100
Is authenticated: False
Thread account name: SERVER05\ASPNET
Name to authenticate: John
Custom event details:
Jun 13, 2007 04:34 PM|Freakyuno|LINK
Thats an interesting situation you have there. [:D]
Let me dig around a bit and see if I can come up with anything. Do other users accounts work by chance, have you tried registering as a new user on your site, and then logging in as that user?
Jun 13, 2007 05:31 PM|300M|LINK
It's working now! In addition to granting the ASPNET account READ/WRITE privileges to the APP_DATA folder, I had to grant the permissions to the individuals files within the folder. That did the trick. Thanks for the help. [:D]
Jun 14, 2007 09:13 AM|Freakyuno|LINK
Glad I could help. I should have mentioned that I suppose. I get lazy with 2003 and XP / Vista permissions, that will propogate to files inside folders by default (it's a checkbox)
Sep 17, 2007 08:36 PMemail@example.com|LINK
You are smart guy! Your advice really help me to solve my frustration in last 2 days.
Oct 04, 2007 06:40 PM|tross001|LINK
I am having this same problem. I gave the aspnet machine account rights to the apps_data folder and all sub files, but still can't login.
Jun 24, 2009 09:31 AM|Gemini12|LINK
Hi guys. Did you find a solution to this problem, because I am having the same problem. Please help
Jun 25, 2009 02:09 AM|Gemini12|LINK
I found the solution. I shared the folder for my project and also allowed users access to the folder throught security Tab. Thank you very much