Monthly Archives: February 2012
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
This is a classic unhelpful error and nightmare. Anyway, when publishing a mvc 3 application you do not have all the requored mvc3 files on the server that is hosting your site.
The best advice I got and what actually solved the problem can be found here.
Hope it helps!
Ok, so none of the “copy local” worked for me. What did was using the deployment package that is build through my Visual Studio Solution and deploying to IIS. finally worked.
1. Follow the telerik examples online….word for word, untill you completely understand what is being done. This is especially true in master detail tables, and or in ajax grids from the control suite. The ajax errors are really a pain to identify as it just says “Did not return JSON“. This is almost ALWAYS because you don’t have to correct scripts loaded for client side ajax processing in the grid or you didn’t follow the example online, and then waste hours solving a small mistake.
2. If you are using EF (entity framework) for you data domain modelling infrastructure (data access), then once you have scaffolded your repositories and views, if you want ajax grids, create your own viewmodels. This will save you alot of trouble. This is because EF objects are not automatically serializable into a JSON request. You have to either build a helper class to do it, or as i suggest, create your own view models.
3. Be part of the community. Don’t be a hater. Some members of your team may approach the project with a negative attitude and yes, then they do take long completing simple tasks like a crud screen, that is their fault not Telerik. Telerik can’t be blamed for a developers incompetence and lack of willingness to learn.
There are a few more tips, however they are more technical and I will soon post them. Just thought I’d get you started and committed to using the great controls that Telerik has to offer.