Getting error loading file or assembly using latest FluentEmail 2.5.1
See original GitHub issueHello,
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:
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top 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 >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
@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.
Fixed by #186