C# – This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

asp.netc

I'm getting this error:

Could not load file or assembly 'Twitterizer2.Asynchronous' or one of
its dependencies. This assembly is built by a runtime newer than the
currently loaded runtime and cannot be loaded.

But I've deleted the twitterizer2.Asynchronous library from my references so why does it still have a problem with it?

This works in my other projects so I don't see what the problem is? It did give me the same error with a Telerik library earlier so I'm thinking it's not specific to Twitterizer.

Best Answer

My guess is that one of the assemblies you're still referring to depends on that assembly... so it's still trying to load it.

You might want to use Fusion Logging to find out why it's being loaded. (More context in the question would help us to diagnose it too...)