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)
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](Func
1 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](Func
1 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)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
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!
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
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
Did it solve your problem ?
Dave
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
is working on a reply...