Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Barry Fogarty 493 posts 1129 karma points
    Dec 02, 2014 @ 15:02
    Barry Fogarty
    0

    Issues with zbu.ModelsBuilder

    First of all great work with the Hybrid Framework, used it since v6 and I have learned a lot from it.

    I have been playing with the Clean version and I ran into a number of issues with the ModelsBuilder VS extension, that until are sorted really make that part of the project useless.

    1)  The current models builder will not generate models due to a version conflict detailed here:  Zbu ModelsBuilder: API version conflict  I have resolved this by updating the zbu nuget references in the project.  This ended up being quite a major task there are numerous hard dependency references which lead to failed installs.  These packages are mainly in beta so I guess that is the price you pay.

    I still have a problem with System.Collections.Immutable where the version installed by the zbu update is older than the one required (1.1.22-beta).  THis is because the updated Microsoft.CodeAnalysis.Common package has a hard dependency on Microsoft.Bcl.Immutable version 1.1.20-beta.  It is not possible to simply update this package via the console.  Updating Microsoft.CodeAnalysis.Common does not work as the rsult is another error when model building (Method not found: 'Void Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions..ctor

    Basically at the moment it all seems quite brittle and requires a labyrnthine nuget install process to ensure all the right versions of the various dependencies are installed.   I hope you can work with Stephan to include a version where it all 'just works' on install for the next version.

    2) NB I also recieved File not found errors when first running the modelbuilder, for System.Web.Http v4.0.0 and System.Net.Formatting v4.0.0.  To resolve this, I copied these DLLs from the hybrid framework souce bin to the folder where the VS extension was installed, which I found by searching for Zbu.ModelsBuilder.CustomTool.dll in C:\Users\Barry\AppData\Local\Microsoft\VisualStudio\11.0\Extensions

    I hope the above comments help others who are trying to get this to work and give you both some feedback on the issues currently happing in this otherwise amazing resource - thanks to you Jeroen and Stephan for creating and maintaining these excellent tools.

     

     

  • Barry Fogarty 493 posts 1129 karma points
    Dec 02, 2014 @ 19:46
    Barry Fogarty
    0

    For posterity here is my packages.config so I finally have the models all building via the custom tool.  Which is fantastic BTW!!

    <?xml version="1.0" encoding="utf-8"?>

    <packages>

      <package id="AjaxMin" version="5.9.5229.26438" targetFramework="net45" />

      <package id="Archetype" version="1.5.0-beta" targetFramework="net45" />

      <package id="AutoMapper" version="3.0.0" targetFramework="net45" />

      <package id="ClientDependency" version="1.7.1.2" targetFramework="net45" />

      <package id="ClientDependency-Mvc" version="1.7.0.4" targetFramework="net45" />

      <package id="Cruncher" version="2.1.0.0" targetFramework="net45" />

      <package id="DiploTraceLogViewer" version="2.1.1" targetFramework="net45" />

      <package id="dotless" version="1.4.0.0" targetFramework="net45" />

      <package id="Examine" version="0.1.57.2941" targetFramework="net45" />

      <package id="HtmlAgilityPack" version="1.4.6" targetFramework="net45" />

      <package id="ImageProcessor" version="1.9.5.0" targetFramework="net45" />

      <package id="ImageProcessor.Web" version="3.3.0.0" targetFramework="net45" />

      <package id="Imazen.SlimResponse" version="0.2.4936.26457" targetFramework="net45" />

      <package id="Jurassic" version="2.2.0" targetFramework="net45" />

      <package id="Lucene.Net" version="2.9.4.1" targetFramework="net45" />

      <package id="Microsoft.AspNet.Mvc" version="4.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.AspNet.Mvc.FixedDisplayModes" version="1.0.1" targetFramework="net45" />

      <package id="Microsoft.AspNet.Razor" version="2.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.AspNet.WebApi" version="4.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.AspNet.WebApi.Client" version="4.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.AspNet.WebApi.Core" version="4.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.AspNet.WebApi.WebHost" version="4.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.AspNet.WebPages" version="2.0.30506.0" targetFramework="net45" />

      <package id="Microsoft.Bcl" version="1.1.7" targetFramework="net45" />

      <package id="Microsoft.Bcl.Async" version="1.0.166" targetFramework="net45" />

      <package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

      <package id="Microsoft.Bcl.Immutable" version="1.1.22-beta" targetFramework="net45" />

      <package id="Microsoft.Bcl.Metadata" version="1.0.12-alpha" targetFramework="net45" />

      <package id="Microsoft.CodeAnalysis.Common" version="0.7.4091001-beta" targetFramework="net45" />

      <package id="Microsoft.CodeAnalysis.CSharp" version="0.7.4091001-beta" targetFramework="net45" />

      <package id="Microsoft.Net.Http" version="2.1.10" targetFramework="net45" />

      <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />

      <package id="MiniProfiler" version="2.1.0" targetFramework="net45" />

      <package id="MvcDonutCaching" version="1.3.0" targetFramework="net45" />

      <package id="MySql.Data" version="6.6.5" targetFramework="net45" />

      <package id="Newtonsoft.Json" version="6.0.5" targetFramework="net45" />

      <package id="nuPickers" version="1.2.1" targetFramework="net45" />

      <package id="Our.Umbraco.CoreValueConverters" version="2.1.2" targetFramework="net45" />

      <package id="SharpZipLib" version="0.86.0" targetFramework="net45" />

      <package id="TableEditor" version="0.1.0" targetFramework="net45" />

      <package id="UmbracoCms" version="7.1.8" targetFramework="net45" />

      <package id="UmbracoCms.Core" version="7.1.8" targetFramework="net45" />

      <package id="UrlPicker" version="0.12.0" targetFramework="net45" />

      <package id="xmlrpcnet" version="2.5.0" targetFramework="net45" />

      <package id="YouTube.Umbraco" version="1.0.1" targetFramework="net45" />

      <package id="Zbu.ModelsBuilder" version="2.0.2-final" targetFramework="net45" />

      <package id="Zbu.ModelsBuilder.AspNet" version="2.0.2-final" targetFramework="net45" />

    </packages>

  • Stephen 767 posts 2273 karma points c-trib
    Dec 03, 2014 @ 17:46
    Stephen
    0

    Thanks for this very detailed report. Do you also have some binding redirects to share (you must have... cannot use package id="Microsoft.Bcl.Immutable" version="1.1.22-beta" without a redirect for the builder to work, I think)?

    I am still struggling with proper ways to build a NuGet package and a VSIX package that "just work" - that Roslyn is still in a beta state and has dependencies on old package versions (eg. the Immutable thing) does not help. And I'm not sure I understand why System.Net.Http for example is or is not avail. depending on who installs the builder. Probably shows that I don't fully understand what's going on with those libs ;-(

    Also - you cannot "just" update the Roslyn packages as MS regularly does breaking changes. I know I'm a version late (I think) and have plans to upgrade.

    Planning to work on this issue deeper sometime in about a couple of weeks (busy at the moment).

  • Barry Fogarty 493 posts 1129 karma points
    Dec 03, 2014 @ 18:07
    Barry Fogarty
    0

    Sure thing Stephan.  It wasn't until I starting digging that I noticed all the underlying dependencies are still in beta so this kinda DLL-hell is to be expected I guess. Now that Microsoft.CodeAnalysis.Common is 1.0.x hopefully it has stabilised somewhat.

    I have included my dependency bindings below, hope that helps.  The only one I needed to update manually was the Immutable collections. 

    <dependentAssembly>
            <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-1.1.22.0" newVersion="1.1.22.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.CodeAnalysis.CSharp" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-0.7.0.0" newVersion="0.7.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.CodeAnalysis" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-0.7.0.0" newVersion="0.7.0.0" />
          </dependentAssembly>

     

  • Stephen 767 posts 2273 karma points c-trib
    Dec 04, 2014 @ 10:25
    Stephen
    1

    Seeing that the latest Roslyn is indeed now using the latest Immutable & Metadata libs, that would help a lot - will plan a 2.0.3 release using the latest of all libs.

  • Alan Mac Kenna 147 posts 405 karma points MVP c-trib
    Dec 04, 2014 @ 11:15
    Alan Mac Kenna
    0

    I had a similar issue. It was resolved by putting a copy of System.Web.Http v4.0.0 into the Visual Studio Extention folder for the Models Builder as mentioned above. Worth noting that it took a restart of Visual Studio after this was done to start working.

    Alan

  • Barry Fogarty 493 posts 1129 karma points
    Dec 04, 2014 @ 12:39
    Barry Fogarty
    0

    @Stephan - that would be awesome, let me know and I will be glad to test it all out.

    @Alan - great stuff, glad my post helped!

  • Alan Mac Kenna 147 posts 405 karma points MVP c-trib
    Dec 04, 2014 @ 15:20
    Alan Mac Kenna
    0

    Yep thanks Barry :)

  • Christian Palm 277 posts 272 karma points
    Dec 10, 2014 @ 23:02
    Christian Palm
    0

    Hi @Alan in what folder did you put System.Web.Http?

    It seems like I have the same problem like you did

  • Christian Palm 277 posts 272 karma points
    Dec 10, 2014 @ 23:19
    Christian Palm
    0

    Got it

    \AppData\Local\Microsoft\VisualStudio\12.0\Extensions\viizpvrc.aaj

  • Alan Mac Kenna 147 posts 405 karma points MVP c-trib
    Dec 11, 2014 @ 00:25
    Alan Mac Kenna
    0

    Glad you got it sorted

  • Matt Taylor 873 posts 2086 karma points
    Dec 30, 2014 @ 19:11
    Matt Taylor
    0

    I'm a bit confused here. I also have the 'System.Collections.Immutable' problem when trying to upgrade the packages to 2.0.2 because my custom tool won't work either.

    I've copied the System.Web.Http v4.0.0 and System.Net.Formatting v4.0.0 files as mentioned above.

    What do I have to do to get the the packages to update without error?

    Regards, Matt

  • Stephen 767 posts 2273 karma points c-trib
    Jan 08, 2015 @ 09:37
    Stephen
    1

    FWIW a 2.0.3 version is in-progress that should take care of most of those issues. However... to some extend they are linked to some aspects of NuGet (for System.Collections.Immutable & stuff) & .NET Framework (for System.Web.Http & stuff) versionning that I do not control. Currently trying to figure out what can be done to help.

  • Stephen 767 posts 2273 karma points c-trib
    Jan 08, 2015 @ 14:44
    Stephen
    0

    To those of you who had to copy System.Web.Http v4.0.0 and System.Net.Formatting v4.0.0 to the VSIX directory... Could you run the following command on your system (in the VS developer command prompt) and report what it outputs:

    gacutil -l System.Web.Http

    On my system I have v4.0.0 but it looks like some ppl have v5.0.0 and that would be the cause of the issue.

    Now I need to figure out how to handle the situation.

  • Matt Taylor 873 posts 2086 karma points
    Jan 08, 2015 @ 16:20
    Matt Taylor
    0

    I copied System.Web.Http and System.Net.Formatting to my C:\Users\Matt\AppData\Local\Microsoft\VisualStudio\11.0\Extensions\5jrmamfg.15f folder as instructed above to see if it would fix the problem. They are both v4.

    When I run gacutil -l System.Web.Http

    D:\Program Files\Microsoft Visual Studio 11.0>gacutil -l System.Web.Http
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.17929
    Copyright (c) Microsoft Corporation.  All rights reserved.

    The Global Assembly Cache contains the following assemblies:

    Number of items = 0

    D:\Program Files\Microsoft Visual Studio 11.0>

     

    Regards, Matt

     

     

  • Stephen 767 posts 2273 karma points c-trib
    Jan 08, 2015 @ 16:29
    Stephen
    0

    @Matt: thanks, that explains it then. Obviously I assumed that Microsoft.AspNet.WebApi was installed in the GAC, but in reality it may not be there, and I have to distribute it too (as does Umbraco). Will fix in 2.0.3.

  • Stephen 767 posts 2273 karma points c-trib
    Jan 12, 2015 @ 09:14
    Stephen
    0

    Have released 2.0.3 which should fix those issues.

  • Jay 409 posts 635 karma points
    Mar 22, 2016 @ 12:04
    Jay
    0

    hi Stephen,

    I've been trying to use the custom tool in VS and i've got Umbraco V7.4.2 installed and i've installed the nuget for Umbraco.ModelsBuilder.Api as well with the VS Extension for custom tool V3.0.0.90

    I've got everything setup with an empty class that I've set the Custom Tool name as UmbracoModelsBuilder, upon right clicking and selecting "Run Custom Tool" i've got a pop up saying the below. Any idea what I've been missing?

    I've got the below settings in my web.config

    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    <add key="Umbraco.ModelsBuilder.EnableApi" value="true" />
    <add key="Umbraco.ModelsBuilder.EnableFactory" value="true" />
    <add key="Umbraco.ModelsBuilder.ModelsNamespace" value="Test.Extensions.Models.DocTypes" />
    

    Thanks Stephen

    enter image description here

  • Stephen 767 posts 2273 karma points c-trib
    Mar 22, 2016 @ 12:10
    Stephen
    0

    In Visual Studio please look at the Output window that should give you details about what went wrong - either you can understand it, or you can paste the content of that output here and I'll have a look.

  • Jay 409 posts 635 karma points
    Mar 22, 2016 @ 12:18
    Jay
    0

    Hi Stephen,

    Got the below

    UmbracoModelsBuilder: Starting v3.0.0.90 3/22/2016 12:17:09 PM. UmbracoModelsBuilder: UmbracoModelsBuilder failed to generate code: Exception: Response status code does not indicate success (Forbidden) "API server does not want to talk to you." UmbracoModelsBuilder: at Umbraco.ModelsBuilder.Api.ApiClient.EnsureSuccess(HttpResponseMessage result) at Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion() at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)

  • Stephen 767 posts 2273 karma points c-trib
    Mar 22, 2016 @ 12:24
    Stephen
    2

    The API server does not want to talk to you :-)

    The API server will answer if

    • The API package is installed (obviously it is)
    • The API is enabled (you say you have EnableApi in web.config)
    • The site is running in debug mode

    That last point is here for security reason, to ensure that the API does not run on a production website. You want to have debug="true" in web.config.

    Making sense?

  • Brett Spencer 88 posts 259 karma points
    Feb 07, 2018 @ 22:22
    Brett Spencer
    0

    This is a good bullet point guide right here. The debug mode is a key factor that could easily get overlooked. Turns out that was my issue, after returning to work on site post Publish.

  • Jay 409 posts 635 karma points
    Mar 22, 2016 @ 12:27
    Jay
    0

    Aha debug mode. i might have missed that out. let me give it a go. Thanks Stephen :)

  • Jay 409 posts 635 karma points
    Mar 22, 2016 @ 12:30
    Jay
    0

    Bam. Works like a charm. Amazing as always Stephen ;)

  • Jay 409 posts 635 karma points
    Mar 22, 2016 @ 17:10
    Jay
    0

    Stephen,

    I've encountered the below not sure why. I'm on the Fanoe starter kit. Any idea what's causing it?

    The local site doesn't load at all now :(

    [HttpException]: More that one type want to be a model for content type BlogPost.
       at System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
       at System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
    -->
    UmbracoModelsBuilder:    at Umbraco.ModelsBuilder.Api.ApiClient.EnsureSuccess(HttpResponseMessage result)
       at Umbraco.ModelsBuilder.Api.ApiClient.ValidateClientVersion()
       at Umbraco.ModelsBuilder.CustomTool.CustomTool.UmbracoModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)
    
  • Stephen 767 posts 2273 karma points c-trib
    Mar 22, 2016 @ 17:58
    Stephen
    0

    You have a model class for BlogPost defined in more than 1 place. For example, you were using Dll models so a Dll containing some models is in ~/bin, and switched over to building models in Visual Studio, but forgot to remove the previous Dll in ~/bin. Or anything like that -- you have to dig and find out where they are defined!

  • Jay 409 posts 635 karma points
    Mar 22, 2016 @ 18:04
    Jay
    0

    Thanks Stephen, like what you said it's in the bin :)

  • Jay 409 posts 635 karma points
    Mar 23, 2016 @ 19:00
    Jay
    0

    One more question Stephen, do you have an example on the best practices / how the Custom Tool generated Models are used on a custom controller (RenderMvcController)

    Thanks again

    I'm having the below and i'm using DonutOutputCache. The Custom Models had generated the Sample.generated.cs model as below.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Mvc;
    using Umbraco.Web.Mvc;
    using Umbraco.Web.Models;
    using Core.Models.DocTypes;
    
    namespace Website.Controllers
    {
        public class SampleController : RenderMvcController
        {
            [DonutOutputCache(CacheProfile = "Default")]
            public ActionResult Sample(RenderModel model)
            {
                var mod = new Sample(model.Content);
    
                return CurrentTemplate(mod);
            }
        }
    }
    
  • Stephen 767 posts 2273 karma points c-trib
    Mar 24, 2016 @ 15:59
    Stephen
    1

    I think that, starting with 7.4.2 (it will not work before) you can do:

    public ActionResult(Sample model)
    {
        return CurrentTemplate(model);
    }
    

    Prio to 7.4.2, you can do:

    public ActionResult(RenderModel model)
    {
        var mod = model.Content as Sample;
        if (mod == null) throw new Exception("oops?");
        return CurrentTemplate(mod);
    }
    

    Making sense?

  • Jay 409 posts 635 karma points
    Mar 24, 2016 @ 16:02
    Jay
    0

    aha. nice. Thanks Stephen :)

  • Jay 409 posts 635 karma points
    Mar 31, 2016 @ 15:55
    Jay
    0

    Hi Stephen,

    I've encountered something weird.

    I can't seems to be able to render properties of any type (Eg string, int) within a html attributes.

    Eg I've got a generated model that comes with the umbracoNaviHide property as below

    ///<summary>
        /// Hide from Navigation
        ///</summary>
        [ImplementPropertyType("umbracoNaviHide")]
        public bool UmbracoNaviHide
        {
            get { return CompAdvancedSettings.GetUmbracoNaviHide(this); }
        }
    

    Rendering in my view in between HTML tags is fine like the below which will show <p>True/False</p>
    <p>@Model.UmbracoNaviHide</p>

    But I can't seems to be able to render any property as part of a HTML attribute like below
    <p class="@Model.UmbracoNaviHide">Testing</p>

    which error out as below

    enter image description here

  • Stephen 767 posts 2273 karma points c-trib
    Mar 31, 2016 @ 16:13
    Stephen
    1

    Somewhere below that yellow screen you should see the details of what exactly is compiled. That should help if you can post it here. However I think the issue is this:

    You have a document type named "System" and therefore a class named Models.DocTypes.System. The Razor view is compiled into a CSharp file that must have the using Models.DocTypes statement... and references System.Object. At that point, there is a collision between global::System, and Models.DocTypes.System. For some reason the CSharp compiler uses the latter, which does not have a .Object property.

    Because we have no control over how the Razor view is compiled into the CSharp file, we cannot force it to use global::System.Object instead of System.Object. I am afraid that the conclusion is, therefore, that "System" is not a valid model name.

    You should consider renaming the model name. Either by changing the content type alias, or by using an attribute (see the Models Builder wiki on GitHub).

    Making sense?

  • Jay 409 posts 635 karma points
    Mar 31, 2016 @ 17:22
    Jay
    0

    Oh it works like what you said after renaming the DocType alias from System to something else. It's rendering now :D

    Saved my day to figure things out. Had wasted a few hours to search for stuff but can't find any

    Thanks Stephen

  • Jay 409 posts 635 karma points
    May 17, 2016 @ 15:03
    Jay
    0

    Hey Stephen,

    Some quick question.

    I'm using Umbraco 7.4.3 and the build uses the Vorto package.

    I've got a composition property of Media Picker that I've inherited into a DocType (which i've wrapped with Vorto).

    I'm currently using the ModelsBuilder but it keeps picking it up at an object of type VortoValue.

    Do anyone have any idea on how to overwrite the Composition Property to use the GetVortoProperty<>()?

    I've tried to overwrite my composition with a partial but my DocType model doesn't pick up the Media Picker property anymore when i overwrite them.

    Any idea?

    Thanks

  • Jay 409 posts 635 karma points
    May 17, 2016 @ 15:22
    Jay
    0

    I've currently created a separate property as below for the composition. Not sure if there's a better way to this to reuse the stuff from the ModelsBuilder interface for composition

    ///<summary>
    /// Header Image
    ///</summary>
    [ImplementPropertyType("image")]
    public IPublishedContent CompositionImage
    {
          get { return this.GetVortoValue<IPublishedContent>("image"); }
    }
    
  • Sander van de Pas 74 posts 147 karma points
    Jul 05, 2016 @ 08:45
    Sander van de Pas
    0

    Hey Stephan,

    I'm using the Hybrid Framework as well and updated our version to Umbraco 7.4.3 lately.

    In the web.config I've the following settings:

    <add key="owin:appStartup" value="UmbracoDefaultOwinStartup" />
    <add key="Umbraco.ModelsBuilder.Enable" value="false" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Nothing" />
    

    I still want the models are generated in my Umbraco.Extensions/Models/Generated folder instead of the AppData folder.

    But after my update from 7.2.6 to 7.4.3 I get the following error:

    ZbuModelsBuilder: Starting v2.1.1.38 05-07-16 10:42:18. ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: Exception: Response status code does not indicate success (InternalServerError) {"Message":"An error has occurred.","ExceptionMessage":"Methode niet gevonden: Void Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions..ctor(Microsoft.CodeAnalysis.OutputKind, System.String, System.String, System.String, System.Collections.Generic.IEnumerable1<System.String>, Microsoft.CodeAnalysis.OptimizationLevel, Boolean, Boolean, System.String, System.String, System.Nullable1

    I'm using version 2.1.1 of your package.

    Do you have any idea what's going wrong?

  • Stephen 767 posts 2273 karma points c-trib
    Jul 05, 2016 @ 08:48
    Stephen
    1

    No precise idea but the error states that it cannot find a Roslyn method, which would indicate that either Roslyn is not installed (got accidentaly removed from your ~/bin) or you have a version conflict resulting from Umbraco installing the new Models Builder and you using the old one.

    Making sense?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 05, 2016 @ 09:11
    Jeroen Breuer
    1

    Hi Sander,

    Are you using the new version of the Models Builder? The app key setting point to Umbraco.ModelsBuilder, but in the error messages I see ZbuModelsBuilder.

    Are you also using the new Visual Studio extension? https://visualstudiogallery.msdn.microsoft.com/ef0896ab-e2eb-47fc-8fcb-79dad0f66e30

    You could also have a look at my 1-1 multilingual example. I've also upgraded it from Umbraco 7.3 with ModelsBuilder 2 to Umbraco 7.4 with ModelsBuilder 3.

    There is a big difference between version 2 and 3: https://github.com/zpqrtbnk/Zbu.ModelsBuilder/wiki

    https://github.com/jbreuer/1-1-multilingual-example/commits/master

    Jeroen

  • Sander van de Pas 74 posts 147 karma points
    Jul 06, 2016 @ 13:06
    Sander van de Pas
    0

    Hi Stephan & Jeroen,

    We've fixed it by upgrading the ZbuModelsBuilder to the latest version (2.1.5).

    But maybe we should have a look at the project you were talking about Jeroen and have to use the new Umbraco.ModelsBuilder.

    Thanks a lot you both!

Please Sign in or register to post replies

Write your reply to:

Draft