Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2007, 06:25 PM
Authorized User
 
Join Date: Mar 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JoinTTT
Default WebShop: problem of retriewing password via e-mail

I try to test to get password my account password by email. But I got the error below.
Does it sense for you? Do you know Why I got this error.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: Varolan bir baðlantý uzaktaki bir ana makine tarafýndan zorla kapatýldý

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SocketException (0x2746): Varolan bir baðlantý uzaktaki bir ana makine tarafýndan zorla kapatýldý]
   System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +1018123
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +119

[IOException: Unable to read data from the transport connection: Varolan bir baðlantý uzaktaki bir ana makine tarafýndan zorla kapatýldý.]
   System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +267
   System.Net.DelegatedStream.Read(Byte[] buffer, Int32 offset, Int32 count) +41
   System.Net.BufferedReadStream.Read(Byte[] buffer, Int32 offset, Int32 count) +96
   System.Net.Mail.SmtpReplyReaderFactory.ReadLines(S mtpReplyReader caller, Boolean oneLine) +280
   System.Net.Mail.SmtpReplyReaderFactory.ReadLine(Sm tpReplyReader caller) +26
   System.Net.Mail.SmtpReplyReader.ReadLine() +13
   System.Net.Mail.SmtpConnection.GetConnection(Strin g host, Int32 port) +802
   System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
   System.Net.Mail.SmtpClient.GetConnection() +42
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1485

[SmtpException: Failure sending mail.]
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2074
   System.Web.UI.WebControls.LoginUtil.SendPasswordMa il(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner) +341
   System.Web.UI.WebControls.PasswordRecovery.Attempt SendPasswordQuestionView() +653
   System.Web.UI.WebControls.PasswordRecovery.Attempt SendPassword() +66
   System.Web.UI.WebControls.PasswordRecovery.OnBubbl eEvent(Object source, EventArgs e) +101
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +115
   System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +163
   System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102




 
Old April 7th, 2007, 03:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's a bit hard for me to read the error message as I can't translate it. However, my guess is that you forgot to configure the mail server in the web.config.

At the end of the config file, add something like this:

  <system.net>
    <mailSettings>
      <smtp deliveryMethod="Network">
        <network host="[email protected]" port="25" />
      </smtp>
    </mailSettings>
  </system.net>
</configuration>

Make sure you replace [email protected] with the name of the mail server of your provider. If it requires authentication, you can also add a user name and password.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i mail the password to the user? ayem Visual Studio 2008 3 August 13th, 2008 06:52 AM
Administrator Password for Webshop mcarol44 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 October 11th, 2007 05:02 PM
Webshop Administrator password mcarol44 ASP.NET 2.0 Professional 1 October 11th, 2007 04:17 PM
WebShop : problem of creating new user JoinTTT BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 April 6th, 2007 06:22 PM
problem with the password mpkrishna Classic ASP Basics 0 September 4th, 2003 02:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.