question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Excerpt 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Urgen-Dorjeecommented, Mar 18, 2020

Thanks! you may 😃

0reactions
EdwinVWcommented, Mar 18, 2020

Oh wow. That’s weird. I just double checked, but this snippet has been in the .csproj file of the InvoiceService since the beginning:

image

But I’m glad you were able to fix it. Can I close the issue?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found