an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 2/27/2012 11:30:53 AM By lukezy. 5 replies.
10/14/2010 1:02:47 AM
TAhmad
Posts: 46
Joined: 1/12/2010
Order Pipeline
Dear Luke,
 
We are using ver 3.1
 
I would like to inform you that we removed the following templates (OrderConfirmation, OrderComplete)from the DSC_Template table because we don't have data access layer source code and we need order details which can't get it using the data access layer that we have.
 
So, we have repeated error at the Windows service which is :
<hr />
 
 
<div dir="rtl"><span dir="ltr">HandlingInstanceID: e1c5ff7f-a4a7-47f4-9479-285d8c0bfe2f</span>
<div dir="rtl"><span dir="ltr">An exception of type 'System.ArgumentNullException' occurred and was caught.</span> <div dir="rtl">---------------------------------------------------------------------------- <div dir="rtl">10/13/2010 22:12:04 <div dir="rtl"><span dir="ltr">Type : System.ArgumentNullException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Value cannot be null.</span> <div dir="rtl"><span dir="ltr">Parameter name: path</span> <div dir="rtl"><span dir="ltr">Source : mscorlib</span> <div dir="rtl"><span dir="ltr">Help link : </span> <div dir="rtl"><span dir="ltr">ParamName : path</span> <div dir="rtl"><span dir="ltr">Data : System.Collections.ListDictionaryInternal</span> <div dir="rtl"><span dir="ltr">TargetSite : Void .ctor(System.String, System.Text.Encoding, Boolean, Int32)</span> <div dir="rtl"><span dir="ltr">Stack Trace :    at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)</span> <div dir="rtl"><span dir="ltr">   at System.IO.StreamReader..ctor(String path, Encoding encoding)</span> <div dir="rtl"><span dir="ltr">   at System.IO.File.ReadAllText(String path, Encoding encoding)</span> <div dir="rtl"><span dir="ltr">   at DotShoppingCart.Commercial.Core.EmailManager.Send(String host, String templateName, NameValueCollection tokensToReplace, String from, ICollection`1 to, ICollection`1 bcc)</span> <div dir="rtl"><span dir="ltr">   at DotShoppingCart.Commercial.OrderPipeline.OrderEmailProcessorProvider.SendOrderEmail(String host, Order order, IConfigurationSource cfgSrc, String emailTemplate)</span> <div dir="rtl"><span dir="ltr">   at DotShoppingCart.Commercial.OrderPipeline.OrderProcessorProvider.ProcessOrders(String host, IConfigurationSource cfgSrc, Int32 orderStatusIdSource)</span> <div dir="rtl">  <div dir="rtl"><span dir="ltr">Additional Info:</span> <div dir="rtl">  <div dir="rtl"><span dir="ltr">MachineName : ORACLE</span> <div dir="rtl"><span dir="ltr">TimeStamp : 10/13/2010 7:12:04 PM</span> <div dir="rtl"><span dir="ltr">FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null AppDomainName : DotShoppingCart.Commercial.OrderPipelineService.exe</span> <div dir="rtl"><span dir="ltr">ThreadIdentity : </span> WindowsIdentity : NT AUTHORITY\SYSTEM 
 
<hr />
 
 
the question is can we change some details in the config file in OrderPipeline service so not to call OrderConfirmation and OrderComplete templates.
 
this case causes stopping the Windows service as you can see from the error message.
10/14/2010 2:18:05 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Order Pipeline
You can update the data access layer if you have the core component source code package.
 
Anyway if you wish to stop sending email in OrderPipeline you can try this. In the same folder as OrderPipeline Windows Service find DotShoppingCart.Commercial.OrderPipelineService.exe.config and then remove the yellow background lines below.
 
    <orderPipelineServiceConfiguration defaultProvider="">
        <providers>
            <!-- name must match with the entries in DSC_OrderPipeline_Processor_lkp, DSC_Order_Status_lkp -->
            <add name="OrderConfirmationEmail" type="DotShoppingCart.Commercial.OrderPipeline.OrderEmailProcessorProvider, DotShoppingCart.Commercial.OrderPipeline" emailTemplate="OrderConfirmation" />
            <add name="OrderCompleteEmail" type="DotShoppingCart.Commercial.OrderPipeline.OrderEmailProcessorProvider, DotShoppingCart.Commercial.OrderPipeline" emailTemplate="OrderComplete" />

 
DotShoppingCart Staff
2/12/2012 6:29:17 AM
TAhmad
Posts: 46
Joined: 1/12/2010
Re: Order Pipeline
I have repeated error in orderPipelineService as below, and debugger window opening when error occured.
please advise.
 
HandlingInstanceID: cc54e31b-9b79-459d-936b-57aa851a9635
An exception of type 'System.Net.Mail.SmtpException' occurred and was caught.
-----------------------------------------------------------------------------
02/09/2012 20:38:13
Type : System.Net.Mail.SmtpException, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Service not available, closing transmission channel. The server response was: Resources temporarily unavailable - Please try again later Source : System Help link :
StatusCode : ServiceNotAvailable
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CheckResponse(System.Net.Mail.SmtpStatusCode, System.String)
Stack Trace :    at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
   at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
   at System.Net.ClosableStream.Close()
   at System.Net.Mail.MailWriter.Close()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at DotShoppingCart.Commercial.Core.EmailManager.SendEmail(String subject, String content, NameValueCollection tokensToReplace, String from, ICollection`1 to, ICollection`1 bcc)
   at DotShoppingCart.Commercial.OrderPipeline.EmailCampaignTaskProvider.RunTask(String host, IConfigurationSource cfgSrc)
   at DotShoppingCart.Commercial.OrderPipeline.TaskProvider.Proccess(String host, IConfigurationSource cfgSrc)
   at DotShoppingCart.Commercial.OrderPipeline.ProcessorProvider.Run()
   at DotShoppingCart.Commercial.OrderPipeline.RunnableProvider.StartRun()
 
Additional Info:
 
MachineName : ORACLE
TimeStamp : 2/9/2012 5:38:13 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null AppDomainName : DotShoppingCart.Commercial.OrderPipelineService.exe
ThreadIdentity :
WindowsIdentity : NT AUTHORITY\SYSTEM
 
2/13/2012 9:35:47 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Order Pipeline
The error message is very clear. Take a look at your smtp section in DotShoppingCart.Commercial.OrderPipelineService.exe.config.
DotShoppingCart Staff
2/27/2012 12:29:04 AM
TAhmad
Posts: 46
Joined: 1/12/2010
Re: Order Pipeline
Hi Lukezy I have checked with customer abount smtp setting, we use this setting in all web site components as below:
and they have unlimited emails to send.
<system.net>
    <mailSettings>
      <smtp from="customerservice@alothmanoutlet.com">
        <network defaultCredentials="false" host="smtp.bizmail.yahoo.com" password="xxxxxxxx" userName="customerservice@alothmanoutlet.com" />
      </smtp>
    </mailSettings>
  </system.net>
 
please advise me.
2/27/2012 11:30:53 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Order Pipeline
Try adding deliveryMethod below. Also does smtp.bizmail.yahoo.com have a different port# other than 25? If so you will need to add it to network element.
 
<smtp deliveryMethod="Network" from="customerservice@alothmanoutlet.com">
    <network host="smtp.bizmail.yahoo.com" password="xxxxxxxx" userName="customerservice@alothmanoutlet.com" />
</smtp>
DotShoppingCart Staff