Click to See Complete Forum and Search --> : Login in asp 2.0 fails


skuehner
May 30th, 2006, 11:37 AM
Hello,

I've made a login page and called that Login.aspx. This page shows a Welcome message and a login control.

I made a "Member" folder and I created the access rules for this folder (Deny anonymous users).

I created a page that is called StartupPage.aspx and put it into this folder.

I changed the property "DestinationPage" of the Login control to ~/App_Data/Members/StartPage.aspx.

When I want to make the login, the "Access Forbidden" page appears (in the browser the address of the StartPage.aspx is shown).

What is wrong? I've made the login... so the StartupPage might be "accessable" for the user!!

All is getting more complicated!!

tenno
May 30th, 2006, 11:46 AM
I made a "Member" folder and I created the access rules for this folder (Deny anonymous users).

What roles you choosed with login?
make sure you had set the access rules to allow your login roles

skuehner
May 30th, 2006, 11:54 AM
I've made access rules for the folder Members where the StartupPage.aspx is saved.

Anonymouse Users -> Deny for folder "Members". Why do I have to use rules? Is that really necessary?

To try your hint I created a role named "users" and put my user name into it. After that I created a new AccessRule, chose the "Members" directory and set the roles "user" to "allow".

Still doesn't work...

skuehner
May 30th, 2006, 04:53 PM
Hello,

Now I also have the problem that I can't make a login. After pressing the button there appears:


Your login attempt was not successful. Please try again.


I did not change anything in the database.

skuehner
May 31st, 2006, 09:27 AM
Hello,

Finally I made a new project and resolved the "Access Forbidden" problem.

I still have the problem that after about 5 logins I can't login anymore. The component always shows me the message "Your login attempt was not successful. Please try again."... but I only changed the layout... nothing in database.

What happens??

Thanks for you answers!

skuehner
May 31st, 2006, 10:40 AM
Thought it could be a good idea to change to ASP 2.0... but I think it works bad. Or am I the only one...?

I put a new login component into the web page (to test) and changed the property DestinationUrl. Now, after the login, I get the error message:


The file web.sitemap required by XmlSiteMapProvider does not exist.


What's that??? Could this be max connections of the SQLServerExpress??


Why couldn't this be just simple!!!

JeI-Paradigm
August 8th, 2006, 06:32 AM
i also get that login falied crap.

i cant even access the database it created and autoattached from sql.

it tells me access denied.

what the hell, i drag the control i should have access automatically.

to get over that login problem i go to the asp.net configuration in vs.net 2005 and edit one of the users but don't change anything and then it works until tomorrow, at which point i do it all again! :cool:

man asp is so cold!!!