This website may use cookies. More info. That's Fine x
Welcome Login

Visual studio: CS0246: The type or namespace name could not be found etc


Exception:

CS0246: The type or namespace name could not be found...

 

 

Solution:

The cause is most likely because you are trying to reference an asp.net package (library) which uses a higher version of the asp.net framework.

To fix, update your project asp.net framework to at least match.

 

 

For more information, see here.


Created on: Thursday, January 20, 2022 by Andrew Sin