Error: "Unsupported Context Type" when trying to add new controller.
Cause of Error: This error occurs when you try to reference context class for models and model class for data context class.
If you have carefully noticed figure 2, you will notice that while adding new controller by mistake
- I am referencing Context class for model and
- For Data Context class i am referencing model class.
Now this is what causing error. "Unsupported Context Type".
Solution: Since you have reference the classes incorrectly as describe above you need to make correct referencing appropriately, as shown in figure.
- Reference Model class for model and
- For Data Context class for Data Context class.
Correcting the ordering of classes will fix this error.