Skip to content

RKSNI0010

Why this is deprecated

Ninject.ActivationException is part of the Rokstep.Ninject.Shims shim library. The original library is abandoned or deprecated. This diagnostic ID (RKSNI0010) fires at build time to guide you toward the modern replacement.

Obsolete message: Ninject.ActivationException is from the deprecated Ninject library. Rokstep.Ninject.Shims throws this type when resolution fails, matching the original contract. For new code, catch InvalidOperationException from Microsoft.Extensions.DependencyInjection.IServiceProvider.GetRequiredService. See https://dev.rokstep.eu/migrations/RKSNI0010 for details.

What you can do

Option 1 — Drop-in shim (zero code changes)

Install the shim package and keep using the existing API. The shim compiles your code but emits this warning at build time.

Terminal window
dotnet add package Rokstep.Ninject.Shims

Option 2 — Migrate to the modern alternative

Replace Ninject.ActivationException with from.

Type details

While you’re at it

Check the Hardened Migration Security Checklist for common security issues to fix during migration.


Not your kind of work? Let me do it for you. Found a typo? Email me — solo founder, no public issue tracker for this site.