ContentLoadException at .fx files

Hello,

I’ve been trying to develop an android game with monogame, however since yesterday I’ve been getting a weird load error.
I’m getting the following error ONLY when it’s trying to load the .fx shaders:

Microsoft.Xna.Framework.Content.ContentLoadException: Could not find ContentTypeReader Type. Please ensure the name of the Assembly that contains the Type matches the assembly in the full type name:

The effect file is simply loaded like this in code:

Effect Shader;
Shader = Content.Load(“effect”);

It’s also built correctly with the content pipeline.

I’ve tried reinstalling monogame, but that didn’t solve the issue, I’m also not sure what could’ve caused this as I haven’t done anything specific with configs or references.

Thank you for the help in advance.

maybe applicable:

in your main game file, at the beginning make sure you have

    graphics.GraphicsProfile = GraphicsProfile.HiDef;

set.

That may help, it did for several others with custom shaders.

Sadly it didn’t help in this case, thank you for the fast reply though!

Shader = Content.Load<Effect>("effect"); //assuming you did not just write it like that as a short hand.
Also make sure your shader compiles properly in the CMGCB, but still think its probably caused by that shader load call.

Also agree with kosmonautgames, graphics.GraphicsProfile = GraphicsProfile.HiDef; is something you should keep in mind as it will save you lots of headache if you run in to problems working with TextureCube’s etc, even if its not needed for your game specifically.