Invoice
See original GitHub issueExcerpt from testing application invoice service
The Invoice service reacts to the DayHasPassed event that is normally published by the Time service. But in order to speed this up, we’ll publish such an event using the RabbitMQ Management Dashboard. See the description of how to do this under Testing Notifications above.
Getting error while sending invoice
Error while handling DayHasPassed event.
System.IO.DirectoryNotFoundException: Could not find a part of the path '/Assets/banner.jpg'.
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType)
at System.Net.Mail.AttachmentBase..ctor(String fileName)
at System.Net.Mail.Attachment..ctor(String fileName)
at InvoiceService.InvoiceManager.SendInvoice(Customer customer, Invoice invoice) in /app/InvoiceManager.cs:line 255
at InvoiceService.InvoiceManager.HandleAsync(DayHasPassed dhp) in /app/InvoiceManager.cs:line 146
at InvoiceService.InvoiceManager.HandleMessageAsync(String messageType, String message) in /app/InvoiceManager.cs:line 65
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
100 Free Invoice Templates | Print & Email Invoices
Create and send invoices as a PDF attachment using over 100 professional invoice templates. Email invoices directly, get paid by card. Fast &...
Read more >Free Invoice Generator by Invoiced
Make attractive, professional invoices in a single click with the invoice generator trusted by millions of people.
Read more >Invoice - Wikipedia
An invoice, bill or tab is a commercial document issued by a seller to a buyer relating to a sale transaction and indicating...
Read more >Invoices - Office.com - Microsoft templates
Create an invoice and look professional with free, expertly designed invoice templates and billing statements available for Word and Excel.
Read more >Free Invoice Generator - Invoice Simple
Send professional invoices in minutes. Enter your information, download as a Word or PDF doc and send. 1, 2, 3.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! you may 😃
Oh wow. That’s weird. I just double checked, but this snippet has been in the .csproj file of the InvoiceService since the beginning:
But I’m glad you were able to fix it. Can I close the issue?