Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 June 29th, 2006, 06:53 PM
Authorized User
 
Join Date: Jul 2003
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Tremmorkeep Send a message via MSN to Tremmorkeep Send a message via Yahoo to Tremmorkeep
Default remote name could not be resolved: '(localhost)'

basically, this bit in web.config is not happy...not sure what the dealio is with this...any help?

<system.net>
    <mailSettings>
      <smtp deliveryMethod="Network" from="Staff@UtahExtras.Com">
        <network defaultCredentials="true" host="(localhost)" port="25" />
      </smtp>
    </mailSettings>
  </system.net>



The whole stack is this...which means little to me:
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.WebException: The remote name could not be resolved: '(localhost)'

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:


[WebException: The remote name could not be resolved: '(localhost)']
   System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +391
   System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +288
   System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +46
   System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +429
   System.Net.Mail.SmtpConnection.GetConnection(Strin g host, Int32 port) +333
   System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +287
   System.Net.Mail.SmtpClient.GetConnection() +56
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1679

[SmtpException: Failure sending mail.]
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2246
   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) +482
   System.Web.UI.WebControls.CreateUserWizard.Attempt CreateUser() +642
   System.Web.UI.WebControls.CreateUserWizard.OnNextB uttonClick(WizardNavigationEventArgs e) +200
   System.Web.UI.WebControls.Wizard.OnBubbleEvent(Obj ect source, EventArgs e) +651
   System.Web.UI.WebControls.CreateUserWizard.OnBubbl eEvent(Object source, EventArgs e) +158
   System.Web.UI.WebControls.WizardChildTable.OnBubbl eEvent(Object source, EventArgs args) +39
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
   System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +107
   System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +178
   System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +31
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +32
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +72
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840

 
Old June 29th, 2006, 08:57 PM
Authorized User
 
Join Date: May 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

It looks like the dealio is that you don't have SMTP server set up on your computer/server. The "network" delivery method never worked properly for me, I switched to "PickupDirectoryFromIis" and everything worked great.

 
Old June 30th, 2006, 07:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Or maybe you need to take the parans off of the "(localhost)". Sql Server can accept parans, but most programs don't like them.





Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost ongmymap ASP.NET 3.5 Basics 5 November 8th, 2008 02:09 PM
"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
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM





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