Copied to clipboard

Flag this post as spam?

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


  • Maxi 13 posts 152 karma points
    Mar 23, 2015 @ 14:10
    Maxi
    0

    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

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 23, 2015 @ 14:58
    Jeroen Breuer
    0

    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

  • Maxi 13 posts 152 karma points
    Mar 23, 2015 @ 15:44
    Maxi
    100

    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).

    1. Unistall VSIX Version
    2. re-install the VSIX to upgrade to 2.1.1.38
    3. then uninstall the NuGet packages
    4. Reinstall/update teh NuGet Packages.

    Thanks

    Maxi

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies