The requested resource does not support http method 'GET'
I'm using nupickers on a 7.4 site.
Suddenly two "json checkbox pickers" have disaeppeared in the backoffice. Console says 500 error, and the url shows the error
)]}', {"Message":"The requested resource does not support http method 'GET'."}
Any ideas what to do? Webhost upgraded webhotels, and it has happened some time after that...
eg because of the 'upgrade' the webservice is only now available on TLS 1.2, but the error message is not helpful! - telling your site to run under TLS1.2 means it can make the GET request once more.
... of course may be wrong in this instance :-P but sounds like something has changed, that is preventing the request to be made, eg you normally see that error when people have accidentally imported the System.Web.Mvc namespace instead of System.Web.Http for decorating the Get Request... (but that's not the case here, as you have had it working before)
The requested resource does not support http method 'GET'
I'm using nupickers on a 7.4 site. Suddenly two "json checkbox pickers" have disaeppeared in the backoffice. Console says 500 error, and the url shows the error
Any ideas what to do? Webhost upgraded webhotels, and it has happened some time after that...
the json from one of the pickers looks like this
Hi Claushingebjerg
When you say Webhost upgraded webhotels, what does that mean?
Generally, I've found the first thing to check when a host upgrades an environment and API requests stop working is TLS support!
There is a brief explanation here:
https://codeshare.co.uk/blog/how-to-force-a-net-website-to-use-tls-12/
eg because of the 'upgrade' the webservice is only now available on TLS 1.2, but the error message is not helpful! - telling your site to run under TLS1.2 means it can make the GET request once more.
... of course may be wrong in this instance :-P but sounds like something has changed, that is preventing the request to be made, eg you normally see that error when people have accidentally imported the System.Web.Mvc namespace instead of System.Web.Http for decorating the Get Request... (but that's not the case here, as you have had it working before)
regards
marc
is working on a reply...