ZBU Response status code does not indicate success (InternalServerError)
Hi There,
I have grabbed a clean copy of hybrid and updated it to umbraco version 7.2.4.
I then tried to save on the ZBU and kept gettng the error stating invalid version (0,0,0,0), which a few other people has came accross. I updated both ZBU site integration and libraries to the latest version 2.1.1-final and this stoped the version error but started giving me the error below.
ZbuModelsBuilder: Starting 23/03/2015 13:04:37.
ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: Exception: Response status code does not indicate success (InternalServerError)
{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at GetClientVersionStringFromValidateClientVersionData(Object )\r\n at System.Web.Http.Metadata.Providers.AssociatedMetadataProvider`1.<>c__DisplayClass3.<GetMetadataForPropertiesImpl>b__0()\r\n at System.Web.Http.Metadata.ModelMetadata.get_Model()\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateNodeAndChildren(ModelMetadata metadata, ValidationContext validationContext, Object container)\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateProperties(ModelMetadata metadata, ValidationContext validationContext)\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateNodeAndChildren(ModelMetadata metadata, ValidationContext validationContext, Object container)\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.Validate(Object model, Type type, ModelMetadataProvider metadataProvider, HttpActionContext actionContext, String keyPrefix)\r\n at System.Web.Http.ModelBinding.FormatterParameterBinding.<>c__DisplayClass1.<ExecuteBindingAsync>b__0(Object model)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<>c__DisplayClass36`1.<>c__DisplayClass38.<Then>b__35()\r\n at System.Threading.Tasks.TaskHelpersExtensions.<>c__DisplayClass49.<ToAsyncVoidTask>b__48()\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()
I got it working. I was on 2.1.1.38 for the VSIX version, however, I had installed/updated the NuGet package before the VSIX version. Guessing it should be done in a certain order.
so incase anyone else comes across this (and to remind myself for the future).
ZBU Response status code does not indicate success (InternalServerError)
Hi There,
I have grabbed a clean copy of hybrid and updated it to umbraco version 7.2.4.
I then tried to save on the ZBU and kept gettng the error stating invalid version (0,0,0,0), which a few other people has came accross. I updated both ZBU site integration and libraries to the latest version 2.1.1-final and this stoped the version error but started giving me the error below.
ZbuModelsBuilder: Starting 23/03/2015 13:04:37.
ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: Exception: Response status code does not indicate success (InternalServerError)
{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at GetClientVersionStringFromValidateClientVersionData(Object )\r\n at System.Web.Http.Metadata.Providers.AssociatedMetadataProvider`1.<>c__DisplayClass3.<GetMetadataForPropertiesImpl>b__0()\r\n at System.Web.Http.Metadata.ModelMetadata.get_Model()\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateNodeAndChildren(ModelMetadata metadata, ValidationContext validationContext, Object container)\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateProperties(ModelMetadata metadata, ValidationContext validationContext)\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.ValidateNodeAndChildren(ModelMetadata metadata, ValidationContext validationContext, Object container)\r\n at System.Web.Http.Validation.DefaultBodyModelValidator.Validate(Object model, Type type, ModelMetadataProvider metadataProvider, HttpActionContext actionContext, String keyPrefix)\r\n at System.Web.Http.ModelBinding.FormatterParameterBinding.<>c__DisplayClass1.<ExecuteBindingAsync>b__0(Object model)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<>c__DisplayClass36`1.<>c__DisplayClass38.<Then>b__35()\r\n at System.Threading.Tasks.TaskHelpersExtensions.<>c__DisplayClass49.<ToAsyncVoidTask>b__48()\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)
I have tried updating other nuget packages but still have had no luck fixing this problem.
Thanks
Maxi
Hello,
Do you also have the v2.1.1 VSIX version?
Maybe this issue can help: https://github.com/zpqrtbnk/Zbu.ModelsBuilder/issues/44
Jeroen
Hi Jeroen,
I got it working. I was on 2.1.1.38 for the VSIX version, however, I had installed/updated the NuGet package before the VSIX version. Guessing it should be done in a certain order.
so incase anyone else comes across this (and to remind myself for the future).
Thanks
Maxi
is working on a reply...