gpt4 book ai didi

c# - 无法添加对 SharePoint 列表服务的引用

转载 作者:太空狗 更新时间:2023-10-29 20:42:31 24 4
gpt4 key购买 nike

我试图在 https://abcd/_vti_bin/lists.asmx 添加对 SharePoint 列表服务的引用,但出现以下错误:

There was an error downloading 'https://abcd/_vti_bin/lists.asmx/_vti_bin/ListData.svc/$metadata'. The request failed with HTTP status 404: Not Found. Metadata contains a reference that cannot be resolved: 'https://abcd/_vti_bin/lists.asmx'. The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'. The remote server returned an error: (401) Unauthorized. If the service is defined in the current solution, try building the solution and adding the service reference again.

SharePoint 站点启用了 Windows 身份验证、启用了 ASP.NET 模拟并禁用了匿名访问。

我能够使用 IE 连接到该服务;它会提示输入 NT 用户 ID 和密码。当我尝试从 Windows 应用程序添加引用时出现错误。

任何帮助将不胜感激。

环境:Visual Studio 2012,在 IIS 7.5 上托管的 Sharepoint,Windows Server 2008 R2

最佳答案

  • 右键单击 References 文件夹,然后单击“添加服务引用”。
  • 在“添加服务引用”向导中,单击“高级...”按钮。
  • 在“高级”向导中单击“添加 Web 引用...然后添加服务引用

how to add sharepoint list.asmx web service

关于c# - 无法添加对 SharePoint 列表服务的引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16441042/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com