Problem loading model

Topics: Developer Forum
Mar 15, 2007 at 7:02 PM
I get this error when I'm trying to load an animated model:

Unable to cast object of type 'Microsoft.Xna.Framework.Graphics.BasicEffect' to type 'Xclna.Xna.Animation.BasicPaletteEffect'.


foreach (ModelMesh mesh in model.Meshes)
                    foreach (BasicPaletteEffect effect in mesh.Effects)
                        effect.View = view;
                        effect.Projection = projection;
Mar 15, 2007 at 7:46 PM
The first question in the Troubleshooting page should help: