+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / 404 when accessing newsletter module

404 when accessing newsletter module

6 posts, 0 answered
  1. aaron
    aaron avatar
    4 posts
    Registered:
    02 Aug 2010
    06 Jan 2011
    Link to this post
    We are running Sitefinity 3.5 on IIS 6.0.  From reading prior forum threads, we found that it was necessary to remove the DLL file in the ServiceAssemblies directory.  After doing that, we received the following error when trying to access the newsletter module:

    Exception information: 
        Exception type: WebException 
        Exception message: The remote server returned an error: (404) Not Found. 
     
    Request information: 
        Request URL: http://.../Sitefinity/Admin/Modules.aspx?module=Newsletters 
        Request path: /Sitefinity/Admin/Modules.aspx 
     
    Thread information: 
        Thread ID: 6 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at System.Net.HttpWebRequest.GetResponse()
       at Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdlFromUri(String uri, Cookie authCookie)
       at Telerik.WebServices.DynamicProxy.WsdlHelper.GetWsdl(String source, Cookie authCoocke)
       at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy()
       at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie)
       at Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri)
       at Telerik.Notifications.Newsletters.WebControl.Admin.ControlPanel.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Also, the DLL file is not recreated.  We ensured that the Network Service had full access to the ServiceAssemblies directory, and later tried both opening it up to everyone, and also running the application pool as Local System.  None of these changes helped.

    We also saw from a prior forum thread that it could be possible to create the DLL file in another environment, and copy across to the server.  So we uploaded the DLL from our staging server (which is running the same version of Sitefinity), and got this error when trying to access the newsletters page:

    Exception information: 
        Exception type: WebException 
        Exception message: The request failed with the error message:
    --
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="An unhandled exception has occurred.fsitefinityAn unhandled exception has occurred.flogin.aspx1/5/2011 8:37:33 PMfReturnUrl1/5/2011 8:37:33 PMd%252fSitefinity%252fAdmin%252fServices%252fMailingWebService.asmx">here</a>.</h2>
    </body></html>


    --. 
     
    Request information: 
        Request URL: https://.../Sitefinity/Admin/Modules.aspx?module=Newsletters 
        Request path: /Sitefinity/Admin/Modules.aspx 
     
    Thread information: 
        Thread ID: 1 
        Thread account name: NT AUTHORITY\NETWORK SERVICE 
        Is impersonating: False 
        Stack trace:    at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.InvokeWebMethodCall(Boolean async)
       at Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.InvokeWebMethodCall()
       at Telerik.Notifications.Services.MailingServiceProxy.VerifySMTPSetting(String smtpHost, Int32 smtpPort, String smtpUsername, String smtpPassword, Boolean smtpSsL, String msgBody)
       at Telerik.Notifications.Newsletters.WebControl.SMTPSettingControl.TestCurrentSettings()
       at Telerik.Notifications.Newsletters.WebControl.SMTPSettingControl.SaveCurrentSetting()
       at Telerik.Notifications.Newsletters.WebControl.SMTPSettingControl.button_Command(Object sender, CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Finally, we also verified that the MailingWebService.asmx file mentioned was present, and it was.

    Any idea what might be going wrong?

    Thanks,

    Aaron
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 Jan 2011
    Link to this post
    Hi aaron,

    Can you see if your website is running in Medium Trust. The dynamic assembly will not be generated under Medium Trust. What you can do is to run the site in Full Trust and let the assembly generate. If the site is hosted you can do this operation locally and then FTP the generated assembly to the hosted site.

    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. aaron
    aaron avatar
    4 posts
    Registered:
    02 Aug 2010
    06 Jan 2011
    Link to this post
    Thanks for your quick response.

    The machine-level web.config's trust level is set to FULL (it is a dedicated server).  The site-level web.config does not override that.  Verifying the permissions with a code snippet confirms that the site is at FULL.

    We have tried using the assembly generated from our staging server, where everything is working fine, but received the "object moved" error mentioned in the prior post.  Both QA and production are using version 3.5.1747.2, according to the Telerik.Cms.dll, so I assume the QA assembly would be compatible.

    Thanks,

    Aaron
  4. aaron
    aaron avatar
    4 posts
    Registered:
    02 Aug 2010
    06 Jan 2011
    Link to this post
    I've been looking into this more, and have an additional datapoint which might help determine the problem.

    If I go to http://staging/Sitefinity/Admin/Services/MailingWebService.asmx after logging in, I see a listing of web services.  However, if I go to http://production/Sitefinity/Admin/Services/MailingWebService.asmx after logging in, I get a 404 error.

    For both staging and production, I have the following configuration:

    <httpHandlers>
          <remove verb="*" path="*.asmx" />
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    <handlers>
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

    Thanks,

    Aaron


  5. aaron
    aaron avatar
    4 posts
    Registered:
    02 Aug 2010
    11 Jan 2011
    Link to this post
    Hi,

    Do you have any suggestions for how I could address this issue?

    Thanks,

    Aaron
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Jan 2011
    Link to this post
    Hello aaron,

    am not able to reproduce this problem with the last official release. The problem you have is related to something that blocks the web service used to send newsletters or your setting just cannot be verified, because of some interaction between methods used in VerifySMTPSetting  and your ISP settings. Object moved means that once you click the button your header is altered and your are redirected. One possible reason for getting "object moved" is if you have some application inheritance or the host header is altered during the request.

    You might find this post useful

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered