Could not load type Mediatr.IRequest
See original GitHub issueHi,
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:
- Created 2 years ago
- Reactions:3
- Comments:15 (7 by maintainers)
Top 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 >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
Fixed by #800
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.