Problem with Membership login

B

BJ

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?
 
C

Cowboy \(Gregory A. Beamer\)

What does the authentication and authorization section look like? If you
have it set to Windows Authentication instead of forms, there is your
problem.

--
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!
************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top