Developer forum

Forum » Development » Application error in Newsletter(Extend'd)

Application error in Newsletter(Extend'd)


Reply
 

Server Error in '/' Application.






A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 81.95.253.34:80




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.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 81.95.253.34:80







Source Error:



























Line 232:								Response.Write("



 



" & Translate.Translate("Total") & "




" & Translate.Translate("%% modtagere", "%%", intNumberOfLines.ToString) & "




" & Translate.Translate("Filstørrelse pr. email") & " " & Dynamicweb.Admin.NewsletterExtended_Preview_Eml.GetEMLSize(NewsletterID) & " Kb
" & Translate.Translate("Størrelsen på forsendelsen") & " " & Math.Round((Dynamicweb.Admin.NewsletterExtended_Preview_Eml.GetEMLSize(NewsletterID) * intNumberOfLines) / 1024,2) & " Mb







Source File: E:\Dynamicweb.net\Application\Admin\module\NewsletterExtended\NewsletterExtended_Letter_Body_Send.aspx    Line: 234







Stack Trace:















[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 81.95.253.34:80]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1073657
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +217

[WebException: Unable to connect to the remote server]
aspNetEmail.EmailMessage.ᑑ(String , Exception ) +455
aspNetEmail.EmailMessage.AppendBodyFromUrl(String url, Boolean followRedirects, Boolean setUrlContentBase, Boolean setHtmlBaseTag, MailEncoding contentTransferEncoding, Boolean autoEmbedImages, EmbedImageOption embedImageOption) +414
aspNetEmail.EmailMessage.AppendBodyFromUrl(String url, Boolean followRedirects) +47
Dynamicweb.Admin.NewsletterExtended.GetPageBasedHTML(String strLink, String strCharset) +123
Dynamicweb.Admin.NewsletterExtended_Preview_Eml.GetEMLSize(String strNewsletterID) +544
ASP.admin_module_newsletterextended_newsletterextended_letter_body_send_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\Dynamicweb.net\Application\Admin\module\NewsletterExtended\NewsletterExtended_Letter_Body_Send.aspx:234
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558

















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

 




 




 




 




Would an update of Dynamicweb fix this?


Replies

 
Nicolai Høeg Pedersen
Reply

It is a DNS related issue.


 


You are trying to create a page based newsletter for a domain like www.some.dk/Default.aspx?ID=12 - on the server, the newsletter tries to download the page but gets an external IP address which can not be resolved.


 


Solution is to add www.some.dk 127.0.0.1 to the hosts file of the server. If hosted here, request support to do it.

 
Reply

Hey Nicolai, i add'd it in the host file , now i get the following error, seems like theres still problems with finding the page?




  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 server returned an error: (404) Not Found.



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 server returned an error: (404) Not Found.]
aspNetEmail.EmailMessage.ᑑ(String , Exception ) +455
aspNetEmail.EmailMessage.AppendBodyFromUrl(String url, Boolean followRedirects, Boolean setUrlContentBase, Boolean setHtmlBaseTag, MailEncoding contentTransferEncoding, Boolean autoEmbedImages, EmbedImageOption embedImageOption) +414
aspNetEmail.EmailMessage.AppendBodyFromUrl(String url, Boolean followRedirects) +47
Dynamicweb.Admin.NewsletterExtended.GetPageBasedHTML(String strLink, String strCharset) +123
Dynamicweb.Admin.NewsletterExtended.ReplaceTags(String& NewsletterContent, String& NewsletterContentText, DataRow& rowNewsletterExtended, IDataReader& drRecipient, String& CategoryID, String& NewsletterStylesheetID, String& bgColor, IDataReader& drAccess) +862
Dynamicweb.Admin.NewsletterExtended_Preview.Page_Load(Object sender, EventArgs e) +710
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436





Server Error in '/' Application.


The remote server returned an error: (404) Not Found.


 




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

 
Nicolai Høeg Pedersen
Reply

Well yes. 404 means that the page you are trying to send does not exist.


 


Try the URL in the browser on the server/machine where this solution is installed. Maybe a hostheader thing in IIS or listening IP?

 
Reply

thxs for the heads up, i looked in the IIS and the domain was only accepted threw the external IP and not the internal so the server got Bad request from the IIS instead of the page, fixed now - again thanks :)

 

You must be logged in to post in the forum