MediatR: Could not load type Mediatr.IRequest

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 ?

About this issue

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

Most upvoted 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.

@jbogard I don’t see that in the stacktrade. However, I have the issue in multiple projects. [CS7069] Reference to type ‘INotification’ claims it is defined in ‘MediatR’, but it could not be found

I tried to force the update by install Mediatr10 in the project itself but I have the same issue. Thanks