I'm leveraging a large existing codebase of business objects and their associated data access layer into an ASP.NET MVC web application. When scaffolding views for the business objects, the scaffolding engine fails with the following message in Visual Studio 2013:
Error
There was an error running the selected code generator:
'The method or operation is not implemented.'
In Visual Studio 2012, the error is:
Error
There was an error running the selected code generator:
'The Extender Provider failed to return an Extender for this object.'
Already tried:
- Copying the default templates to a CodeTemplates folder: I got custom templates to work just fine on some POCOs I added directly to the project, but they fail on the real objects I want to use.
- Wrapping the CodeTemplates in try/catch blocks with the catch set to write to trace: I tried this method but never got any trace results. I suspect the error is before the template itself starts processing.
Of note, the business objects are split into three partial classes each. The "Model class" select list in the "Add View" window shows three of each class name, but selecting any of the three for any of the business object classes gives the same error.
How can I find out what is causing the actual error and either correct it or find a workaround?