Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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
  #1 (permalink)  
Old August 4th, 2009, 09:51 PM
Authorized User
 
Join Date: Apr 2006
Location: london, , United Kingdom.
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to akshay144
Thumbs up Error when registering user

Hi All

I am using ASP.NET 3.5 on Windows Vista.

I am tryin to add a new user to the site using the ASP.NET CreateUserWizard.

I believe IIS 7.0 doesn;t come with a SMTP Server so I downloaded one from http://softstack.com/freesmtp.html

My web config looks like this:-
Code:
<system.net>
<mailSettings>
<smtp>
<networkdefaultCredentials="false"host="localhost"port="25"/>
</smtp>
</mailSettings>
</system.net>
The error I am getting is:-

[code]
Server Error in '/Reservation' Application.

Mailbox unavailable. The server response was: Invalid recipient: simonjones@gmail.com

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.Mail.SmtpException: Mailbox unavailable. The server response was: Invalid recipient: simonjones@gmail.com

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:

[SmtpException: Mailbox unavailable. The server response was: Invalid recipient: simonjones@gmail.com] System.Net.Mail.DataStopCommand.CheckResponse(Smtp StatusCode statusCode, String serverResponse) +1052359 System.Net.Mail.DataStopCommand.Send(SmtpConnectio n conn) +38 System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args) +8 System.Net.ClosableStream.Close() +53 System.Net.Mail.MailWriter.Close() +53 System.Net.Mail.SmtpClient.Send(MailMessage message) +1480 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) +367 System.Web.UI.WebControls.CreateUserWizard.Attempt CreateUser() +547 System.Web.UI.WebControls.CreateUserWizard.OnNextB uttonClick(WizardNavigationEventArgs e) +102 System.Web.UI.WebControls.Wizard.OnBubbleEvent(Obj ect source, EventArgs e) +418 System.Web.UI.WebControls.CreateUserWizard.OnBubbl eEvent(Object source, EventArgs e) +161 System.Web.UI.WebControls.WizardChildTable.OnBubbl eEvent(Object source, EventArgs args) +19 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +166 System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074

[\CODE]


Please help me.

Kind Reards,
Akshay
  #2 (permalink)  
Old August 4th, 2009, 11:11 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Since the error returned was:

System.Net.Mail.SmtpException: Mailbox unavailable.

I'm guessing there's no such address at that domain.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
  #3 (permalink)  
Old August 5th, 2009, 08:38 AM
Authorized User
 
Join Date: Apr 2006
Location: london, , United Kingdom.
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
Send a message via MSN to akshay144
Default

Hi Lee

I tried with so many different email addresses, still getting same error.

Regards,
Akshay


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Registering users Glaman BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 March 5th, 2008 07:39 PM
Registering ASCX gbrown ASP.NET 1.0 and 1.1 Professional 1 January 9th, 2007 11:57 AM
Registering a new user hasanali00 BOOK: ASP.NET Website Programming Problem-Design-Solution 4 April 14th, 2005 05:07 AM
Registering DLL's askenkray Classic ASP Components 4 January 27th, 2005 03:05 PM
Registering a new user ssaylanc BOOK: ASP.NET Website Programming Problem-Design-Solution 4 January 9th, 2005 04:34 PM





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