Authentication is required for relay - error

keymaker

Member
Joined
Aug 13, 2014
Messages
12
Programming Experience
Beginner
Hello
When I complete my forgot.aspx field here http://www.dimadayoub.net/forgot.aspx I get the following error:

Mailbox unavailable. The server response was: Authentication is required for relay

Stack Trace:

[SmtpException: Mailbox unavailable. The server response was: Authentication is required for relay]
System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) +1904286
System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) +46
System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) +88
System.Net.Mail.SmtpClient.Send(MailMessage message) +1856
forgot.btnForgot_Click(Object sender, EventArgs e) +1355
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9815206
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +204
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639

I know that this error usually relates to SMTP credentials (email and password) and the name of the SMTP host, but I am assured by my Web hosting service that I have them all correct. The forgot.aspx page should send a link to the user which, when clicked on, should launch a new page. That new page
is called 'newPassword' which I have in my code as:

VB.NET:
builder.Path = VirtualPathUtility.ToAbsolute("~/newPassword.aspx")

Since forgot.aspx and newPassword.aspx are in the same Solution Explorer (neither of them are in their own folders), do I need to have this:

VB.NET:
builder.Path = VirtualPathUtility.ToAbsolute("newPassword.aspx")

Thanks

Steve
 
That error message indicates that you are sending an email from a domain that is different to the SMTP server you're using to send it without providing credentials for that server. Maybe show us the code relevant to that.
 
Thanks for your reply.


The domain is hosted by the same Web hosting service that provides the SMTP server.


I use the same SMTP credentials (SMTP host, username, password) for this particular form as I do for the contact form on another web page (same hosting service): http://www.dimadayoub.net/frina/Contact.aspx (a test site at the moment) and that form gets sent without a problem.


The SMTP I have for www.dimadayoub.net/forgot.aspx (less the HTML) is:

VB.NET:
If recordExists Then


            Dim builder As New UriBuilder(Request.Url)
            builder.Path = VirtualPathUtility.ToAbsolute("~/newPassword.aspx")
            builder.Query = "uniqueCode=" & HttpUtility.UrlEncode(uniqueCode)


            Dim link As String = builder.Uri.ToString()
            Dim myMessage As New MailMessage
            Dim Smtpserver As New SmtpClient
            Dim strEmailValue As String = Request.Form("strEmailTextBox") 'strEmailValue = user email; strEmailTextBox = ID of email field


            'Create the mail message


            myMessage.From = New MailAddress("info@mysite.net") 'Webmaster's email
            myMessage.To.Add(New MailAddress(strEmailValue)) 'user's email
            myMessage.Subject = ("Password Reset Request")
            
            myMessage.Body = ""
            myMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
            myMessage.IsBodyHtml = True
            myMessage.Priority = MailPriority.Normal


            Smtpserver.DeliveryMethod = SmtpDeliveryMethod.Network
            Smtpserver.Host = ("mail.server")
            Smtpserver.Port = 25
            Smtpserver.EnableSsl = False
            Dim basicAuthenticationInfo As New System.Net.NetworkCredential("info@mysite.net", "SMTP_password")
            Smtpserver.Credentials = basicAuthenticationInfo
            Smtpserver.Send(myMessage)


            myMessage.Dispose()
            myMessage = Nothing
            Smtpserver = Nothing

Can you see anything there, please, that is clearly a mistake? If not, I suppose the real error must lie elsewhere.

Thanks again.
 
Hello

Further to my first post, when I click on 'Start debugging', I see the following:

SMTP_Exception.jpg

Which option would I choose there, please? This is in my Output pane:

And this in the 'Output' pane.

