Model problem

Topics: Troubleshooting
Jun 2, 2011 at 8:59 PM

Hi, from time to time I have problem like this.

The model item passed into the dictionary is of type 'A', but this dictionary requires a model item of type 'A'.

Does any body know why can I have this type of error?

Jun 2, 2011 at 9:35 PM

This is usually caused by a problem in dynamic compilation, sometimes conflicting with static compilation from VS. It should be fixed in the current 1.x branch.

Jun 3, 2011 at 9:17 AM

If you don't want to get the updated code yet, rebuilding the application in Visual Studio and restarting the server (e.g. IIS Express) usually fixes the problem.