-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: NullReferenceException #160
Comments
Ok, I've deleted the latest Document Type and run the tool again. New error: UmbracoModelsBuilder: Starting v3.0.6.97 03/12/2017 20:39:01. |
Another strange thing. My old ModelsBuilder class still has the same error. :( |
Could it be another file that I have with the same name? |
Hey, Just fixed this. Don know any it was broke. :( What I did: Thanks, |
@pedroadaodev - The easiest solution is to add this to the web.config:
|
Not sure this is still an issue. Please re-open if I am wrong! |
Hi I can confirm this is still an issue UmbracoModelsBuilder: Starting v8.0.5 13-Aug-19 11:00:39 AM. I cannot for the life of me get it rebuilding. It worked properly the first few times and now no longer works at all. I tried clearing my models builder folder, deleting the generated models all that kind of stuff and cannot get it work Does the custom tool store some cache somewhere on disk I need to clear? |
No it does not. This is weird. The exception happens after models have been generated, at the time we register them in the Visual Studio solution. Never seen an error there. Few questions: What version of Visual Studio is this? Any chance you can move to the new Extension (see https://www.zpqrtbnk.net/posts/models-builder-extension/) instead of the custom tool, and try again? Any chance you could zip and share your entire project? You can reach me privately at [email protected]. |
UmbracoModelsBuilder: Starting v3.0.6.97 03/12/2017 20:20:46.
UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: NullReferenceException: Object reference not set to an instance of an object.
UmbracoModelsBuilder: at Umbraco.ModelsBuilder.CustomTool.VisualStudio.VisualStudioHelper.ClearExistingItems(ProjectItem sourceItem)
at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)
My Web.config
It was working... changed something in a document Type and BOOOMMM.
The website is running and the credentials are valid.
Can you help me?
Best regards,
Pedro
The text was updated successfully, but these errors were encountered: