Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 13, 2006 03:35 AM by smarturtle
Sep 06, 2006 08:58 AM|LINK
Hi i can create users and login just fine when using the ctrl + f5 in visual studio. Also can create users using the asp.net admin tool as well. However, once i copy the site over to the IIS directory and view the site using the domain name from the remote
computer, or another computer, i cannot login!
The computer that has the VS 2005 is the same on i use to host the website. I do not understand what is happening. I use the forgot password link and the username seems to come up and the security question. When i put in the answer it brings me to an error
page and says contact the administrator.
the error message i get when i try to login (as admin or the regular user i created) is :Your login attempt was not successful. Please try again
any thoughts on why it works when in VS but not when i copy over the site???
Oct 12, 2006 07:42 PM|LINK
Hi, I had the very same problem and it was down to access rights - if you go to your website in explorer and change access to your database.
Probably this path: C:\Inetpub\wwwroot\App_Data
This is where I slipped up, but you need to ensure you can have the options for doing this: on exporer menu, select Tools / Folder Options. Click on View tab, ensure "use simple file sharing (recommended)" is NOT ticked.
select your 2 database files (probably ASPNETDB & ASPNETDB_Log) - Right click your database files, go to properties and select Security tab. If you don't have "APSNET" and "IWAM_OFFICE" in your selection, click ADD and then advanced button, click FIND NOW
button and from your list, select the 2 users I mentioned.OK button, then OK button again. These 2 entries should now be in your list. Select them and Allow full control to both of them.
This worked for me - hope it works for you. If you have other database files, you need to do this also for them otherwise you will not be able to modify them.
Oct 12, 2006 07:45 PM|LINK
Forgot to also mention, you will need to restart ISS after the access rights issue.
START / Control Panel / Administrative Tools / Services /
Select ISS ADMIN and click restart.
Oct 13, 2006 03:35 AM|LINK
hi thanks for the reply....
I figured it out quite some time ago though- it was an access issue regarding rights to the database. I also think it was that along with me using the beta version of the starter kit.
I appreciate the response.