Copied to clipboard

Flag this post as spam?

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


  • Bilal khan 35 posts 58 karma points
    Aug 13, 2015 @ 15:10
    Bilal khan
    0

    ZBU Model builder Unable to generate models using VS

    Hi,

    I keep getting the following error when I try to generate Models through VS by right clicking on the file. Any help would be greatly appreciated!

    ERROR:

    ZbuModelsBuilder: Starting v2.1.3.52 13/08/2015 15:05:16. ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: Exception: Response status code does not indicate success (InternalServerError) {"Message":"An error has occurred.","ExceptionMessage":"Value cannot be null.\r\nParameter name: v1","ExceptionType":"System.ArgumentNullException","StackTrace":" at System.Version.opLessThanOrEqual(Version v1, Version v2)\r\n at Zbu.ModelsBuilder.Compatibility.IsCompatible(Version clientVersion)\r\n at Zbu.ModelsBuilder.AspNet.ModelsBuilderApiController.CheckVersion(Version clientVersion, Version minServerVersionSupportingClient)\r\n at Zbu.ModelsBuilder.AspNet.ModelsBuilderApiController.ValidateClientVersion(ValidateClientVersionData data)\r\n at lambdamethod(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass13.c(Object instance, Object[] methodParameters)\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func1 func, CancellationToken cancellationToken)"}**_** **_**ZbuModelsBuilder: at Zbu.ModelsBuilder.AspNet.ModelsBuilderApi.EnsureSuccess(HttpResponseMessage result)**_** **_**at Zbu.ModelsBuilder.AspNet.ModelsBuilderApi.ValidateClientVersion()**_** **_**at Zbu.ModelsBuilder.CustomTool.CustomTool.ZbuModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)**_** **_**ZbuModelsBuilder: Starting v2.1.3.52 13/08/2015 15:12:43.**_** **_**ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: Exception: Response status code does not indicate success (InternalServerError)**_** **_**{"Message":"An error has occurred.","ExceptionMessage":"Value cannot be null.\r\nParameter name: v1","ExceptionType":"System.ArgumentNullException","StackTrace":" at System.Version.op_LessThanOrEqual(Version v1, Version v2)\r\n at Zbu.ModelsBuilder.Compatibility.IsCompatible(Version clientVersion)\r\n at Zbu.ModelsBuilder.AspNet.ModelsBuilderApiController.CheckVersion(Version clientVersion, Version minServerVersionSupportingClient)\r\n at Zbu.ModelsBuilder.AspNet.ModelsBuilderApiController.ValidateClientVersion(ValidateClientVersionData data)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func1 func, CancellationToken cancellationToken)"} ZbuModelsBuilder: at Zbu.ModelsBuilder.AspNet.ModelsBuilderApi.EnsureSuccess(HttpResponseMessage result) at Zbu.ModelsBuilder.AspNet.ModelsBuilderApi.ValidateClientVersion() at Zbu.ModelsBuilder.CustomTool.CustomTool.ZbuModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Aug 13, 2015 @ 16:00
    Dave Woestenborghs
    0

    It seems that version of your VS Extension and the ZBU dll's in your bin folder are not the same. Did you perhaps upgrade the VS extension ?

    Dave

  • Bilal khan 35 posts 58 karma points
    Aug 13, 2015 @ 16:39
    Bilal khan
    0

    Hi,

    Thanks for your response.

    I did upgrade the VS extension as well using the following link

    https://visualstudiogallery.msdn.microsoft.com/3ac3afd4-09db-4c4f-89aa-6ce9e8e7c046

    If I create a fresh Umbraco install and install Model builder everything works with the same VS extension which is really frustrating!

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Aug 14, 2015 @ 06:49
    Dave Woestenborghs
    0

    Maybe you need the update the site integration package as well : https://our.umbraco.org/projects/developer-tools/zbumodelsbuilder/

    or through nuget https://www.nuget.org/packages/Zbu.ModelsBuilder.AspNet/

    Dave

  • Bilal khan 35 posts 58 karma points
    Aug 14, 2015 @ 08:54
    Bilal khan
    0

    Hi Dave,

    Thanks for your response again!

    I have done that and followed this link to install all the latest stuff.

    https://github.com/zpqrtbnk/Zbu.ModelsBuilder/releases/tag/2.1.3

    Thanks Adnan

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Aug 14, 2015 @ 08:56
    Dave Woestenborghs
    0

    Did it solve your problem ?

    Dave

  • Bilal khan 35 posts 58 karma points
    Aug 14, 2015 @ 10:16
    Bilal khan
    0

    Sorry should have been more precise I have done all of that but still the problem is there. So not resolved I am afraid.

    Its so frustrating now!

    Thanks for your help though

Please Sign in or register to post replies

Write your reply to:

Draft