I've developed a while back in XNA but I'm a bit rusty. I've started working on SL XNA but have a problem I can't explain while trying to load content (model -fbx- or texture).
I place the image named
redRect.jpg in the Content project by right-click -> Add existing item and I've made sure all the properties are ok:
- Asset Name: redRect
- Build Action: Compile
- Content Importer: Texture - XNA Framework
- Content Processor: Texture - XNA Framework
I declare a texture
but when I try to load the texture
redTexture = contentManager.Load<Texture2D>("redRect");
I get an error telling me that the image is not found
Error loading "redRect". File not found.