I created a document type and then generated the Models (dll mode).
I then altered the locked name of the document and generated the models again.
Now there is always an error, and cannot create any more document types.
Error as below for Model Builder
Failed to build models.
} expected
at Umbraco.ModelsBuilder.Building.Compiler.ThrowExceptionFromDiagnostic(String path, String code, Diagnostic diagnostic)
at Umbraco.ModelsBuilder.Building.Compiler.<>c__DisplayClass12_0.<GetCompilation>b__0(KeyValuePair`2 x)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Umbraco.ModelsBuilder.Building.Compiler.GetCompilation(StringassemblyName, IDictionary`2 files, SyntaxTree[]& trees)
at Umbraco.ModelsBuilder.Building.CodeParser.Parse(IDictionary`2 files, IEnumerable`1 references)
at Umbraco.ModelsBuilder.Umbraco.ModelsBuilderBackOfficeController.GenerateModels(String modelsDirectory, String bin)
at Umbraco.ModelsBuilder.Umbraco.ModelsBuilderBackOfficeController.BuildModels()
Any help would be awesome
What file do I have to edit to fix the problem ??
Is there anyway to manually generate the Models ???
Model Builder not working
HI ALl,
I created a document type and then generated the Models (dll mode).
I then altered the locked name of the document and generated the models again.
Now there is always an error, and cannot create any more document types.
Error as below for Model Builder
Any help would be awesome
What file do I have to edit to fix the problem ??
Is there anyway to manually generate the Models ???
Hi James,
This is one of those unhelpful error messages but I think the issue is the version of C# models builder is trying to use.
If you add this to your App Settings in web.config it might resolve the issue:
Nik
Thanks for that - But that did not work
I also have an error as below
Is there a way to fix this manually ??
What new name have you given the document type?
I believe the underscore character may cause problems.
is working on a reply...