问题产生场景:自定义一个Web Service,放到SharePoint站点下。(说明:我开发的不是SharePoint的Web Service,只是一个普通的,因为要在sharepoint站点中使用,所以放在sharepoint站点下面。)

产生的错误:在服务器上面访问时没有问题,但是在客户端的IE访问时有如下的错误:异常信息:     异常类型: InvalidOperationException     异常消息: 因 URL 意外地以“/GetEncryptString”结束,请求格式无法识别。

Web Services方法代码如下:

  • [WebMethod]
  •         public string GetEncryptString(string userLoginName)
  •         {
  •             //Code
  •         }
  • 相关文章:

    • 2022-12-23
    • 2021-09-09
    • 2022-12-23
    • 2021-12-22
    • 2021-08-07
    • 2022-12-23
    • 2022-02-02
    猜你喜欢
    • 2022-12-23
    • 2022-01-27
    • 2022-01-11
    • 2021-12-29
    • 2021-07-16
    相关资源
    相似解决方案