I know I have to include the App_Data/Models directory in the project.
What else is needed as the ModelsBuilder UI is saying:-
ModelsBuilder is enabled, with the following configuration:
The models factory is enabled.
The API is neither installed nor enabled.
External tools such as Visual Studio cannot use the API.
Dll models are enabled.
Models namespace is Umbraco.Web.PublishedContentModels.
Static mixin getters are enabled. The pattern for getters is "Get{0}".
Tracking of out-of-date models is enabled.
Do you know if your fix of installing Umbraco.ModelsBuilder.Api via Nuget will work for 7.5.9? Is it the same ModelBuilder do you know?
My 7.5.9 install has just died because of this error "Could not load file or assembly 'Umbraco.ModelsBuilder' or one of its dependencies. The system cannot find the file specified."
I'm currently developing on 7.5.11 and using LiveAppData as the ModelsBuilder mode. So I'm generating models in the Developer section, adding any new App_Data/Models to my VS project then building. Seems to work fine. Sorry I can't be more help with the ModelsBuilder API but I seem to have a workflow that works now without it.
In a round about way, I've just discovered that new models were being generated with a Build property of 'Compile'. I changed the setting to 'Resource' (like the earlier generated models) and it all worked again - I could build the solution.
Not sure why this happened, but I'll consider your approach next time.
I have had a similar issue to this when I receive the error message;
Could not load file or assembly "Umbraco.ModelsBuilder" or one of its dependencies. The system cannot find the file specified
To solve my issue I had to go the umbraco back end of the site and select developer and then the sub heading model builder, then select generate models.
This restarted the site and when refreshed loaded up fine.
Adding this just in case someone has the same issue and the above advice does not work.
Could not load "Umbraco.ModelsBuilder" in Web Api
After update Umbraco to 7.4.1 my Web API is not work.
I have a website in IIS. I deployed my Web API to this folder and am trying to run it (mysiteaddress/api). And now I get this error:
Could not load file or assembly "Umbraco.ModelsBuilder" or one of its dependencies. The system cannot find the file specified
Section
Could try reinstalling it again via Nuget.
https://www.nuget.org/packages/Zbu.ModelsBuilder/2.1.3
This should sort out your references.
Sorry ignore the previous post this is the wrong ModelBuilder; how if you try to update the UmbracoCms package via nuget it should sort it...
Update-Package -Reinstall UmbracoCms
I have a new 7.4.1 site with a couple of docTypes defined. I have the ZPQRT Models Builder extension in VS2015.
I have
I know I have to include the App_Data/Models directory in the project.
What else is needed as the ModelsBuilder UI is saying:-
I feel I'm very close but no banana (yet) ;)
The banana was obtained by installing Umbraco.ModelsBuilder.Api via Nuget. Thought this was part of the Umbraco install, but apparently not.
Happy now :)
The problem was solved adding in Web Api web.config:
Hi Craig,
Do you know if your fix of installing Umbraco.ModelsBuilder.Api via Nuget will work for 7.5.9? Is it the same ModelBuilder do you know?
My 7.5.9 install has just died because of this error "Could not load file or assembly 'Umbraco.ModelsBuilder' or one of its dependencies. The system cannot find the file specified."
I can't even login to CMS now.
Thanks
Hi Gordon,
I'm currently developing on 7.5.11 and using LiveAppData as the ModelsBuilder mode. So I'm generating models in the Developer section, adding any new App_Data/Models to my VS project then building. Seems to work fine. Sorry I can't be more help with the ModelsBuilder API but I seem to have a workflow that works now without it.
In a round about way, I've just discovered that new models were being generated with a Build property of 'Compile'. I changed the setting to 'Resource' (like the earlier generated models) and it all worked again - I could build the solution.
Not sure why this happened, but I'll consider your approach next time.
Thanks for your quick reply and useful info :o)
I have had a similar issue to this when I receive the error message;
Could not load file or assembly "Umbraco.ModelsBuilder" or one of its dependencies. The system cannot find the file specified
To solve my issue I had to go the umbraco back end of the site and select developer and then the sub heading model builder, then select generate models.
This restarted the site and when refreshed loaded up fine.
Adding this just in case someone has the same issue and the above advice does not work.
Hello, Exclude App_Data folder from your project. Happy coding!
I got the same problem and it was been fixed when I installed Umbraco.ModelsBuilder from nuget package.
is working on a reply...