'PageMethods undefined 'or' object does not support this property or method 'solution sharing

  • 2020-05-12 02:26:32
  • OfStack

1. Check whether web.config has included code that supports asp.net ajax
2. Check whether EnableMethods=true is set in ScriptManager
3. Check whether the reference in the backstage cs namespace System. Web. Services or joined [System. Web. Services. WebMethod]
4. Background functions must be public static

5. Another situation is that, in general, some people copy the aspx page in conjunction with, < %@ Page Language="C#" AutoEventWireup="true" CodeFile="addSight.aspx.cs" Inherits="Page_message_addSight" % > 1 copy was made, so there was an error in the mapping of the file header, causing the PageMethods method to point to an error, which did not show the error there, so check for such an error. This is a common rookie mistake.

Related articles: