Hi all,
I'm working on a web site and I would like to use the VS login controls. The
problem I'm having is that when I create a new user all works fine. The user
gets added to the database and is logged in to the web site. the problem is
when you leave the web site you can not login again. I get a message " Your
login attempt was not successful. Please try again.".
I have a form where I have added the LogIn, LoginStatus, LoginName, and
CreateUserWizar d. I'm not using the SQL express database but a SQL 2000
database.
I have checked the database and the user info is getting added to the table
aspnet_users table. below is my web.config file.
Any ideas on why a user can not log in would greatly help me out.
Thanks
Kirk Groome
<?xml version="1.0"?>
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings/>
<connectionStri ngs>
<remove name="LocalSqlS erver"/>
<add name="LocalSqlS erver" connectionStrin g="Data
Source=mssql9.X XXX.com;Initial Catalog=MicroWe _vs1;Persist Security
Info=True;User ID=MicroWe_kirk 1;Password=XXXX XX"
providerName="S ystem.Data.SqlC lient"/>
</connectionStrin gs>
<system.web>
<roleManager enabled="true"/>
<compilation debug="true" strict="false" explicit="true"/>
<pages>
<namespaces>
<clear/>
<add namespace="Syst em"/>
<add namespace="Syst em.Collections"/>
<add namespace="Syst em.Collections. Specialized"/>
<add namespace="Syst em.Configuratio n"/>
<add namespace="Syst em.Text"/>
<add namespace="Syst em.Text.Regular Expressions"/>
<add namespace="Syst em.Web"/>
<add namespace="Syst em.Web.Caching"/>
<add namespace="Syst em.Web.SessionS tate"/>
<add namespace="Syst em.Web.Security "/>
<add namespace="Syst em.Web.Profile"/>
<add namespace="Syst em.Web.UI"/>
<add namespace="Syst em.Web.UI.WebCo ntrols"/>
<add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/>
<add namespace="Syst em.Web.UI.HtmlC ontrols"/>
</namespaces>
</pages>
<membership>
<providers>
<remove name="AspNetSql MembershipProvi der"/>
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="LocalSql Server" applicationName ="/"
enablePasswordR eset="true" enablePasswordR etrieval="false "
maxInvalidPassw ordAttempts="10 " minRequiredPass wordLength="1"
minRequiredNona lphanumericChar acters="0" passwordAttempt Window="10"
passwordStrengt hRegularExpress ion="" passwordFormat= "Hashed"
requiresQuestio nAndAnswer="tru e" requiresUniqueE mail="true"/>
</providers>
</membership>
<!--
The <authentication > section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Forms"/>
<!--
The <customErrors > section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm" />
<error statusCode="404 " redirect="FileN otFound.htm" />
</customErrors>
-->
</system.web>
</configuration> 1 1540
Kirk,
This might sound silly but are you logging in with an email address instead
of the user name?
These are some other troubleshooting tests:
Can you register the same user name twice?
Can you register the same email twice?
I visually examined your web.config and its almost identical to my sqlserver
setup.
I don't have a pages sections I do have a assemblies section, I do have a
stronger password.
DWS
DWS
"Kirk Groome" wrote: Hi all,
I'm working on a web site and I would like to use the VS login controls. The problem I'm having is that when I create a new user all works fine. The user gets added to the database and is logged in to the web site. the problem is when you leave the web site you can not login again. I get a message " Your login attempt was not successful. Please try again.". I have a form where I have added the LogIn, LoginStatus, LoginName, and CreateUserWizar d. I'm not using the SQL express database but a SQL 2000 database. I have checked the database and the user info is getting added to the table aspnet_users table. below is my web.config file. Any ideas on why a user can not log in would greatly help me out.
Thanks Kirk Groome
<?xml version="1.0"?> <configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0"> <appSettings/> <connectionStri ngs> <remove name="LocalSqlS erver"/> <add name="LocalSqlS erver" connectionStrin g="Data Source=mssql9.X XXX.com;Initial Catalog=MicroWe _vs1;Persist Security Info=True;User ID=MicroWe_kirk 1;Password=XXXX XX" providerName="S ystem.Data.SqlC lient"/> </connectionStrin gs> <system.web> <roleManager enabled="true"/> <compilation debug="true" strict="false" explicit="true"/> <pages> <namespaces> <clear/> <add namespace="Syst em"/> <add namespace="Syst em.Collections"/> <add namespace="Syst em.Collections. Specialized"/> <add namespace="Syst em.Configuratio n"/> <add namespace="Syst em.Text"/> <add namespace="Syst em.Text.Regular Expressions"/> <add namespace="Syst em.Web"/> <add namespace="Syst em.Web.Caching"/> <add namespace="Syst em.Web.SessionS tate"/> <add namespace="Syst em.Web.Security "/> <add namespace="Syst em.Web.Profile"/> <add namespace="Syst em.Web.UI"/> <add namespace="Syst em.Web.UI.WebCo ntrols"/> <add namespace="Syst em.Web.UI.WebCo ntrols.WebParts "/> <add namespace="Syst em.Web.UI.HtmlC ontrols"/> </namespaces> </pages> <membership> <providers> <remove name="AspNetSql MembershipProvi der"/> <add name="AspNetSql MembershipProvi der" type="System.We b.Security.SqlM embershipProvid er, System.Web, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" connectionStrin gName="LocalSql Server" applicationName ="/" enablePasswordR eset="true" enablePasswordR etrieval="false " maxInvalidPassw ordAttempts="10 " minRequiredPass wordLength="1" minRequiredNona lphanumericChar acters="0" passwordAttempt Window="10" passwordStrengt hRegularExpress ion="" passwordFormat= "Hashed" requiresQuestio nAndAnswer="tru e" requiresUniqueE mail="true"/> </providers> </membership> <!-- The <authentication > section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authenticati on mode="Forms"/> <!-- The <customErrors > section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnl y" defaultRedirect ="GenericErrorP age.htm"> <error statusCode="403 " redirect="NoAcc ess.htm" /> <error statusCode="404 " redirect="FileN otFound.htm" /> </customErrors> --> </system.web> </configuration> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Joe |
last post by:
Hi,
I have a login page. Where user enters an email and password. Then I;m
checking if user account is active or not. Before a user can login, he needs
to activate his account. If the account is active then Active field is set
to yes (1) otherwise to no (0).
If the user’s account is active then I check whether this is user’s first
visit or not. If it is user’s first visit then I redirect user to
‘newuser.asp’ page...
|
by: Martin |
last post by:
Hi,
Transferred a working ASP.Net app and database to a new machine and domain.
The app should be running as the local aspnet account (<processModel
userName="machine" password="AutoGenerate" ..... /> in machine.config)
The connection string is "packet size=4096;Integrated Security=SSPI;data
source=(local); persist security info=False;initial catalog=mydb"
|
by: Gleep |
last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this.
The goal I don't want clients to give out their usernames and passwords to friends, since the site
relies on subscrption fees.
Sessions ID's are matched between the browser and the server. So a users can login with same
username and password and those sessions are tracked individually.
Some suggest create table fields with the session ID...
|
by: xcelmind |
last post by:
Hello Dev. Guru,
I want to at this time introduce myself. I am Stanley Ojadovwa by name.
I’m a freelance and a newbie in web application development. I’m
currently using ASP as my application server technology with Microsoft
access as my database source.
Just as I have introduced myself, I’m a newbie in web application
development. I’m currently working on an application that will allow
|
by: Kat |
last post by:
Every time I attempt to run a localhost website, it asks me for a login, as
if I am not a user on the local machine. I am a user on the local machine,
I am an admin on the local machine. I am not on a network. I have windows
xp professional installed, iis is installed and until recently everything
worked fine. I am using windows authentication, and have changed everything
I can think of to full control, even the Everyone, the vs...
| |
by: dylanhughes |
last post by:
I'm looking for an example of a login system that has multiple fields
(2 to be exact) + password. e.g username, company name and password,
the user, company and password are checked against a mysql database. I
have it working with just the username field but I'm confused on how
to go about adding another field. I'm pretty new to PHP so don't beat
me up too much for this example code, I borrowed and hacked it
together in a very short period...
|
by: shankhar |
last post by:
Hi all,
In my project there is a requirement. If a user logged in at a time
since he/she logged out others are not allowed to loggin using the
same user name. That is to avoid multiple logins using a account. How
to do this?
I had got a idea and implemented.
1. When a user logs in storing the username, ip, login time to db.
|
by: kpg* |
last post by:
Hi all,
asp.net 2.0
I'm using the login control with no frills to authenticate
users.
I want to add a value to the user's profile when the user
successfully logs in, but I want to do this only once,
and I want to do it each time the user logs in (because
|
by: Brett |
last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The
startup page contains just a login control, and the site works well on an
IIS 6 web server. I am now setting the site up on the production web
server, which runs Windows 2008 Server and IIS 7. The login page comes up,
but when I try to log in, I get the error, "Login failed for user '(null)'.
Reason: Not associated with a trusted SQL Server connection." For debugging...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |