More in this section

Forums / Developing with Sitefinity / Newsletters broken after upgrade to 3.7

Newsletters broken after upgrade to 3.7

8 posts, 0 answered
  1. Jodie
    Jodie avatar
    59 posts
    Registered:
    09 Oct 2012
    22 Sep 2009
    Link to this post
    Hi All,

    Using SF Standard trial.

    Just recently upgraded 3.6 sf to 3.7 sf, now when I go to the newsletters module I recieve the following error:

     

    Server Error in '/' Application.

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    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.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    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:

    [ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
       System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) +0
       System.Reflection.Assembly.GetTypes() +105
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.CreateInstance(String objTypeName) +53
    
    [ProxyInstantiationException: An error occured while instantiating the proxy type.]
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.CreateInstance(String objTypeName) +256
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +120
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +146
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +294
       Telerik.Notifications.Newsletters.WebControl.Admin.ControlPanel.CreateChildControls() +139
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


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

    *************************************************************************************************
    Any help is appreciated :)

    Cheers

    Jodie
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Sep 2009
    Link to this post
    Hello Jodie,

    Thank you for your question.

    The resolution to this problem is described in step 6 from the Upgrade Instructions:

    6. Open the folder ~/Sitefinity/ServiceAssemblies and make sure you delete the assembly there. When you initialize the Newsletters module, it will be recreated. If you don't do this before you apply the patch, you'll get the following error:
    "Unable to load one or more of the requested types. Retrieve the LoaderExceptionsProperty for more information."

    Please let me know if this fixes the problem, so we could plan some further actions in helping you. 

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Jodie
    Jodie avatar
    59 posts
    Registered:
    09 Oct 2012
    22 Sep 2009
    Link to this post
    Hi Georgi,

    Yes you are exactly right, I had forgotten that when I upgraded this file was locked and didn't delete it :(

    I have removed the file now, However now I am getting the following error:

     

    Server Error in '/' Application.

    An existing connection was forcibly closed by the remote host

    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: An existing connection was forcibly closed by the remote host

    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:

    [SocketException (0x2746): An existing connection was forcibly closed by the remote host]
       System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) +73
       System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +131
    
    [IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.]
       System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) +294
       System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) +26
       System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) +297
    
    [WebException: The underlying connection was closed: An unexpected error occurred on a receive.]
       System.Net.HttpWebRequest.GetResponse() +5314029
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +104
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +75
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +33
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +146
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +294
       Telerik.Notifications.Newsletters.WebControl.Admin.ControlPanel.CreateChildControls() +139
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    

    *********************************************************************

    Any help is appreciated

    Thanks
    Jodie
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    24 Sep 2009
    Link to this post
    Hi Jodie,

    I have researched the error a bit, but still not sure what exactly is causing it. Do you get it every time? I guess no.
    I read on internet that this might be caused by a bug with http1.1 and .net framework. Can you please try to turn off the Http Alive in your IIS, and let me know about the results?

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Jodie
    Jodie avatar
    59 posts
    Registered:
    09 Oct 2012
    02 Nov 2009
    Link to this post
    Hi Georgi,

    I apologise for the lack of feedback on this as I we moved onto something else and this was forgotten for a while...

    In response, the error was occuring everytime and I passed on the HTTP Alive suggestion to our administrator, however I am not sure if this was done.

    Now for some reason I no longer get the previous error(s) but this new one, which I am hoping someone can help with. I have overwritten the actual IP address for security reasons. 

    Thanks in Advance...
     

    Server Error in '/' Application.

    No connection could be made because the target machine actively refused it (IP Address)

    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: No connection could be made because the target machine actively refused it (ip Address)

    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:

    [SocketException (0x274d): No connection could be made because the target machine actively refused it (ip Address)]
       System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239
       System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35
       System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224
    
    [WebException: Unable to connect to the remote server]
       System.Net.HttpWebRequest.GetResponse() +5314029
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie) +104
       Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke) +75
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +33
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +146
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +294
       Telerik.Notifications.Newsletters.WebControl.Admin.ControlPanel.CreateChildControls() +139
       System.Web.UI.Control.EnsureChildControls() +87
       System.Web.UI.Control.PreRenderRecursiveInternal() +44
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    02 Nov 2009
    Link to this post
    Hi Jodie,

    The issue seems to be related to your mail server " No connection could be made because the target machine actively refused it (ip Address) "

    Can you try sending an email from simple code that does not use Newsletters module? Can you try to send an email using telnet or another tool? Let us know how it goes.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Jodie
    Jodie avatar
    59 posts
    Registered:
    09 Oct 2012
    03 Nov 2009
    Link to this post
    Hi Ivan,

    Thanks for the quick reply. I suspected that may be the case so I changed it back to the default web.config setting hoping it would resolve until I could test a working mail server.

    <

     

    smtp from="mailmaster@yourdomain.com">

     

    <

     

    network host="smtp.yourdomain.com" userName="YourUsername" password="YourPassword" port="25" />

     

    </

     

    smtp>

     


    The problem is that the mail server I had set up doesn't require user and pass. I'll try with a server I know works and requires authentication and I'll let you know.

    Thanks again

    Jodie
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Nov 2009
    Link to this post
    Hello Jodie,

    The current implementation of this module works with secured servers (such requiring username and password), so I believe you will you not have any problems with the new one. Still, let us know how it goes. 

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
8 posts, 0 answered