Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 4th, 2012, 04:41 AM
Registered User
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question The remote name could not be resolved smtp.planetwrox.com

HI to All.

When the link "sign up for a new account at planet wrox" is clicked the user is taken to the create user wizard.

The smtp mail server is not configured in the computer, so after completing the wizard the page gives yellow screen of death "The remote name could not be resolved smtp.planetwrox.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.

In case customErrors mode="On" in the web.config file it redirects to the default error page.

Although the user is successfully created and he can log on next time. Obviously this error occurs as the website tries to send an e-mail to the user.

Instead, I want that it should just give a confirmation that the "user successfully created" after pressing the create button and not try to send mail.

How to implement this? I tried finding the setting in web.config and global.asax.

Any help and suggestions will be highly appreciated.

Thanks.

Last edited by sirish_kumar; April 4th, 2012 at 05:12 AM.. Reason: I found the solution
 
Old April 4th, 2012, 05:20 AM
Registered User
 
Join Date: Mar 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solution found: The remote name could not be resolved smtp.planetwrox.com

I found a solution to implement this functionality by modifying the web.config file as under:

<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory" from="Your Name &lt;[email protected]&gt;">
<specifiedPickupDirectory pickupDirectoryLocation="D:\emails"/>
</smtp>
</mailSettings>

inside the system.net settings

This displays the "Complete" step of create user wizard and saves the email in local folder "D:\emails" instead of sending them by smtp.

If any other method kindly let me know.

Thanks.
 
Old April 4th, 2012, 05:36 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Do you want no e-mail at all? Or do you want to work around the issue with the wrong mail server and error message? In the former case, remove the MailDefinition element from the CreateUserWizard. In the latter case, configure an appropriate mail server as discussed on page 308 and further.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
remote name cannot be resolved : www.somesitename.com, Error suresh.maurya ASP.NET 2.0 Professional 2 August 28th, 2009 11:13 AM
"The remote name could not be resolved" teddyk ASP.NET 2.0 Basics 0 October 28th, 2008 12:49 AM
[Resolved] Posting to Remote Site snufse ASP.NET 2.0 Basics 2 March 10th, 2008 12:11 PM
[RESOLVED] Remote Debugging Issue dparsons ASP.NET 1.0 and 1.1 Professional 1 March 19th, 2007 01:19 PM
remote name could not be resolved: '(localhost)' Tremmorkeep BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 30th, 2006 07:57 AM





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