c# - The remote server returned an error: "(405) Method Not Allowed" -
After reading different answers against a single thread, I mentioned almost all the options in my discussion, Also getting the error:
Error number 1 : Below is my code: I get an error on the last line i.e. If I use Use: On your service page, where you declare your method, type in the upper case Remote server returned an error: (404) not found. Error code 2 :
Remote server returned an error: (405) method is not allowed .
var httpWebRequest = (HttpWebRequest) WebRequest.Create ("url? Parameter1 = PC and user = U1 and password = P1 "); HttpWebRequest.ContentType = "App / Jason; Charset = UTF-8"; HttpWebRequest.method = "POST"; HttpWebRequest.Accept = "App / Jason"; Var httpResponse = (HttpWebResponse) httpWebRequest.GetResponse ();
var httpResponse = (HTTP webbense) httpWebRequest.GetResponse ();
httpWebRequest.Method = "get" then I get the error number 1 mentioned above and if I
httpWebRequest.Method = "Post" I get error number 2.
[Operation Contract] [WebInvoc (method = "Post", Response format = Web message format. Jason, EuryTaplet = "ABCNS")
Posts I think you are typing in lowercase.
Comments
Post a Comment