ASP.NET Web Method that accepts a List is failing with “Web Service method name is not valid.”

后端 未结 10 783
感动是毒
感动是毒 2020-12-10 07:25

I want to create a web method that accepts a List of custom objects (passed in via jQuery/JSON).

When I run the website locally everything seems to work. jQuery an

10条回答
  •  [愿得一人]
    2020-12-10 07:40

    You may want to check your webServices/protocols element in the system.web section and ensure that HttpPost is added. Typically, local post is enabled by default as development mode but not for remote, which is what it will be when the service is deployed on the server...

    
     ...
     
      
       
      
     
    
    

    I go into more detail here

提交回复
热议问题