Problem loading model

Topics: Developer Forum
Mar 15, 2007 at 6: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 6:46 PM
The first question in the Troubleshooting page should help: