Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Wouter 49 posts 76 karma points
    Nov 18, 2013 @ 13:38
    Wouter
    0

    uCommerce always picks *.local when fetching e-mail template

    Umbraco v 4.11.9 on IIS7.

    When fetching the e-mail template uCommerce always picks the hostname *.local and then fails. We removed this hostname in the site and set our catalog to the correct url (not local), but it still fails. Any thoughts on this?

    ystem.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> UCommerce.Pipelines.PipelineException: Exception occoured while processing pipeline 'UCommerce.Pipelines.Checkout.CheckoutPipeline'. See inner exception for details. ---> System.Net.WebException: The remote name could not be resolved: 'client.local'
       at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
       at System.Net.WebClient.DownloadData(Uri address)
       at UCommerce.Transactions.EmailService.Send(ILocalizationContext localizationContext, EmailProfile profile, String emailTypeName, MailAddress to, IDictionary`2 templateParameters)
       at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrder purchaseOrder)
       at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
       --- End of inner exception stack trace ---
       at UCommerce.Pipelines.Pipeline`1.Execute(T subject)
       at Client.InvoicePayment.Service.InvoicePaymentService.ProcessPaymentRequest(PaymentRequest request) in c:\Projects\Client\InvoicePayment\Service\InvoicePaymentService.cs:line 53
       at Client.InvoicePayment.Service.InvoicePaymentService.ProcessCallback(Payment payment) in c:\Projects\Client\InvoicePayment\Service\InvoicePaymentService.cs:line 178
       at Client.masterpages.WebshopOrderPage.ProcessFactuur() in c:\Projects\Client\masterpages\WebshopOrderPage.master.cs:line 81
       at Client.masterpages.WebshopOrderPage.submit_click(Object sender, EventArgs e) in c:\Projects\Client\masterpages\WebshopOrderPage.master.cs:line 52
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\44075ed7\569bd4d3\App_Web_default.aspx.cdcab7d2.vqzklsrh.0.cs:line 0
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  • Jesper Nielsen 141 posts 498 karma points
    Nov 18, 2013 @ 14:06
    Jesper Nielsen
    0

    Hi Wouter,

    UCommerce will use Umbraco to lookup the url for the content node configured on the email template.

    Somehow Umbraco must return an url with *.local.

    Make sure that all your items have been published after changing the hostname.

    Kind regards,

    Jesper

  • Wouter 49 posts 76 karma points
    Nov 18, 2013 @ 15:00
    Wouter
    0

    We've republished all of the pages with the hostname. No luck so far...

    The payment service calls ExecutePostProcessingPipeline.

    Which executes the checkoutPipeline.

    In this pipeline the email will be sent.

    The Email-template is retrieved by a webclient (Why not via IO btw?).

    The url the webclient uses causes the problem.

    The url is build like this:

                        Uri relativeUri = new Uri(this.ContentService.GetContentUrl(contentId), UriKind.RelativeOrAbsolute);

                        Uri uri = new Uri(HttpContext.Current.Request.Url, relativeUri);

                        WebClient webClient = new WebClient();

    Error -à           byte[] bytes = webClient.DownloadData(uri.AbsoluteUri + this.BuildQueryStringParameters(templateParameters));

     

    uri.AbsoluteUri is always *.local! I don’t understand why, because I expect the HttpContext.Current.Request.Url to be something else then *.local. I'm not requesting the URL on a *.local domain, and the domain is not set on *.local in the uCommerce catalog?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Nov 18, 2013 @ 15:42
    Nickolaj Lundgreen
    0

    Is the *.local domain in the Umbraco Hostname list, for the umbraco site, where the email template lives?

  • Wouter 49 posts 76 karma points
    Nov 18, 2013 @ 16:34
    Wouter
    1

    Hi Nickolaj, we seem to have fixed the problem. It seems it was a combination of things..

    - The hostname(s) on het home node of the site;
    - The hostname(s) on the e-mail templates node of the site;
    - The hostname setting(s) on the uCommerce catalog of the site;

    After making sure these were all correct, we republished the entire site and gave the IIS app pool a reset.

    Cheers.

Please Sign in or register to post replies

Write your reply to:

Draft