Home > Asp Net > Asp Net Login Not Working

Asp Net Login Not Working

use this script put it in head tag script is.. Permalink Posted 2-Nov-10 22:10pm rakesh2577600 Am I missing any IIS settings or anything? Tweets by @RickStrahl Forms Auth loginUrl not working after Windows Update? I haven't changed anything in the application configuration or the database.     Tuesday, January 22, 2008 6:42 PM Reply | Quote 0 Sign in to vote OK, I am going this contact form

Am I missing any IIS settings or anything? Reply dotnet_begin... And if I manually put Label1 and type Label1.Text = HttpContext.Current.User.Identity.Name;, its still not working. GO OUT AND VOTE union of subset and span proof Why Would the President-elect have a Transition Visit before December 19? http://stackoverflow.com/questions/62013/problem-with-login-control-of-asp-net

Check the settings to ALL your web.config files, even ones you don't know you have. If this turns out to be not just a fluke I'm guessing this will be fixed in the next round of updates. Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI share|improve this answer edited May 19 '09 at 17:30 answered May 19 '09 at 16:52 Mehrdad Afshari 281k63699716 I added the code to the post.

Try navigating to /Admin/Default.aspx (uppercase Admin) to see if it works. –Mehrdad Afshari May 19 '09 at 17:31 | show 4 more comments Your Answer draft saved draft discarded Sign more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed I call Default.aspx, it gets redirected to Login.aspx, I enter the user and the correct password. First it was not working then after I checked the events for firing, just in case. –Biri Sep 15 '08 at 10:43 And during the execution of it, by

Solution 5 Accept Solution Reject Solution If you are using forms authentication // Page load event of Logout.aspx FormsAuthentication.SignOut(); Response.Redirect("Default.aspx"); Similar discussion here[^] Permalink Posted 2-Nov-10 22:32pm [email protected] Rate this: A stupid cipher? This > method is fine > { > if(FormsAuthentication.GetRedirectUrl > (txtUserName.Text,false)=="/appliedbioscience/index.aspx") > { > FormsAuthentication.SetAuthCookie > (txtUserName.Text,false); > Response.Redirect > ("http://www.appliedbioscience.co.uk/appliedbioscience/ind > ex.aspx",false); //fails here > } > else if > http://stackoverflow.com/questions/7417376/my-asp-net-4-login-stopped-working-why Extract csv from .shp files?

This >> method is fine >> { >> if(FormsAuthentication.GetRedirectUrl >> (txtUserName.Text,false) =="/appliedbioscience/index.aspx") >> { >> FormsAuthentication.SetAuthCookie >> (txtUserName.Text,false); >> Response.Redirect >> ("http://www.appliedbioscience.co.uk/appliedbioscience/ind >> ex.aspx",false); //fails here >> } >> else if share|improve this answer answered Sep 15 '08 at 10:27 Biri 5,72552645 add a comment| up vote 0 down vote If you are overriding the events, are you calling the default implementation? So it should not be a problem. Final Solution: Edited copy of web.config at C:\Inetpub\wwwroot\YOURWEBPROJECTNAME\web.config, I don’t know where the settings are that System.Web.Security.Membership points to the published location, vice the projects development location on G: Drive, or

My app requires a login to work for anything but the home page and login page, so when I fired up the application it died unceremoniously every time it tried to http://forums.asp.net/t/1429891.aspx?Login+not+working The time now is 05:45 PM. A number of people have commented on this post, as well as a few private notes I’ve received via email and Twitter. more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Trim Password: Secondly, sometimes when you are debugging you can see the password you are entering looks the same in code-behind when you debug the Login1.Password value is correct. weblink If you want some good background I recommend the DNR TV episode with Miguel Castro on ASP.NET Membership share|improve this answer answered Sep 15 '08 at 9:51 Leo Moore 1,56411418 When I move this to the web server, and access the site from the web, everything looks ok at first. I can't debug this remotely as I do not have the necessary permissions however the code is the same so I can't see how this would differ.

Insults are not welcome. I'm not sure how to encrypt a cookie after calling GetAuthCookie() but an alternative is to create a FormsAuthentication ticket and then use the FormsAuthentication.Encrypt() method passing in the ticket. Deleting and restoring the entire solution from a known working backup did not fix the log on problem. navigate here Once I commented the out, it worked fine :) Even though I had everything above in the file set properly, this one line caused me over an hour of headache...

Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update type URL). > >GetRedirectUrl() Checks if the username is null, returns null in this case, >or returns Request["ReturnUrl"] if not null or just the path to the >default.aspx in the root Any ideas?

Any help will be appreciated.

Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. share|improve this answer answered Sep 15 '08 at 10:10 Chris Driver 97411114 I don't use SSL. What is Source Control? –Nikhil Tamhankar Sep 14 '11 at 14:19 2 If you were using VCS, version control software, you would easily be able to identity what you changed Whats strange is >> it works perfectly on my localhost when debugging, >> however it fails to redirect when depolyed to a remote >> server.

After reading the article at http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthentication.loginurl.aspx I checked my web.config file and found out that the following code was missing:

<forms loginUrl="Login.aspx"defaultUrl="Default.aspx" />

After adding these lines everything worked correctly.HTH Proposed Created some users to test with. If you are using FormsAuthentication.RedirectFromLoginPage method, you should get what you want. his comment is here Should I report it?

However, I double checked my live Windows 2008 original server online and it works just fine with those same updates installed. Every sample says: Add Login.aspx to your project/website. –Biri Sep 15 '08 at 10:02 I do not like this hack, see my answer stackoverflow.com/questions/62013/… –Rob Cooper Sep 15 '08 I started over the project: Default.aspx: added LoginStatus and LoginName controls Login.aspx: added Login control and CreateUserWizard control web.config: added

I think we should actually find the answer rather than hack. I used a solution that I happened to already have on my laptop on an exam. Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI Note: I have not tested this since I have not installed the database etc..

You're using a one way hash algorithm that requires the machinekey to hash the entered password for comparison. Basically it's probably time to start over by clearing out your database and adding users into it again. General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ Microsoft is aware of this issue and they’re taking a look.

Since all the [presumably] tested sites work. My cat sat on my laptop, now the right side of my keyboard types the wrong characters Armistice Day Challenge What happened?