<?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: Can not login and there is no error message!</title><link>http://forums.asp.net/thread/3274237.aspx</link><pubDate>Sat, 04 Jul 2009 04:41:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274237</guid><dc:creator>melih</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274237.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274237</wfw:commentRss><description>&lt;p&gt;I figured out the problem...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;in the web.config file there was this code: &lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;authentication mode=&amp;quot;Forms&amp;quot;&amp;gt;
       &amp;lt;forms name=&amp;quot;appCookie&amp;quot; loginUrl=&amp;quot;Login.aspx&amp;quot; path=&amp;quot;/admin&amp;quot;
          cookieless=&amp;quot;UseCookies&amp;quot; /&amp;gt;
    &amp;lt;/authentication&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; All I had to do is to delete admin from path...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks anyways...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can not login and there is no error message!</title><link>http://forums.asp.net/thread/3274235.aspx</link><pubDate>Sat, 04 Jul 2009 04:40:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274235</guid><dc:creator>Bobby-Z</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274235.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274235</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Have you tried deleting the user and recreating it?&lt;/p&gt;</description></item><item><title>Re: Can not login and there is no error message!</title><link>http://forums.asp.net/thread/3274225.aspx</link><pubDate>Sat, 04 Jul 2009 04:30:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274225</guid><dc:creator>melih</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274225.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274225</wfw:commentRss><description>&lt;p&gt;Thanks alot for quick reply.&lt;/p&gt;&lt;p&gt;I tried your first code on my default.aspx page. After I redirected from login.aspx I see &amp;quot;You Are Not logged in!&amp;quot;&lt;/p&gt;&lt;p&gt;But this is really strange. When I put the wrong password on login.aspx page it gives me error. When I do everything right it does not tell me anything and it does not log me in!!!&lt;/p&gt;&lt;p&gt;I do not think there is a db connection problem. There must be something else...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Can not login and there is no error message!</title><link>http://forums.asp.net/thread/3274165.aspx</link><pubDate>Sat, 04 Jul 2009 03:15:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274165</guid><dc:creator>Bobby-Z</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274165.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274165</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You do have the log-in control I am assuming on the page? I know it is a dumb question.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now also do you have a LoginView Control? a LoginStatus Control and a LoginName Control &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to have it set up something like this&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;&lt;pre class="xhtml" name="code"&gt;&amp;lt;asp:LogInView runat=&amp;quot;server&amp;quot; id=LoginView1&amp;quot;&amp;gt;
&amp;lt;anonymousTemplate&amp;gt;
     You Are Not logged in! 
&amp;lt;/anonymousTemplate&amp;gt;
&amp;lt;LoggedinTemplate&amp;gt;
               &amp;lt;asp:LoginName ID=&amp;quot;LoginName&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
               &amp;lt;asp:LoginStatus ID=&amp;quot;LoginStatus&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
&amp;lt;/LoggedinTemplate&amp;gt;
&amp;lt;/asp:LogInView&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;Or you can display based upon roles&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;&amp;lt;asp:LogInView runat=&amp;quot;server&amp;quot; id=LoginView1&amp;quot;&amp;gt;
&amp;lt;anonymousTemplate&amp;gt;
     You Are Not logged in! 
&amp;lt;/anonymousTemplate&amp;gt;
&amp;lt;RoleGroups&amp;gt;
     &amp;lt;RoleGroup Roles=&amp;quot;Role1&amp;quot; &amp;gt;
          &amp;lt;contenttemplate&amp;gt;  
               &amp;lt;asp:LoginName ID=&amp;quot;LoginName&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
               &amp;lt;asp:LoginStatus ID=&amp;quot;LoginStatus&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
               You are in Role 1
          &amp;lt;/contenttemplate&amp;gt;
     &amp;lt;/RoleGroup&amp;gt;
     &amp;lt;RoleGroup Roles=&amp;quot;Role2&amp;quot; &amp;gt;
          &amp;lt;contenttemplate&amp;gt;  
               &amp;lt;asp:LoginName ID=&amp;quot;LoginName&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
               &amp;lt;asp:LoginStatus ID=&amp;quot;LoginStatus&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;
               You are in Role 2
          &amp;lt;/contenttemplate&amp;gt;
     &amp;lt;/RoleGroup&amp;gt;
&amp;lt;/RoleGroups&amp;gt;
&amp;lt;/asp:LogInView&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;If you do this and it still does not log you in then there is something wrong with the database connection&lt;/p&gt;
&lt;p&gt;I am writing this to verify that you have all of the correct items in place correctly to see if you are logged in.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Can not login and there is no error message!</title><link>http://forums.asp.net/thread/3274104.aspx</link><pubDate>Sat, 04 Jul 2009 00:10:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274104</guid><dc:creator>melih</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274104.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=3274104</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I have just set up membership and role providers for my asp.net site.&lt;/p&gt;&lt;p&gt;ASP.NET configuration tool is working fine. I can create users, roles and access rules. However my login page does not login.&lt;/p&gt;&lt;p&gt;it does redirect me to the page I clicked login link when I hit login button but I am not really logged in. Login status control still shows &amp;quot;login&amp;quot; and LoginName control shows nothing. When I try to enter wrong password it warns me about it but no further luck...&lt;/p&gt;&lt;p&gt;Any idea how to troubleshoot this?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>