.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Login no longer working on ASP.NET website

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net

Hi there,

I recently discovered that I can no longer login to the admin area of the website I created. I'm definitely using the correct login details and haven't changed anything on the website or server that I can think of recently for it to stop working.

What is happening is that when I try to login it successfully redirects to the correct page in the admin area, but then kicks me out straight away as if I don't have permission to view the page?

Hopefully someone can help! Bit of a strange one.



View Complete Post

More Related Resource Links

Login database with visual studio 2010 asp website template


Has anyone deployed a website using the login database in the visual studio 2010 asp website template? I was wondering if I could look at someone's example to see how the integrated this into their website.

Login control not working in IE7


I spent the last few weeks getting a client site up and running, but all the while I was doing all my testing with Firefox.

I tried seeing what it would look like in IE7, and everything is great.  Except that I cannot login with it.

 I do not know for the life of me why.

Any ideas?

 I am using VWD 2008 and i have a 3.5 web.


NUnit debugging no longer working



I moved from VS2008 running on XP 32 bit to VS2010 running on Win7 64 bit and just noticed that I can't debug in NUnit like I used to.

On my old system, I just went to Debug|Attach to Process, chose NUnit.exe, and ran my tests from the NUnit GUI. VS2008 would stop at the breakpoints just as normal.

Now when I try this using NUnit on the new configuraiton it just skips over my breakpoints. Any help would be great.



>>> Open a Popup window on Successful Login if something new added to website.

Hi, I would like to open a Popup window in Parallel if user Login successfully. The popup will give updates to the user that what's new added to the website. The popup will open only once if user login. If he logout and will re-login then it should not popup as we'll assume that he has been notified earlier. I have users table with user id's. It is for information that I am working in Framework 2.0 and not allowed to use any third party or AjaxToolkit. Therefore javascript or any other technique will resolve the issue. Any idea with coding example would be helpful.

"Remember Me Next Time" under Login Control is not working

I am using VS 2005 and created a Login control. Login control provides "Remember Me Next Time" check box, I check this box but it does not remember next time. I have following entry in the web.config file <authentication mode="Forms"> <forms name=".MyCookies" loginUrl="login.aspx" protection="All" timeout="5000000" cookieless="UseCookies" slidingExpiration="true" path="\"></forms> </authentication> What am I missing? Thanks

Can I have an SQL Express database open in VS2010E along with the website? "Login failed for user ..

Hi, as the topic says..Whenever I have my database open in Visual Studio 2010 Express, I get this error:Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.Cannot open user default database. Login failed.Login failed for user 'IIS APPPOOL\DefaultAppPool'.

Email alerts no longer working- please help.

Hello- I recently had a problem applying an SSL certificate to my MOSS 2007 site where I had to rebuild a lot things in order to get the site back up and running.  Now that it is, I can no longer get email alerts to the users.  The odd thing is that when I set up a calendar event, only me (the site administrator) receives an automated message from 'Administrator@xyz.com'???  This tells me that the smtp settings are correct.  I have found severl posts about this but they are all from developers who think that everyone knows how to program and so their answers are not step by step for me to at least try them out?  Can someone point me in the right direction? Thanks!

vs 2010 stopped working when i close website

Hi, i have installed latest vs 2010 ultimate on windows 7 it works fine but as i want to close a website  it sayas vs has stopped working restart/debug what should i do?

Login controls not working in VS2008



I am creating a asp.net 3.5 app using VS2008 on a Vista Ultimate machine. I wanted to add the login features using the login controls. I was able to create users and roles without any problem using the web admin tool that comes with VS. But when I try to login using the same credentials I am always getting "Your login attempt was not successful. Please try again." error message. I am using MS Sqlserver 2008 as the backend. I am not using any .mdf or sqlexpress databases. I even deletd the App_Data folder. In sqlprofiler, I see the web admin tool is connecting, but when I try to login using the login control, it doesn't even show up on the sql profiler. I tried to launch VS 2008 as an admin, still no success. I tried to browse with IE or FireFox. The dev site is not hosted on IIS yet, and it is running on the dev server that comes with VS 2008. I have squandered nearly one week on this issue. Ironically I was able to to create a website last year with these same controls on VS2005 and Windows XP professional, and the site is running like a charm!

The following is the entry in my web.config file:

<membership defaultProvider="SqlMembershipProvider1"

Search service no longer working. :(


I stuffed up my installation of SP 2010 by first installing MS Project 2010 onto the server.  I then removed the application, this is where my problems began.  After removing my entire SP sites would not work.  I figured I had to reinstall MS Project 2010 to get the SP Admin config wizard to work correctly.  My sites then came back online. :)  But now I find my searching is not working.

I am getting the following errors

The search application 'Search Service Application' on server <SERVERNAME> did not finish loading. View the event logs on the affected server for more information

In the event log

 Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (65a62f7e-3894-4ef8-baab-e5f699b7196a). Reason: The device is not ready. Technical Support Details: System.IO.FileNotFoundException: The device is not ready. at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize() at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob)


Any ideas?

ASP.net Website - Styles and Java script not working on Mozilla firefox



       I developed a ASP.NET website. The style sheets are loading and the site is working well on Internet explorer. But When I open in Mozilla firefox/ google chorme The sytle sheets doesnt work and the javascript also doesnt work. I am not sure what to do to make my website compatible with firefox/chrome. Can someone tell me what needs to changed or where the problem usually arises in this kind of scenarios?



Membership login not working



I am developing a website in which giving login functionality through membership and asp.net login control.My membership login was working fine but now its not working.

I m checking authentication through HttpContext.Current.User.Identity.IsAuthenticated but it always return false.

And when checking through Membership.ValidateUser(Login1.UserName, Login1.Password) it gets authenticated..

why this is happening.........

plz help........

how to get user name in window login and show in our website


if any one login how to get user name and show in our web page

and how to get location of client side (Physically Ex-India -Delhi-Anand Vihar)

Login from another domain to my website


Hello every one and thanks in advance any help is much appreciated.

I have a small website that uses the asp login control and now i want to allow a user login from another website that i have. The problem is the other website is only html not aspx and i'm not sure how to write the form to login. here is the login i'm currently using:

  <asp:Login ID="Login1" runat="server" onauthenticate="Login1_Authenticate" Width="235px">
                                        <table border="0" cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                                                    <table border="0" cellpadding="0">
                                                            <td align="center" colspan="2">
                                                                Customer Login</td>

AspNet Membership Login Stoped Working !!!


Hello all

I have a web app that uses the Membership Provider to authenticate users.

Everything worked fine until today... when I tryed to log in it failed.

I looked in the database if something went wrong there and the user is deleted but everything looks fine there.

I tryed to recover the password using the user name and i got an error that the user is not recognized.

I tyed to recover the password (even though I am sure what the password is) but still no luck... (I get an error that hased passwords can not be decrypted)

I triyed it in local host and guess what ... still the same...

this is the provider section in my web config

    <membership defaultProvider="SqlMemberShipProvider">
        <remove name="SqlMemberShipProvider"/>
        <add name="SqlMemberShipProvider" 

Any i

Password protecting entire website (that already has a login feature)?



I have a website that's still in development however I've placed it up onto our new domain name to allow a few others to see what's going on with the site development.

I want to prevent anyone else from coming in to see the site just yet however, so I want to have the site redirect to a login whenever you try to hit any page within the site.  Here's the problem though....my website already has it's own login included as part of the website in order for a member to get to their account info.  So I essentially want 2 separate logins: 1 just to see the site and a 2nd one as part of my overall website user account details section.  My concern is if I develop this new login to block users to see the site, my other login may experience issues.

How can I create this login to protect my entire site while still in development and yet keep login credentials separate from my actual website's login feature?  Or even better yet, is there some 3rd party tool I can implement to do this for me?


My XML to access a WebSite is not working!!! Help! Help!


I am sending the following xml to access a website and getting the error with the stack.  I have spent weeks on it and getting no where.  Could some one please HELP!!!?  I am willing to pay for the advice as well, as I am getting sick of this!  Thanks in advance for help.  Kel Shorey


<?xml version="1.0" encoding="utf-8"?>
<ers uname="---------------" pword="------------------" myAttribute="fooBar" anotherOfMyAttribute="123456">
    <SalesNote snType="S" action="INSERT" salesContractRef="" saleDate="09/11/2009 00:00:00" auctionID="14" logBookNums="" landingDecNums="" vesselName="Jessica Louise" vesselPln="BM237" vesselMasterOwner="Cowe D" landingDate1="09/11/2009" landingDate2="" landingDate3="" countryOfLanding="GBR" landingPortCode="245">
        <SalesLine speciesCode="JAD" faoAreaCode="27" ZoneCode="VIID" disposalCode="COV" freshnessCode="C" sizeCode="2" presentationCode="FIL" stateCode="FRE" numberOfFish="

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend