Validation error on data save

I am developing an website using umbraco 16.

I had no problems when developing the site on localhost, but when publishing my website to a Windows serwer with IIS I can not save any changes on my imported/newly created dataTypes,site content or template.

Every PUT i send returns a 400 bad request result. For example when sending a put request to : /umbraco/management/api/v1/document-type/{GUID}

the payload is provided and is exactly the same as on my localhost where it works (imported with uSync).

Response :

{“type”: “https://tools.ietf.org/html/rfc9110#section-15.5.1”,“title”: “One or more validation errors occurred.”,“status”: 400,“errors”: [{“$.$”: [“The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.”]},{“$.requestModel”: [“The requestModel field is required.”]}],“traceId”: “00-a9d6bd35c558ac65c4ca056cf186e025-4783850f948bcb17-00”}

Did anyone encountered a similar problem ?

hey, i’m also encountering this, did you happen to find a solution? thanks

Hey.

Yeah, in my case it was an invalid IIS app pool configuration. The app pool should be configured to no managed code instead of .net 4.0. I also added the missing PUT and DELETE verbs in the handlers section i’m my web.config file.

Hope this helps.

Thank you Tomasz! I will give this a go. Cheers