<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/2735339.aspx</link><pubDate>Mon, 10 Nov 2008 13:39:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2735339</guid><dc:creator>yrleu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2735339.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2735339</wfw:commentRss><description>&lt;p&gt;This great article, &amp;quot;&lt;a class="" href="http://weblogs.asp.net/scottgu/archive/2006/04/22/Always-set-the-_2200_applicationName_2200_-property-when-configuring-ASP.NET-2.0-Membership-and-other-Providers.aspx"&gt;Always set the &amp;quot;applicationName&amp;quot; property when configuring ASP.NET 2.0 Membership and other Providers&lt;/a&gt;,&amp;quot; gives the answer!&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/2735177.aspx</link><pubDate>Mon, 10 Nov 2008 11:47:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2735177</guid><dc:creator>yrleu</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2735177.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2735177</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;John Sinclair:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;I&amp;#39;ve just had a battle with the &lt;span id="Mark" style="COLOR:blue;BACKGROUND-COLOR:#ccffff;"&gt;login&lt;/span&gt; control, and I eventualy found the problem was the application path, similar to cdmlb&amp;#39;s post above.&lt;/p&gt;
&lt;p&gt;I played around with the Membership class in the immediate window while my &lt;span id="Mark" style="COLOR:blue;BACKGROUND-COLOR:#ccffff;"&gt;login&lt;/span&gt; page was on a breakpoint, and realised that Membership.GetAllUsers().Count returned 0.&amp;nbsp; I created a user from this class, and then dug into the DB a bit (standard SqlMembershipProvider provider) and discovered that the user I created from the immediate window had a different application to the users I had set up from the &amp;quot;&lt;span id="Mark" style="COLOR:#ee6600;BACKGROUND-COLOR:yellow;"&gt;ASP.Net&lt;/span&gt; configuration&amp;quot; web page.&amp;nbsp; I changed the web project&amp;#39;s properties to give a virtual path (it was /) and then the users I had entered from config matched up with the users available to the app.&amp;nbsp; No idea why the config site thought it was using a different application, but it works now.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;This info helps me a lot. When I attach the Visual Studio 2008 debugger to IIS (w3wp.exe) and break the execution of my Web application, I can see the value of&amp;nbsp;&lt;strong&gt;Membership.ApplicationName&lt;/strong&gt; is &amp;quot;/&amp;lt;ProjectName&amp;gt;&amp;quot; rather than &amp;quot;/&amp;quot;. If I set &lt;strong&gt;Membership.ApplicationName&lt;/strong&gt; to &amp;quot;/&amp;quot; within the Watch window,&amp;nbsp;ASP.NET authentication works fine in IIS afterwards.&lt;/p&gt;
&lt;p&gt;Therefore, I think the safest way to avoid this authenticaiton problem with Login Control and IIS&amp;nbsp;is to explicitly assign &amp;quot;/&amp;quot; to &lt;strong&gt;Membership.ApplicationName&lt;/strong&gt; in the code.&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/1424469.aspx</link><pubDate>Tue, 10 Oct 2006 23:11:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1424469</guid><dc:creator>John Sinclair</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1424469.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1424469</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve just had a battle with the login control, and I eventualy found the problem was the application path, similar to cdmlb&amp;#39;s post above.&lt;/p&gt;&lt;p&gt;I played around with the Membership class in the immediate window while my login page was on a breakpoint, and realised that Membership.GetAllUsers().Count returned 0.&amp;nbsp; I created a user from this class, and then dug into the DB a bit (standard SqlMembershipProvider provider) and discovered that the user I created from the immediate window had a different application to the users I had set up from the &amp;quot;ASP.Net configuration&amp;quot; web page.&amp;nbsp; I changed the web project&amp;#39;s properties to give a virtual path (it was /) and then the users I had entered from config matched up with the users available to the app.&amp;nbsp; No idea why the config site thought it was using a different application, but it works now.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/1399861.aspx</link><pubDate>Fri, 15 Sep 2006 00:12:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1399861</guid><dc:creator>cdmlb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1399861.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1399861</wfw:commentRss><description>&lt;p&gt;My friend had the same problem, my above fix did not work for him, when I helped him out, I was also able to fix my problem with the application name.&lt;/p&gt;&lt;p&gt;Now I can call the iis application name the exact same as the projects folder name, so just ignore the fact of / since it actualy will contact the name of you application to the end of the / to make it /whatever, good thing would be anoying to do it yourself.&lt;/p&gt;&lt;p&gt;I&amp;nbsp;remembered that before I formatted my pc in my control&amp;nbsp;panel, user accounts section I&amp;nbsp;had my account, and tow other ones called SQL, and ASP.NET, I still have does two accounts on my pc now after I formatted it, but for some rason they don&amp;#39;t show up in the control panel user accounts, but found under&amp;nbsp;local users and groups uder the mmc.&lt;/p&gt;&lt;p&gt;So when I went to my wwwroot, and check out the security settings, I noticed no asp.net user was&amp;nbsp;there at all, and no network service user was there at all that the sql server uses to login under the sql user to talk to asp.net, and IIS since&amp;nbsp;on my machin the sql server is lauched&amp;nbsp;as a network service.&lt;/p&gt;&lt;p&gt;So I added the asp.net, and network service usernames and gave them the read, write, execute, and modify permissions, found when you right click your wwwroot folder, and then properties, and then the security&amp;nbsp;tab. Afther that I named my application&amp;nbsp;in IIS the same name as my folder, I did nothing else, just incase I restarted my IIS, and SQL server, tested the login control again, mine worked, his worked, no foulling around to make changes yourself with the application&amp;nbsp;names, everything is now auto generated when me, or him make new asp.net applictions on&amp;nbsp;either pcs.&lt;/p&gt;&lt;p&gt;So I&amp;#39;m guessing I was wrong about the application name part, but even do it looks like you aspnet site is connecting to the aspnetdb to check the usernames/pwds, it does connect to that db, but since it has no permissions to read, it will just come up and say failed to login please try again on your login control.&lt;/p&gt;&lt;p&gt;The problem was not with the following for me and my friend:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;SQL settings, and server where all good;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;IIS settings, and server where all good;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;My application was all good;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;There is no problem with the login control at all;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Application names where all good, and auto generated;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;No problems with config files, or connection strings&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;We did not have to do realy anthing at all, everything was auto made when we installed all, and made asp.net applicaitions;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;BUT OUR PROBLEM WAS&lt;/p&gt;&lt;p&gt;For some reason the software did not auto generate the accounts, and file&amp;nbsp;permissions for IIS to talk to SQL server in the sence to what the aspnetdb is used, since you have permission to connect to the server and a db, but&amp;nbsp;does not mean you have permission to read or write to that db, hence can&amp;#39;t compared user/pwd with againts the db values for that user, and since could not compare the values, says must have wrong user or pwd for the login control.&lt;/p&gt;&lt;p&gt;It was a file permission problem for NETWORK SERVICE user that SQL uses to make an instance of the sql server, and the asp.net user that talks to that NETWORK SERVICE user using IIS.&lt;/p&gt;&lt;p&gt;We fixed it by adding users asp.net, and NETWORK SERVICE to our wwwroot folder, and gave them read/write/execute/modify permissions, it worked.&lt;/p&gt;&lt;p&gt;I hope this one is write this time, and works for you.&lt;/p&gt;&lt;p&gt;You never know maybe the other things I said before where right, I dought that...lol.&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/1399838.aspx</link><pubDate>Thu, 14 Sep 2006 23:42:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1399838</guid><dc:creator>cdmlb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1399838.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1399838</wfw:commentRss><description>&lt;p&gt;I figured out my problem, I hope it will not continue.&lt;/p&gt;&lt;p&gt;Normaly when you make a new ASP.NET application using vs2k5 it will name the application in IIS as the name you created with, and then when the aspnetdb is auto generated in your project, it will take the name of you application, and then put it in the aspnet_Application table.&lt;/p&gt;&lt;p&gt;This time after I formatted my pc, I noticed that when I made a new probject, in IIS when you go find your project, right click it, then properties, and then the default Directory Tab, the application name was just blank no name at all.&amp;nbsp;When I looked in the &lt;strong&gt;aspnet_Application table in my aspnetdb&lt;/strong&gt; I found that the application name was just a &lt;strong&gt;/&lt;/strong&gt; that&amp;#39;s it nothing else just a / just like I found in the machine.config, and global web.config files that are used by default by asp.net, and created by asp.net found in some IIS settings, and also found in &lt;strong&gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG&lt;/strong&gt;, you can either use IIS to edit it, or just manualy edit it with a text editor.&lt;/p&gt;&lt;p&gt;So what I did since the name was &lt;strong&gt;/&lt;/strong&gt; in my aspnet_Application table, I went to IIS, then found my application, and went to it&amp;#39;s properties, in the Applcation name section I just put in &lt;strong&gt;/&lt;/strong&gt; like the aspnet_Application table found in aspnetdb in my project was called.&lt;/p&gt;&lt;p&gt;Voila that worked for me, my login control authenticated, and redirected my to my members page, and I almost&amp;nbsp;[:&amp;#39;(] tears of joy!!! No more problem with Failed to login please try again later error that the login control was giving me after I formatted my pc.&lt;/p&gt;&lt;p&gt;Now each time I make a new project, I have to double check to make sure the application name in IIS, is the same as in my aspnet_Application table find in the aspnetdb are the exact same, I could of named them both the same other then just a &lt;strong&gt;/&lt;/strong&gt;, but I left it like that since it&amp;#39;s the root of my application&amp;nbsp;right?&lt;/p&gt;&lt;p&gt;It sucks that it will not do like before I formatted my pc, just to generate the names, and no problems, but life not like that all the time, maybe next time when I format for some reason it will do it by itself I hope, but learning from this problem when it comes time to host the applicaiton on another pc I will know what to check for next time, lol I hope.&lt;/p&gt;&lt;p&gt;Maybe this worked for me, and&amp;nbsp;I hope it works for you too.&lt;/p&gt;&lt;p&gt;If you want to maybe see screen shots of what I mean, just email me at &lt;a href="mailto:cdmlb@hotmail.com"&gt;cdmlb@hotmail.com&lt;/a&gt;, since this forum does not allow you to just upload a pic directyle in the the text, but only URL type imgaes that are online, or can you?&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/1398648.aspx</link><pubDate>Thu, 14 Sep 2006 03:07:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1398648</guid><dc:creator>cdmlb</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1398648.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1398648</wfw:commentRss><description>&lt;p&gt;I had everything working properly, and the login control was letting me in real good no problems&lt;img src="http://forums.asp.net/emoticons/emotion-21.gif" alt="Yes" /&gt; at first.&lt;/p&gt;&lt;p&gt;Then I formated pc, and now the login control tells my that it could not login and try again later.&lt;/p&gt;&lt;p&gt;My SQL server is on, I can connect to any db using VS 2005, and the sql manager express, and I can program a page and get data out of a db. Also the ASP.NET Configuration page for the applicaiton works great too, and has no problem with the ASPNETDB.MDF.&lt;/p&gt;&lt;p&gt;Since lets say I have a db called learn.mdf, my prog can connect to it since the connection string is in the web.config file, and when I go in IIS and find that application that I&amp;#39;m working on, go to properties of that application, asp.net tab, edit configuration button, I see a connection string for the ASPNETDB.MDF, and I see my connection string for learn.mdf.&lt;/p&gt;&lt;p&gt;Note the mdf db files, are in my App_Data folder that worked all before I formatted my pc.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have no clue what IIS had for a connection string before for the ASPNETDB.MDF db.&lt;/p&gt;&lt;p&gt;This is the connection string auto generated in IIS for the ASPNETDB.MDF which is found under global, and local configuration.&lt;/p&gt;&lt;p&gt;Data Source=.\SQLEXPRESS;AttachDBFilename=|DataDirectory|ASPNETDB.MDF;&lt;strong&gt;Integrated Security=SSPI&lt;/strong&gt;;User Instance=true&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have trying to use this type of connection string like VS 2005 allows me to connect with but does not work either.&lt;/p&gt;&lt;p&gt;Data Source=.\SQLEXPRESS;AttachDBFilename=|DataDirectory|ASPNETDB.MDF;&lt;strong&gt;Integrated Security=true&lt;/strong&gt;;User Instance=true&lt;/p&gt;&lt;p&gt;Which is the usel type of conneciton string that allows to connect directly to it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I don&amp;#39;t think the Login control has a problem, no problem with the SQL Epress server, or VS 2005, but the IIS settings to allow you application to connect to the ASPNETDB.MDF itself, for some reason it does not connect to check your user/pwd, and then turns around, and the login control says could not login, try again later.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;WinXP Pro SP2;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;IIS 5.1;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;MS-SQL Express Advance with SP1;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;VS 2005 Pro;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I checked my login page script, and code, to make sure I had not like made an event for the login control like mentioned above, and it all worked before I formatted my computer, now since I formatted my computer, IIS and ASPNET.MDF do not like authenticate properly.&lt;/p&gt;&lt;p&gt;Also note&amp;nbsp;my sql express server has mixed mode authentication (windows/sql quthentication) on.&lt;/p&gt;&lt;p&gt;Any thing to fix this would help.&lt;/p&gt;&lt;p&gt;Yes my ASPNETDB.MDF is on, the form authentication user accounts to login my site are active, and I am using the correct pwd for the account...lol&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1387473.aspx</link><pubDate>Fri, 01 Sep 2006 19:41:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1387473</guid><dc:creator>tubugurl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1387473.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1387473</wfw:commentRss><description>&lt;p&gt;i don&amp;#39;t know if this help anyone else, but i was having a hell of a time with the login control also. i had it on a page with the password recovery control using the ActiveDirectoryMembershipProvider. it was working for a few days, then all of the sudden nobody could login. or they could login once, but not again. answering the security question was working fine, so i knew i had a connection to Active Directory.&amp;nbsp;&lt;/p&gt;&lt;p&gt;well, after a lot of research it&amp;nbsp;turned out that&amp;nbsp;the &amp;quot;enablePasswordReset=true&amp;quot; in the web.config was the culprit. when i started configuring the CreateUserWizard control for registering new user accounts i had to map the password question, answer, failedpasswordanswercount, etc. to Active Directory attributes and that&amp;#39;s when i set &amp;quot;enablePasswordReset&amp;quot; equal true. around that time is when the login control started acting up. sometimes you could login, sometimes you couldn&amp;#39;t, some accounts worked and some didn&amp;#39;t. the only thing that seems to fix it is if i set &amp;quot;enablePasswordReset&amp;quot; to &amp;quot;false&amp;quot;. so we&amp;#39;re removing the whole password recovery functionality and writing our&amp;nbsp;own. &lt;/p&gt;&lt;p&gt;maybe that will save someone else hours of fruitless research.&amp;nbsp; &lt;img src="http://forums.asp.net/emoticons/emotion-39.gif" alt="Super Angry" /&gt;&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1378774.aspx</link><pubDate>Wed, 23 Aug 2006 16:23:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1378774</guid><dc:creator>Nyetrogen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1378774.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1378774</wfw:commentRss><description>Can you explain more about this solution. I've tried for the past 5 days to try and get my app to work on my remote server. From everything that I've read, my configuration is setup properly but I keep getting the generic Login attempt failed message. Maybe provide sample LoggingIn validation that you used. I would really appreciate it. I've looked at this so much that I think I'm just missing something simple. Any help would be much appreciated. I can provide URL or whatever if that would help. &lt;br /&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1372147.aspx</link><pubDate>Wed, 16 Aug 2006 11:36:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1372147</guid><dc:creator>danko</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1372147.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1372147</wfw:commentRss><description>&lt;p&gt;Yeah, that's the solution! &lt;/p&gt;
&lt;p&gt;(I've been having problems with it also antil I've read &lt;strong&gt;mandert&lt;/strong&gt;'s post.)&lt;/p&gt;
&lt;p&gt;If you wire-up the Authenticate event to your Login control:&lt;/p&gt;
&lt;p&gt;&lt;font face="Courier New"&gt;&lt;font size=2&gt;&lt;font color=#0000ff&gt;protected&lt;/font&gt; &lt;font color=#0000ff&gt;void&lt;/font&gt; Login1_Authenticate(&lt;font color=#0000ff&gt;object&lt;/font&gt; sender, &lt;font color=#008080&gt;AuthenticateEventArgs&lt;/font&gt; e) {... }&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;...the default Authenticate event implemented by the Login control &lt;u&gt;won't fire&lt;/u&gt;, so it's &lt;u&gt;authentication check won't work&lt;/u&gt;!&lt;br /&gt;&lt;br /&gt;Just remove the Authenticate event from your code and do all the validation/formatting stuff on &lt;strong&gt;LoggingIn&lt;/strong&gt; event, which fires before the authentication.&lt;/p&gt;
&lt;p&gt;Danko&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1366861.aspx</link><pubDate>Thu, 10 Aug 2006 12:54:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1366861</guid><dc:creator>mandert</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1366861.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1366861</wfw:commentRss><description>&lt;p&gt;Danny, &lt;/p&gt;
&lt;p&gt;did you accidentally clicked twice on the login control in design view? This causes an event to be created like the following:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;/p&gt;&lt;/font&gt;&lt;font color=#0000ff size=2&gt;protected&lt;/font&gt;&lt;font size=2&gt; &lt;/font&gt;&lt;font color=#0000ff size=2&gt;void&lt;/font&gt;&lt;font size=2&gt; Login1_Authenticate(&lt;/font&gt;&lt;font color=#0000ff size=2&gt;object&lt;/font&gt;&lt;font size=2&gt; sender, &lt;/font&gt;&lt;font color=#008080 size=2&gt;AuthenticateEventArgs&lt;/font&gt;&lt;font size=2&gt; e)&lt;br /&gt;{&lt;br /&gt;}&lt;/font&gt;
&lt;p&gt;Delete the event in the Properties window and you should be fine.&lt;/p&gt;
&lt;p&gt;M.&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1363264.aspx</link><pubDate>Mon, 07 Aug 2006 15:06:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1363264</guid><dc:creator>WarrenLong</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1363264.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1363264</wfw:commentRss><description>&lt;p&gt;I also have a similar issue. The login control works fine with VWD.&amp;nbsp; But it will not login when deployed in IIS. I know it can access the database as it returns the correct security question when I cick Forgot Password.&amp;nbsp;&amp;nbsp;&amp;nbsp;I am using Windows XP in a network(part of a domain), IIS 5.1. &lt;/p&gt;
&lt;p&gt;Out of curiosity I deployed it (exact copy)&amp;nbsp;on someone else's Windows 2003 machine&amp;nbsp;and it is working there. What could be the problem in the XP machine then? There must be some bug somewhere.......&lt;strong&gt;it can access the database but won't authenticate the user.&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1362796.aspx</link><pubDate>Mon, 07 Aug 2006 05:59:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1362796</guid><dc:creator>Codescribler</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1362796.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1362796</wfw:commentRss><description>&lt;p&gt;AHHHHHHH!&lt;/p&gt;
&lt;p&gt;At least it sounds like I am not alone in this. I had a login control that worked perfectly and then all of a sudden decided to stop. I cant understand what I did or if I did anything to break it. I did some experiments and found that if I created my own two texboxes with a login button and called membership.validateuser it worked - for a time. Because I was testing the admin section I set the login page to login automaticaly. This is important because I know therefore that the User name and Password&amp;nbsp;are correct. I decided it was time to tidy the textboxes up tried to login and it failed! I re-instated the automatic login and it failed but the credentials are definately correct!&lt;/p&gt;
&lt;p&gt;What on earth is going on. Does anyone have a solid work arround or even a solution!&lt;/p&gt;
&lt;p&gt;Danny (going grey rapidly!)&lt;/p&gt;</description></item><item><title>Re: Troubleshooting the login control? (work around)</title><link>http://forums.asp.net/thread/1330227.aspx</link><pubDate>Sat, 01 Jul 2006 19:29:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1330227</guid><dc:creator>danhixon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1330227.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1330227</wfw:commentRss><description>I implemented a work around that seems to work so far:&lt;br /&gt;&lt;pre class="coloredcode"&gt;    &lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; Login1_Authenticate(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.Web.UI.WebControls.AuthenticateEventArgs) &lt;span class="kwd"&gt;Handles&lt;/span&gt; Login1.Authenticate
        &lt;span class="cmt"&gt;'i don't know why but e.Authenticated is always false so I 
        'have implemented this work around:&lt;/span&gt;
        &lt;span class="kwd"&gt;If&lt;/span&gt; Membership.ValidateUser(Login1.UserName, Login1.Password) &lt;span class="kwd"&gt;Then&lt;/span&gt;
            FormsAuthentication.RedirectFromLoginPage(Login1.UserName, &lt;span class="kwd"&gt;False&lt;/span&gt;)
        &lt;span class="kwd"&gt;End If

    End Sub&lt;/span&gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;I hope to find out why the login control isn't working for us but until then I'll just use this.&lt;br /&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/1330224.aspx</link><pubDate>Sat, 01 Jul 2006 19:21:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1330224</guid><dc:creator>danhixon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1330224.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1330224</wfw:commentRss><description>I am experience this problem too!&amp;nbsp; VERY FRUSTRATING!&lt;br /&gt;&lt;br /&gt;&lt;pre class="coloredcode"&gt;    &lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; Login1_Authenticate(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.Web.UI.WebControls.AuthenticateEventArgs) &lt;span class="kwd"&gt;Handles&lt;/span&gt; Login1.Authenticate
        &lt;span class="kwd"&gt;If&lt;/span&gt; Membership.ValidateUser(Login1.UserName, Login1.Password) &lt;span class="kwd"&gt;Then&lt;/span&gt;
            Label1.Text = &lt;span class="st"&gt;"user IS valid!"&lt;/span&gt;
        &lt;span class="kwd"&gt;End If
        If&lt;/span&gt; e.Authenticated &lt;span class="kwd"&gt;Then&lt;/span&gt;
            Response.Redirect(&lt;span class="st"&gt;"admin/managecategories.aspx"&lt;/span&gt;)

        &lt;span class="kwd"&gt;End If
    End Sub&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;The login control says "Your login attempt was not successful. Please try again." and my Label1.Text says "user IS valid!"&lt;br /&gt;&lt;br /&gt;False is returned when I try calling FormsAuthentication.Authenticate(Login1.UserName, Login1.Password)&amp;nbsp;&amp;nbsp; ...&lt;br /&gt;&lt;br /&gt;Any help on this would be GREATLY appreciated!&lt;br /&gt;&lt;br /&gt;-Dan&lt;br /&gt;</description></item><item><title>Re: Troubleshooting the login control?</title><link>http://forums.asp.net/thread/1275241.aspx</link><pubDate>Wed, 03 May 2006 17:49:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1275241</guid><dc:creator>stephajn.saunter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1275241.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=1275241</wfw:commentRss><description>Sorry...forgot to point out that the results of my explicit call to my provider came back as True.</description></item></channel></rss>