473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

other problem with PsswordRecovery

Dan
Hi,
I define a Login control with PasswordRecovery and a CreateUserWizard.
I use the default ASPNETDB.mdf database.

I can create an user (let's say 'dan' and i can log in.

The problem is: when i try the PasswordRecovery with username 'dan' with the
right question answered, but there is an error (smtp provider not found
because of wrong name or because of broken internet connection), i never can
log in back with 'dan'. But if i try to create 'dan' again, i get the
message: "username already exists".

I tried this several times on independant applicatiod ns with different
aspnetdb.mdf, each time with the same problem.
Any explanation for that weird behaviuor?
Thanks
Dan
Feb 12 '07 #1
4 1174
Hi Dan,

The reason you can't log back in w/ 'Dan' is that the membership
provider has already reset your password and has attempted to send the
email with your new password. But, because SMTP is not correctly set
up, it couldn't complete the process. Unfortunately, the whole thing
is not transactional, so it resets your password regardless of what
happens next...

You should have something in your web.config like the following:

<? xml version="1.0"?>
<configuration>
<system.net>
<mailSettings>
<smtp from="de**********@yourdomain.com">
<network host="smtp.yourdomain.com" port="25"
userName="yourUserName" password="yourPassword"/>
</smtp>
</mailSettings>
</system.net>
</configuration>

Hope this helps!
Greg

On Feb 12, 4:14 pm, "Dan" <d...@d.dwrote:
Hi,

I define a Login control with PasswordRecovery and a CreateUserWizard.
I use the default ASPNETDB.mdf database.

I can create an user (let's say 'dan' and i can log in.

The problem is: when i try the PasswordRecovery with username 'dan' with the
right question answered, but there is an error (smtp provider not found
because of wrong name or because of broken internet connection), i never can
log in back with 'dan'. But if i try to create 'dan' again, i get the
message: "username already exists".

I tried this several times on independant applicatiod ns with different
aspnetdb.mdf, each time with the same problem.

Any explanation for that weird behaviuor?
Thanks
Dan

Feb 13 '07 #2
Dan
Thanks for replying, Greg.
One more question about your explanation.
What is userName? Is that my own username for the application stored in the
database or is that my username for connecting to my internet-provider?
And what's the purpose of "userName="yourUserName" password="yourPassword"
in web.config?
So far, i haven't used those parameters.
Thanks
"Greg9Strat" <gr********@gmail.comschreef in bericht
news:11**********************@a75g2000cwd.googlegr oups.com...
Hi Dan,

The reason you can't log back in w/ 'Dan' is that the membership
provider has already reset your password and has attempted to send the
email with your new password. But, because SMTP is not correctly set
up, it couldn't complete the process. Unfortunately, the whole thing
is not transactional, so it resets your password regardless of what
happens next...

You should have something in your web.config like the following:

<? xml version="1.0"?>
<configuration>
<system.net>
<mailSettings>
<smtp from="de**********@yourdomain.com">
<network host="smtp.yourdomain.com" port="25"
userName="yourUserName" password="yourPassword"/>
</smtp>
</mailSettings>
</system.net>
</configuration>

Hope this helps!
Greg

On Feb 12, 4:14 pm, "Dan" <d...@d.dwrote:
>Hi,

I define a Login control with PasswordRecovery and a CreateUserWizard.
I use the default ASPNETDB.mdf database.

I can create an user (let's say 'dan' and i can log in.

The problem is: when i try the PasswordRecovery with username 'dan' with
the
right question answered, but there is an error (smtp provider not found
because of wrong name or because of broken internet connection), i never
can
log in back with 'dan'. But if i try to create 'dan' again, i get the
message: "username already exists".

I tried this several times on independant applicatiod ns with different
aspnetdb.mdf, each time with the same problem.

Any explanation for that weird behaviuor?
Thanks
Dan


Feb 13 '07 #3
these are the credentials to connect to the SMTP server...
-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
Thanks for replying, Greg.
One more question about your explanation.
What is userName? Is that my own username for the application stored
in the
database or is that my username for connecting to my
internet-provider?
And what's the purpose of "userName="yourUserName"
password="yourPassword"
in web.config?
So far, i haven't used those parameters.
Thanks
"Greg9Strat" <gr********@gmail.comschreef in bericht
news:11**********************@a75g2000cwd.googlegr oups.com...
>Hi Dan,

The reason you can't log back in w/ 'Dan' is that the membership
provider has already reset your password and has attempted to send
the email with your new password. But, because SMTP is not correctly
set up, it couldn't complete the process. Unfortunately, the whole
thing is not transactional, so it resets your password regardless of
what happens next...

You should have something in your web.config like the following:

<? xml version="1.0"?>
<configuration>
<system.net>
<mailSettings>
<smtp from="de**********@yourdomain.com">
<network host="smtp.yourdomain.com" port="25"
userName="yourUserName" password="yourPassword"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
Hope this helps!
Greg
On Feb 12, 4:14 pm, "Dan" <d...@d.dwrote:
>>Hi,

I define a Login control with PasswordRecovery and a
CreateUserWizard. I use the default ASPNETDB.mdf database.

I can create an user (let's say 'dan' and i can log in.

The problem is: when i try the PasswordRecovery with username 'dan'
with
the
right question answered, but there is an error (smtp provider not
found
because of wrong name or because of broken internet connection), i
never
can
log in back with 'dan'. But if i try to create 'dan' again, i get
the
message: "username already exists".
I tried this several times on independant applicatiod ns with
different aspnetdb.mdf, each time with the same problem.

Any explanation for that weird behaviuor?
Thanks
Dan

Feb 13 '07 #4
Dan
thanks, i thought so, but my username / pw are embedded in my adsl
connection.

"Dominick Baier" <dbaier@pleasepleasenospam_leastprivilege.comschre ef in
bericht news:51*************************@news.microsoft.co m...
these are the credentials to connect to the SMTP server...
-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications
(http://www.microsoft.com/mspress/books/9989.asp)
>Thanks for replying, Greg.
One more question about your explanation.
What is userName? Is that my own username for the application stored
in the
database or is that my username for connecting to my
internet-provider?
And what's the purpose of "userName="yourUserName"
password="yourPassword"
in web.config?
So far, i haven't used those parameters.
Thanks
"Greg9Strat" <gr********@gmail.comschreef in bericht
news:11**********************@a75g2000cwd.googleg roups.com...
>>Hi Dan,

The reason you can't log back in w/ 'Dan' is that the membership
provider has already reset your password and has attempted to send
the email with your new password. But, because SMTP is not correctly
set up, it couldn't complete the process. Unfortunately, the whole
thing is not transactional, so it resets your password regardless of
what happens next...

You should have something in your web.config like the following:

<? xml version="1.0"?>
<configuration>
<system.net>
<mailSettings>
<smtp from="de**********@yourdomain.com">
<network host="smtp.yourdomain.com" port="25"
userName="yourUserName" password="yourPassword"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
Hope this helps!
Greg
On Feb 12, 4:14 pm, "Dan" <d...@d.dwrote:

Hi,

I define a Login control with PasswordRecovery and a
CreateUserWizard. I use the default ASPNETDB.mdf database.

I can create an user (let's say 'dan' and i can log in.

The problem is: when i try the PasswordRecovery with username 'dan'
with
the
right question answered, but there is an error (smtp provider not
found
because of wrong name or because of broken internet connection), i
never
can
log in back with 'dan'. But if i try to create 'dan' again, i get
the
message: "username already exists".
I tried this several times on independant applicatiod ns with
different aspnetdb.mdf, each time with the same problem.

Any explanation for that weird behaviuor?
Thanks
Dan


Feb 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dan glenn | last post by:
(PHP 4.3.4) THIS IS DRIVING ME NUTS! I have a website where I offer members their own bit of webspace to use and am coding a very simple 'filemanager' that allows a user to upload, delete, and...
7
by: Jonathan Fine | last post by:
Giudo has suggested adding optional static typing to Python. (I hope suggested is the correct word.) http://www.artima.com/weblogs/viewpost.jsp?thread=85551 An example of the syntax he proposes...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
0
by: Sarah Akers | last post by:
GgF ----gL5cJ72EqiGIQ0SK65Rz Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <head> <style type=3D"text/css">.eyebrow { FONT-WEIGHT: bold; FONT-SIZE: 10px; TE=
8
by: Vanga Sasidhar | last post by:
I have four computers. One computer - Win XP Two computers - Win 98 One computer - Win ME I designed some pages in my computer having Win XP operating system. I installed dot net...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
9
by: bonk | last post by:
Does anyone have a simple example on how to prohibit that any thread other than the current thread modifies a certain object (a collection) while we are in a certain section of the code? In other...
28
by: Larax | last post by:
Best explanation of my question will be an example, look below at this simple function: function SetEventHandler(element) { // some operations on element element.onclick = function(event) {
10
by: strife | last post by:
Hey everyone, I was making a program for a class, and I ran into a problem that is driving me crazy. I first suspected Vista, and since I am not home I cannot verify if it just my Vista...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.