Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Problem with Membership login

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BJ - 06 Jul 2007 20:47 GMT
I am creating a site that contains a user login.  I pulled down the
"How do I ..." video and sample code from asp.net on Membership and
Securing a website.  When I am in VS2005 and run the application in
Debug mode, I can login to the site.  When I access the site from out
site of VS (http://localhost/mysite/default.aspx), the application
looks at my network ID (jxcont) instead the application user ID I
picked for the site (jxc).  If I specify port 2575 in my URL, I am
able to login.

It looks as if 2575 is directing the application to look at ASPDB.MDF.

IIS is setup with Windows Authentication without an Anonymous User.

I added the code below so the user password would require a non-
alphanumeric value.

<system.web>
           <membership>
                 <providers>
                       <remove name="AspNetSqlMembershipProvider"/>
                       <add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer" enablePasswordRetrieval="true"
enablePasswordReset="true" requiresQuestionAndAnswer="false"
applicationName="/" requiresUniqueEmail="true"
passwordFormat="Encrypted" maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10" passwordStrengthRegularExpression=""
minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0"/

                 </providers>
           </membership>

               :
               :
</system.web>

How do I avoid is problem?
Cowboy (Gregory A. Beamer) - 07 Jul 2007 13:43 GMT
What does the authentication and authorization section look like? If you
have it set to Windows Authentication instead of forms, there is your
problem.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************

>I am creating a site that contains a user login.  I pulled down the
> "How do I ..." video and sample code from asp.net on Membership and
[quoted text clipped - 34 lines]
>
> How do I avoid is problem?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.