jQuery PageMethods 401 Authentication failed with FriendlyUrls
问题 I have FriendlyUrls nuget package added to WebForm application. In RegisterRoutes I have: var settings = new FriendlyUrlSettings(); //settings.AutoRedirectMode = RedirectMode.Off; settings.AutoRedirectMode = RedirectMode.Permanent; routes.EnableFriendlyUrls(settings); I created 2 pages WebForm1.aspx and WebForm2.aspx On WebForm1.aspx I referenced jQuery v1.9.1 in the head simply added the following inside the default div tag in the body: <div id="dvResult"></div> <script type="text/javascript