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.

Getting error loading file or assembly using latest FluentEmail 2.5.1

See original GitHub issue

Hello,

I have the following packages installed:

  <package id="FluentEmail.Core" version="2.5.1" targetFramework="net472" />
  <package id="FluentEmail.Razor" version="2.5.1" targetFramework="net472" />
  <package id="FluentEmail.Smtp" version="2.5.2" targetFramework="net472" />

RazorLight is version alpha-3:

<package id="RazorLight" version="2.0.0-alpha3" targetFramework="net472" />

When trying to send an e-mail with a template like this one:

public async Task SendEmail()
{
    var template = "Dear @Model.Name, You are totally @Model.Compliment.";

    email.To(configuration["emailTo"])
        .Subject("Test e-mail")
        //.Body("Test");
        .UsingTemplate(template, new { Name = "Leniel Maccaferri", Compliment = "Awesome" });

    await email.SendAsync();
}

it fails with:

screen shot 2018-10-19 at 15 48 14

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Morgmacommented, Nov 20, 2018

@leniel I have the same issue. This bug was also noted on the RazorLight tracker; it was Closed pending a fix in the next release.

0reactions
bjcullcommented, Jan 4, 2020

Fixed by #186

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load file or assembly or one of its dependencies
At 99% the Could not load file or assembly or one of its dependencies problem is caused by dependencies! I suggest you follow...
Read more >
Could not load file or assembly after 4.2.0.7 update
We have a .netcore 2.2 project that uses AspNetCore.TestHost.TestServer for tests. As of the latest ncrunch update we get this error in all ......
Read more >
NET core(.NET6) System.IO.FileLoadException : Could not ...
I have converted .NET Framework 3.5 TestAPP to .NET 6 TestAPP and worked well. currently i am running tests using Automation project(C++ ...
Read more >
Could not load file or assembly System.Runtime in NET4x
I blamed visual studio IDE and NuGet package manager for not being able to bring a simple DLL into bin folder. In one...
Read more >
How to fix error Could not load file or assembly - YouTube
Example that shows how to fix the following error Could not load file or assembly 'file:///C:\Program Files (x86)\SAP ...
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