Login won't authenticatehttp://forums.asp.net/t/949781.aspx/1?Login+won+t+authenticateSat, 27 Mar 2010 21:11:12 -04009497811154939http://forums.asp.net/p/949781/1154939.aspx/1?Login+won+t+authenticateLogin won't authenticate I have set up security for my site through the Site Admin Tool through VWD.&nbsp; I'm using the ASPNETDB.MDF way.&nbsp; My web.config has authentication set to forms. I have a default.aspx with nothing on it and a login.aspx with a login control on it.&nbsp; I have one user in my database and I can't get it to authenticate.&nbsp; Even when I type in my exact username and password is spits back with &quot;Your login attempt was not successful. Please try again.&quot;<br> <br> Any suggestions?&nbsp; Thanks.<br> <br> Wayward780<br> 2005-12-30T00:26:58-05:001155131http://forums.asp.net/p/949781/1155131.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p>Did you use the Site Amin tool to create the user also?</p> <p>The problem is that your user information is porbably not the same as you enter. So try to remove or add a new user and check if you can login with that user.</p> 2005-12-30T07:34:52-05:001155201http://forums.asp.net/p/949781/1155201.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate Yes, I've used the Site Admin Tool to create several users.&nbsp; I've tried them all and none of them work.&nbsp; None of them authenticate.<br> <br> If I'm getting an error message from the form in red this means that it IS connecting to the database and actually checking; however, it's failing to match a user.&nbsp; I'm not getting any application errors.<br> <br> Please help!<br> <br> Wayward780<br> 2005-12-30T11:04:32-05:001155211http://forums.asp.net/p/949781/1155211.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate Okay so the plot thickens.&nbsp; It turns out it WILL work but only if I have chosen &quot;View in browser&quot; from VWD.&nbsp; But NOT if I type into the URL &quot;http://localhost/dorknozzle&quot;. Why is this?&nbsp; Thanks.<br> <br> Wayward780<br> 2005-12-30T11:37:03-05:001156013http://forums.asp.net/p/949781/1156013.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate I'm still not able to authenticate by typing my virtual directory right in to my browser.&nbsp; I ALWAYS have to go through the VWD &quot;View in browser&quot; option.&nbsp; How can I get this to work without going through the VWD?<br> <br> Please help, I'm dying to play with these new security classes!!! Thanks.<br> <br> Wayward780<br> 2005-12-31T14:46:03-05:001156131http://forums.asp.net/p/949781/1156131.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p>post the code which is failing to work.......</p> 2005-12-31T18:53:50-05:001156174http://forums.asp.net/p/949781/1156174.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate It's not something I can post! It's the login control! &lt;asp:login runat=&quot;server&quot; /&gt; That's it!<br> <br> Here's the deal.&nbsp; Usually I test my Web sites by going to http://localhost/virtualdirectory but when I'm trying to build sites with the VWD authentication won't work that way.&nbsp; Apparently I have to use the Website &gt; View in browser command in VWD to get my authentication to work and even then it only works sometimes, it's VERY fickle.<br> <br> I DO NOT understand what the Asp.net development server icon is for in my system tray or any of this. I don't understand why I can't access my applications the way I used to and have them work!<br> <br> I have a feeling it has something to do with the ASP.Net development server (whatever that is) and the ASPNETDB.MDF file and detaching.&nbsp; Please if anyone knows a resource that will explain this crap to me for the love of everything good and holy tell me!!!<br> <br> This is so freaking frusturating this whole trying to develop with the VWD.&nbsp; Please help, thanks.<br> <br> Wayward780<br> 2005-12-31T21:14:44-05:001175832http://forums.asp.net/p/949781/1175832.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate Same here. But I can't login even by &quot;View in browser&quot;. Already recreated users couple of times. Make user a member of a role. Nothing wolks. Have you solved this? Thanks. 2006-01-22T19:08:37-05:001194949http://forums.asp.net/p/949781/1194949.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p>&nbsp;</p> <p>Do you use a firewall?</p> <p>I had trouble with my admin tool running, and later even the application running, because my firewall was interfering with something (i don't know what) happening behind-the-scenes while running an asp.net 2.0 application.</p> <p>If you do have a firewall, I suggest try allowing ALL traffic and see if that helps.</p> <p>&nbsp;</p> 2006-02-10T23:16:03-05:001195074http://forums.asp.net/p/949781/1195074.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p>I have the same problem. If I try to login typing my (NO-IP) DNS, it doesn´t autenticate the user ( <font color="#0000ff">Your login attempt was not successful. Please try again)..</font> If I press F5 in VWD, it does the same. But If press ctrl &#43;F5 , <font color="#ff1493">start with no debugging</font>, it simply works! .. I really don´t know whats going on, If someone can just throw me a line, y would really apreciate.</p> 2006-02-11T07:22:34-05:001196480http://forums.asp.net/p/949781/1196480.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p><font face="Tahoma" size="2">Have you got your ASPNETDB.mdf file under source control? I have found that the log in control doesn't work while this file is checked in. My current problem is that I can't get it to work at all once I deploy it to a remote server... Hope this helps../</font></p> <p><font face="Tahoma" size="2"></font>&nbsp;</p> <p><font face="Tahoma" size="2">Graham</font></p> <p><a href="http://www.lot31.co.uk"><font face="Tahoma" size="2">www.lot31.co.uk</font></a></p> 2006-02-13T14:32:52-05:001196523http://forums.asp.net/p/949781/1196523.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate Hi guys, we are in the same boat! I am facing the same problem too. The authentication runs OK (sometimes working, sometimes not) in VWD but when running on <a href="http://localhost/app">http://localhost/app</a> , it failed to authenticate even though I am 1000% sure that my username and password is correct. Hope someone can help us on this. Thanks. 2006-02-13T15:01:01-05:001196528http://forums.asp.net/p/949781/1196528.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate Hi again, guys, I tried enable the &quot;Local Impersonation&quot; to my administrator account on the local computer and it managed to solve the problem. Hope that it's of some help... I am a newbie too. Thanks. 2006-02-13T15:06:16-05:001196924http://forums.asp.net/p/949781/1196924.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p><font face="Tahoma" size="2">Hi</font></p> <p><font face="Tahoma" size="2">I think the problems described here and unsolved in quite a few other posts on this forum, including <a href="http://http://forums.asp.net/1194370/ShowPost.aspx">one from me</a>, is that when you add a user using the Membership API it also stores the name of the application that was used to add it in the aspnet_Applications table. When a user is added from a page running on the Visual Studio web server it is linked to a record in this table containing the name of the web site shown in solution explorer in VS.</font></p> <p><font face="Tahoma" size="2">When you run the site in IIS the application name seems to&nbsp;come from the IIS settings (on the Home or Virtual Directory tab in site properties).</font></p> <p><font face="Tahoma" size="2">If the application names do not match then the a user added on the VS server won't authenticate when the site and membership db are run in IIS.</font></p> <p><font face="Tahoma" size="2">To fix this I have updated the ApplicationName and LoweredApplicationName on my&nbsp;deployed</font><font face="Tahoma" size="2">&nbsp;database to match the IIS application name and all works well. I suppose ensuring that they are both the same before&nbsp;adding any users or deploying the database would be an easier way to do things...</font></p> <p><font face="Tahoma" size="2">Hope this helps with your issues...</font></p> <p><font face="Tahoma" size="2">Graham</font></p> <p><a href="http://www.lot31.co.uk/"><font color="#7395c1"><font face="Tahoma" size="2">Architecture, Visualisation, Design, 3d, Application, Web, Windows,</font><font face="Tahoma" size="2">&nbsp;Development, Liverpool, UK</font></font></a></p> 2006-02-13T19:44:04-05:001197379http://forums.asp.net/p/949781/1197379.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p><font face="Tahoma" size="2">The cause of the issue I describe above is described by Scott Guthrie here:</font></p> <p><font face="Tahoma" size="2"><a href="/1195920/ShowPost.aspx">http://forums.asp.net/1195920/ShowPost.aspx</a></font></p> <p><font face="Tahoma" size="2">Graham</font></p> <p><a href="http://www.lot31.co.uk/"><font color="#7395c1"><font face="Tahoma" size="2">Architecture, Visualisation, Design, 3d, Application, Web, Windows,</font><font face="Tahoma" size="2">&nbsp;Development, Liverpool, UK</font></font></a></p> 2006-02-14T08:57:11-05:001197582http://forums.asp.net/p/949781/1197582.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate Thanks graham, that was very helpful.&nbsp; I kept wondering why the aspnetdb would have two applicationName's, one for &quot;/&quot; and one for &quot;MyApplicationName&quot; in the aspnet_application table.&nbsp; I also noticed that when I created a user, two users would be created, one for each ApplicationName.&nbsp; I suspected that this was the problem as sometimes the login control would work but other times it wouldn't, but couldn't figure out how to change it. Just to clarify, if I wanted all the users to be added to the &quot;/&quot; ApplicationName, I would add &lt;applicationName=&quot;/&quot;&gt; to the membership and role sections of the web.config. After that, all users will be added to root. Is this correct?&nbsp; I didn't have this line in the web.config providers section which I believe was causing the aspnet_application table to have two entries instead of one. Thanks again for shedding&nbsp; so much need light on the problem. I'm going to give it&nbsp; a shot right now.<br> 2006-02-14T13:26:42-05:001197791http://forums.asp.net/p/949781/1197791.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate ok, so I added to the web.config applicationName =&quot;/&quot; which seems to work fine.&nbsp; I no longer have two applicationNames in the aspnet_application table.&nbsp; However, what is happening now is if I use the registration control, sign up, everything works great.&nbsp; But if I log out, which sends me to the login page, and I enter a username and password (the same I used for registration) I get an error message that states that the user is anonymous.&nbsp; I can Membership.IsValid() method and the user is valid.&nbsp; So my question is: how to make the user not anonymous? <br> 2006-02-14T15:38:41-05:001198528http://forums.asp.net/p/949781/1198528.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p><font face="Tahoma" size="2">Hi</font></p> <p><font face="Tahoma" size="2">I am not sure what could be causing your problem but maybe you could try a couple of things:</font></p> <ul> <li><font face="Tahoma" size="2">Remove the &lt;membership&gt; section from your web.config altogther and let the application use the default one. If this fixes your problem then there must be something else wrong in your web.config</font> </li><li><font face="Tahoma" size="2">Delete the aspnetdb and then use the admin tool to re-add it just in case there are still some issues from having two application names</font></li></ul> <p><font face="Tahoma" size="2">Also, this is a bit of a shot in the dark, are you using roles in your application and if so is that why the user isn't logging in?</font></p> <p><font face="Tahoma" size="2">Hope this helps...</font></p> <p><font face="Tahoma" size="2">Graham</font></p> 2006-02-15T05:28:00-05:001206278http://forums.asp.net/p/949781/1206278.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p>Hi,</p> <p>I have been struggling with this issue for a while myself.</p> <p>I had the applicationName=&quot;/&quot; attrubiute in my web.config, and only had one entry in the applications table in ASPNETDB.</p> <p>I tried to change that value to &quot;ECMA&quot; (the name of my application) and also change the values in the database. I only have one application record and one user record in my database, but I still can't log in when the app is deployed to IIS.</p> <p>Is there anything else that needs to be done?</p> <p>I am pasting the complete web.config file here:</p> <font color="#0000ff" size="2"> <p>&lt;?</font><font color="#800000" size="2">xml</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">version</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">1.0</font><font size="2">&quot;</font><font color="#0000ff" size="2">?&gt;</p> <p>&lt;!--</font><font color="#008000" size="2"> </p> <p>Note: As an alternative to hand editing this file you can use the </p> <p>web admin tool to configure settings for your application. Use</p> <p>the Website-&gt;Asp.Net Configuration option in Visual Studio.</p> <p>A full list of settings and comments can be found in </p> <p>machine.config.comments usually located in </p> <p>\Windows\Microsoft.Net\Framework\v2.x\Config </p> </font><font color="#0000ff" size="2"> <p>--&gt;</p> <p>&lt;</font><font color="#800000" size="2">configuration</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">xmlns</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">http://schemas.microsoft.com/.NetConfiguration/v2.0</font><font size="2">&quot;</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">appSettings</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">key</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">ReportErrorsToMIS</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">value</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">False</font><font size="2">&quot;</font><font color="#0000ff" size="2"> /&gt;</p> <p>&lt;/</font><font color="#800000" size="2">appSettings</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">connectionStrings</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">ProductsConnectionString</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">connectionString</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Products.mdf;Integrated Security=True;User Instance=True</font><font size="2">&quot;</p> </font><font color="#0000ff" size="2"> <p></font><font color="#ff0000" size="2">providerName</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Data.SqlClient</font><font size="2">&quot;</font><font color="#0000ff" size="2"> /&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">UsersConnectionString</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">connectionString</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True</font><font size="2">&quot;</p> </font><font color="#0000ff" size="2"> <p></font><font color="#ff0000" size="2">providerName</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Data.SqlClient</font><font size="2">&quot;</font><font color="#0000ff" size="2"> /&gt;</p> <p>&lt;/</font><font color="#800000" size="2">connectionStrings</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">system.web</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;!--</font><font color="#008000" size="2"> </p> <p>Set compilation debug=&quot;true&quot; to insert debugging </p> <p>symbols into the compiled page. Because this </p> <p>affects performance, set this value to true only </p> <p>during development.</p> <p>Visual Basic options:</p> <p>Set strict=&quot;true&quot; to disallow all data type conversions </p> <p>where data loss can occur. </p> <p>Set explicit=&quot;true&quot; to force declaration of all variables.</p> <p></font><font color="#0000ff" size="2">--&gt;</p> <p>&lt;</font><font color="#800000" size="2">roleManager</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">enabled</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">true</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">compilation</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">debug</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">true</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">strict</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">false</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">explicit</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">true</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">pages</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">namespaces</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">clear</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Collections</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Collections.Specialized</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Configuration</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Text</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Text.RegularExpressions</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.Caching</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.SessionState</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.Security</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.Profile</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.UI</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.UI.WebControls</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.UI.WebControls.WebParts</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">namespace</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.UI.HtmlControls</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;/</font><font color="#800000" size="2">namespaces</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">pages</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;!--</p> </font><font color="#008000" size="2"> <p>The &lt;authentication&gt; section enables configuration </p> <p>of the security authentication mode used by </p> <p>ASP.NET to identify an incoming user. </p> <p></font><font color="#0000ff" size="2">--&gt;</p> <p>&lt;</font><font color="#800000" size="2">authentication</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">mode</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Forms</font><font size="2">&quot;</font><font color="#0000ff" size="2"> /&gt;</p> <p>&lt;!--</p> </font><font color="#008000" size="2"> <p>The &lt;customErrors&gt; section enables configuration </p> <p>of what to do if/when an unhandled error occurs </p> <p>during the execution of a request. Specifically, </p> <p>it enables developers to configure html error pages </p> <p>to be displayed in place of a error stack trace.</p> <p>&lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;GenericErrorPage.htm&quot;&gt;</p> <p>&lt;error statusCode=&quot;403&quot; redirect=&quot;NoAccess.htm&quot; /&gt;</p> <p>&lt;error statusCode=&quot;404&quot; redirect=&quot;FileNotFound.htm&quot; /&gt;</p> <p>&lt;/customErrors&gt;</p> <p></font><font color="#0000ff" size="2">--&gt;</p> <p>&lt;</font><font color="#800000" size="2">profile</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">enabled</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">true</font><font size="2">&quot;</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">properties</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Products</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;/</font><font color="#800000" size="2">properties</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">profile</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">machineKey</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">validationKey</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">C5B196E911240399B8B51836BDAE577AB5C325CCC6E23DF9E225C93789CC420FBD01B2A9239703676B68157B35EA6313B53AD3047132C2356F16E252264FA470</font><font size="2">&quot;</p> </font><font color="#0000ff" size="2"> <p></font><font color="#ff0000" size="2">decryptionKey</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">99A3BA776B9926350B0B47E9A81771A4B6B31736AFE9C729</font><font size="2">&quot;</p> </font><font color="#0000ff" size="2"> <p></font><font color="#ff0000" size="2">validation</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">SHA1</font><font size="2">&quot;</font><font color="#0000ff" size="2"> /&gt;</p> <p>&lt;</font><font color="#800000" size="2">membership</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">defaultProvider</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">AspNetSqlMembershipProvider</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">userIsOnlineTimeWindow</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">20</font><font size="2">&quot;</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">providers</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">clear</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">AspNetSqlMembershipProvider</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">type</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">connectionStringName</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">LocalSqlServer</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">enablePasswordRetrieval</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">false</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">enablePasswordReset</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">true</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">requiresQuestionAndAnswer</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">false</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">applicationName</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">ECMA</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">requiresUniqueEmail</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">false</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">passwordFormat</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Encrypted</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">maxInvalidPasswordAttempts</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">5</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">minRequiredPasswordLength</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">6</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">minRequiredNonalphanumericCharacters</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">0</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">passwordAttemptWindow</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">10</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </p> <p></font><font color="#ff0000" size="2">passwordStrengthRegularExpression</font><font color="#0000ff" size="2">=</font><font size="2">&quot;&quot;</font><font color="#0000ff" size="2"> </p> <p>/&gt;</p> <p>&lt;/</font><font color="#800000" size="2">providers</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">membership</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">system.web</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">system.net</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">mailSettings</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">smtp</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">from</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">gabbyr@radware.com</font><font size="2">&quot;</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">network</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">defaultCredentials</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">true</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">host</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">APOLLO</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">password</font><font color="#0000ff" size="2">=</font><font size="2">&quot;&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">userName</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">gabbyr</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;/</font><font color="#800000" size="2">smtp</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">mailSettings</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">system.net</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;/</font><font color="#800000" size="2">configuration</font><font color="#0000ff" size="2">&gt;</p> </font> 2006-02-22T14:43:28-05:001207151http://forums.asp.net/p/949781/1207151.aspx/1?Re+Login+won+t+authenticateRe: Login won't authenticate <p>Additional discovery:</p> <p>I tried to create a new website directly on the IIS instead of a file system web site. Using the default memebership settings, with nothing added to web.config, login worked.</p> <p>Looking into the aspnetdb database, the application table contained one record with the applicationName set to &quot;/&quot;, so it seems that the application works on IIS even when the application name in IIS is different from the application name in the database.</p> <p>So now I need to see what happens to a web site that was created directly under IIS, when it is transferred to a different machine. If this works, then at least I know that I can continue developing and hope to find a solution to this problem later on.</p> 2006-02-23T06:45:01-05:00