zoukankan      html  css  js  c++  java
  • SharePoint 2010 WebService system cannot find the file specified. (Exception from HRESULT: 0x80070002

    when use webservice on SP 2010, caught an exception:

    {"Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."}
    "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"

    Root cause:

    Adding the web reference by navigating to the /_vti_bin/Lists.asmx page DOES NOT mean that this site will be the site that the queries are run on. You still have to set the URL property of the "Lists" variable I created first. Assuming that "mosslists" is the name of the web reference I just created, the following code creates a "list" object, then sets the URL property of that object:

                mosslists.Lists lists = new mosslists.Lists();

                lists.Url = "http:///_vti_bin/Lists.asmx";



    So after all that talk about already setting the URL.

  • 相关阅读:
    文本框模糊匹配(纯html+jquery简单实现)
    ajax 基础2
    ajax 基础
    Js 实战3(实现全选)
    JS 实战2(邮箱选人功能)
    JS 实战1(添加、删除)
    Js 图片轮播渐隐效果
    Js 手风琴效果
    树上莫队
    洛谷 3676
  • 原文地址:https://www.cnblogs.com/csts/p/3114325.html
Copyright © 2011-2022 走看看