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(Uriaddress, WebRequest&request)
at System.Net.WebClient.DownloadData(Uriaddress)
at UCommerce.Transactions.EmailService.Send(ILocalizationContextlocalizationContext, EmailProfileprofile, StringemailTypeName, MailAddressto, IDictionary`2templateParameters)
at UCommerce.Pipelines.Common.SendEmailTask.Execute(PurchaseOrderpurchaseOrder)
at UCommerce.Pipelines.Pipeline`1.Execute(Tsubject)
--- End of inner exception stack trace ---
at UCommerce.Pipelines.Pipeline`1.Execute(Tsubject)
at Client.InvoicePayment.Service.InvoicePaymentService.ProcessPaymentRequest(PaymentRequestrequest) in c:\Projects\Client\InvoicePayment\Service\InvoicePaymentService.cs:line 53
at Client.InvoicePayment.Service.InvoicePaymentService.ProcessCallback(Paymentpayment) 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(Objectsender, EventArgse) in c:\Projects\Client\masterpages\WebshopOrderPage.master.cs:line 52
at System.Web.UI.WebControls.Button.RaisePostBackEvent(StringeventArgument)
at System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint, BooleanincludeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exceptione)
at System.Web.UI.Page.ProcessRequestMain(BooleanincludeStagesBeforeAsyncPoint, BooleanincludeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(BooleanincludeStagesBeforeAsyncPoint, BooleanincludeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContextcontext)
at ASP.default_aspx.ProcessRequest(HttpContextcontext) 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(IExecutionStepstep, Boolean&completedSynchronously)
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?
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.
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?
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
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?
Is the *.local domain in the Umbraco Hostname list, for the umbraco site, where the email template lives?
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.
is working on a reply...