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.

Could not load type Mediatr.IRequest

See original GitHub issue

Hi, Since update to Mediatr 10, I have the following error at runtime: Could not load type 'MediatR.IRequest 1' from assembly 'MediatR, Version=10.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2'

Any idea what’s going on ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jbogardcommented, Nov 19, 2022

Fixed by #800

2reactions
DMPatodcommented, Jan 21, 2022

I’m using dotnet 6 a had to drop to MediatR 8.1 and MediatR.Extensions.Microsoft.DependencyInjection 8.1 to solve this. Neither 10.0.0 and 9.0.0 worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core MediatR error: Register your handlers with ...
Error constructing handler for request of type MediatR.IRequestHandler. Register your handlers with the container. See the samples in GitHub ...
Read more >
Diagnosing and Fixing MediatR Container Issues
This post won't go into whether folks should try these complex scenarios (it depends), but rather how to diagnose and fix them. I...
Read more >
No service for type 'MediatR.Mediator' has been registered.
Solution. I changed the mediatR registeration in my startup file to services.AddMediatR(typeof(Startup).GetTypeInfo().Assembly); from services.
Read more >
Why I don't use MediatR for CQRS
The CQRS is a strategic pattern. There's a general rule that the read and write operation should be somehow separated . This rule...
Read more >
CQRS and MediatR in ASP.NET Core
There are two types of requests in MediatR. One that returns a value, and one that doesn't. Often this corresponds to reads/queries (returning...
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