【问题标题】:Unusual error in Clients website客户网站出现异常错误
【发布时间】:2013-08-27 03:52:36
【问题描述】:

我刚刚在我客户的网站上创建了一个帐户(我为他建立的)。我已经对这个网站进行了广泛的测试,但没有发现任何问题 - 2 年前。自从网站发布以来,我已经对其进行了测试,以确保它每个月都能顺利运行。

我刚刚在他的网站上创建了一个新帐户,我收到了这个错误:

Server Error in '/' Application.

Mailbox unavailable. The server response was: <me@myemail.com> No such user here 
  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.SmtpFailedRecipientException: Mailbox unavailable. The server response was: <me@myemail.com> No such user here

Source Error: 



Line 62:                         HttpUtility.UrlEncode(token));
Line 63: 
Line 64:                     WebMail.Send(
Line 65:                         email,
Line 66:                         "Please confirm your Account.",


 Source File:  d:\HostingSpaces\website\website.com.au\wwwroot\Protected\Account\Register.cshtml    Line:  64 

Stack Trace: 



[SmtpFailedRecipientException: Mailbox unavailable. The server response was: <me@myemail.com> No such user here]
   System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) +1229659
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1772
   System.Web.Helpers.WebMail.Send(String to, String subject, String body, String from, String cc, IEnumerable`1 filesToAttach, Boolean isBodyHtml, IEnumerable`1 additionalHeaders, String bcc, String contentEncoding, String headerEncoding, String priority, String replyTo) +686
   ASP._Page_Protected_Account_Register_cshtml.Execute() in d:\HostingSpaces\website\website.com.au\wwwroot\Protected\Account\Register.cshtml:64
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +208
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +68
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +123
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +67
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +121




Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 

什么???下面列出的电子邮件地址是我用来创建帐户的电子邮件地址。收到此错误后,我使用我的所有邮件在线登录该电子邮件帐户 - 它就在那里。所以用户确实存在。那么,为什么在尝试向其发送电子邮件确认时,WebPages 框架会认为该用户不存在?

您在代码中看到的电子邮件变量 - 它的值列​​在异常本身中。

【问题讨论】:

  • 邮箱已满?帐号已停用?
  • @DStanley 也没有。尽管尝试 +1 :)

标签: c# asp.net .net razor


【解决方案1】:

由于某些原因,邮箱可能在几分之一秒内不可用。再次尝试创建帐户,应该没问题。

【讨论】:

  • 不幸的是,这并不能解决客户的问题。我真的不能告诉他们告诉他们的客户“再试一次”。此外,这些例外情况也越来越频繁。
  • @jAsOn 我同意。使用的电子邮件是来自公共电子邮件提供商 (gmail/yahoo) 还是公司的个人帐户?如果 tyhey 来自公司的帐户,则可以从日志中得出一些信息!
  • 感谢您回来。来自公司账户。不知道在哪里可以找到日志
  • 嗯..在您的邮件服务器中查找一些日志或联系您的系统管理员邮件服务器是否关闭了几分之一秒或类似的东西。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-01-14
  • 2012-03-07
  • 1970-01-01
  • 1970-01-01
  • 2023-03-09
  • 2014-05-03
相关资源
最近更新 更多