我真的很难解决这个错误。请帮忙。我创建WebRequest或从浏览器调用时,我收到'方法不允许'错误。
<OperationContract()> _
<WebInvoke(Method:="PUT",
RequestFormat:=WebMessageFormat.Json,
UriTemplate:="GetResponseCode")> _
Function GetResponseCode(ByVal obj As ObjClass) As String
request = WebRequest.Create("http://localhost:1143/ServiceHost.svc/REST/GetResponseCode")