'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: Domain 2): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\9b80a258\3565d7c9_0e50d101\AspNet.ScriptManager.jQuery.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\13b8d377\844f02ca_0e50d101\AspNet.ScriptManager.jQuery.UI.Combined.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\ba1b9830\819173ce_0e50d101\DotNetOpenAuth.AspNet.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\89bb1f8c\2cb16fcd_0e50d101\DotNetOpenAuth.Core.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\49810b5c\ecd3d3cd_0e50d101\DotNetOpenAuth.OAuth.Consumer.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\e6e9a8e3\dd24a4cd_0e50d101\DotNetOpenAuth.OAuth.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\e6096d51\10aa0ace_0e50d101\DotNetOpenAuth.OpenId.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\9a0bf59b\41a748ce_0e50d101\DotNetOpenAuth.OpenId.RelyingParty.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\d289b8c5\49ea3dca_0e50d101\EntityFramework.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\e9c10493\5a1145ca_0e50d101\EntityFramework.SqlServer.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\12e03645\7a29edce_0e50d101\Microsoft.AspNet.FriendlyUrls.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\cea7d1d6\5105a8ce_0e50d101\Microsoft.AspNet.Membership.OpenAuth.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\assembly\dl3\e30cee9c\e9cda9cc_0e50d101\System.Web.Providers.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Page Inspector\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Data.Services.Design\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Services.Design.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\App_Code.c82zgsy7.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Page Inspector\Microsoft.VisualStudio.Web.PageInspector.Tracing.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\App_global.asax.zuya0h6f.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml.Hosting\v4.0_4.0.0.0__31bf3856ad364e35\System.Xaml.Hosting.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'A_5ecba08e_df2a_4b3d_ba37_4f050bd61443'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\App_Web_orhtwqxs.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\App_Web_m3jevbgc.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Users\Steve\AppData\Local\Temp\Temporary ASP.NET Files\vs\ae8cdfe0\34adb3d7\App_Web_arhzgp1l.dll'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll'. Cannot find or open the PDB file.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\Microsoft\Web Tools\Page Inspector\Microsoft.VisualStudio.Web.PageInspector.HtmlParser.dll'. Cannot find or open the PDB file.
'iexplore.exe' (Script): Loaded 'Script Code (Windows Internet Explorer)'.
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.dll
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/143/ROOT-1-131660956532946266): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'.
The program '[9132] iisexpress.exe' has exited with code 0 (0x0).
The program '[6668] iexplore.exe' has exited with code -1 (0xffffffff).

Thanks again
 
The error message that I got

- Mailbox unavailable. The server response was: Authentication is required for relay

seems to be related to this line of code:

VB.NET:
Smtpserver.Send(myMessage)

However, the following code, in another Web page but the same Web hosting service and SMTP credentials and host name, and which is the same as the code generating my authentication error, does send the Webmaster the form field details:

VB.NET:
Protected Sub SendEmail_Click(sender As Object, e As System.EventArgs)

        Dim myMessage As New MailMessage
        Dim Smtpserver As New SmtpClient


            Dim user_name As String = Request.Form("user_name")
            Dim user_email As String = Request.Form("user_email")
            Dim user_subject As String = Request.Form("user_subject")
            Dim user_message As String = Request.Form("user_message")


            myMessage.From = New MailAddress(user_email) 'User's email
            [COLOR=#333333]myMessage.From = New MailAddress("info@mysite.net") 'Webmaster's email[/COLOR]
           
            myMessage.Subject = user_subject
            myMessage.Body = user_message
            myMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
            myMessage.IsBodyHtml = True
            myMessage.Priority = MailPriority.Normal


            Smtpserver.DeliveryMethod = SmtpDeliveryMethod.Network
            Smtpserver.Host = ("mail.server")
            Smtpserver.Port = 25
            Smtpserver.EnableSsl = False


            [COLOR=#333333]Dim basicAuthenticationInfo As New System.Net.NetworkCredential("info@mysite.net", "SMTP_password")[/COLOR]
            Smtpserver.Credentials = basicAuthenticationInfo
            'Smtpserver.UseDefaultCredentials = False
            Smtpserver.Send(myMessage)


            myMessage.Dispose()
            myMessage = Nothing
            Smtpserver = Nothing
      
    End Sub

That is why I am inclined to think that the real error lies elsewhere.

Thanks again.
 
Back
Top