Unknown Web Method Exception when Calling Shared WebMethod

后端 未结 1 1675
感情败类
感情败类 2021-01-13 13:51

I\'m trying to implement a view tracking web service on my website. I\'m using JavaScript because I want to exclude any search bots from my tracked views. The problem is I\'

相关标签:
1条回答
  • 2021-01-13 14:45

    You cannot use a Shared (static in C#) method in a web service. You may be thinking of the use of static methods as "page methods" in an ASPX page. In a standalone ASMX web service, you can only use instance methods.

    0 讨论(0)
提交回复
热议问题