【问题标题】:SharePoint : web service permission errorSharePoint:Web 服务权限错误
【发布时间】:2009-11-09 15:23:40
【问题描述】:

我有一个共享点站点,我正在调用一个标准的共享点网络服务。

我这样创建网络服务请求:

wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx";

当我使用 localhost 作为主机名时,它可以工作,但是当我使用机器名时,我收到错误 401 Unauthorized。

我正在设置这样的凭据:

    NetworkCredential NC;
    if (string.IsNullOrEmpty(this.Domain))
    {
        NC = new NetworkCredential(this.Username, this.Password);
    }
    else
    {
        NC = new NetworkCredential(this.Username, this.Password, this.Domain);
    }


    //Lists
    wsLists.Timeout = -1;
    wsLists.Credentials = NC;

    //Dws
    wsDws.Timeout = -1;
    wsDws.Credentials = NC;

有什么办法可以解决这个问题吗?

【问题讨论】:

  • 您的问题解决了吗?

标签: web-services sharepoint permissions wss


【解决方案1】:

您需要更改注册表中的一些设置才能使其正常工作。我知道这很烦人,但它确实有效: http://koenvosters.wordpress.com/2009/06/15/access-denied-when-using-hostname-search-and-site-on-moss-2007/

【讨论】:

  • 是的,他们也这样做了,他们提供了 2 种解决问题的方法 - 两种方法都做了,并仔细检查以确保不是回送检查问题。
【解决方案2】:

这可能是臭名昭著的 DisableLoopBackCheck 问题。获取解决方案及原因here

【讨论】:

    猜你喜欢
    • 2015-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-03
    • 1970-01-01
    • 2018-10-21
    • 1970-01-01
    相关资源
    最近更新 更多