webdav 查询在生产服务器上未经授权,在测试服务器上已授权

发布于 2024-08-13 03:29:32 字数 365 浏览 3 评论 0原文

我尝试使用 webdav 访问我的交换收件箱,它在我的测试服务器(windows 2003 64 位,包含 MOSS 安装)上运行,而不是在我的生产服务器(windows xp 32 位)上运行。

对于身份验证,我使用:

ICredentials credentials = CredentialCache.DefaultCredentials;  

从我的生产服务器我得到:

The remote server returned an error: (401) Unauthorized.    

我的生产服务器上可能存在什么问题,它如何在我的测试服务器上工作?

im trying to access my exchange inbox using webdav and it works from my testing server (windows 2003 64bit, contain MOSS instalation) and not from my production server (windows xp 32bit).

for authentication im using:

ICredentials credentials = CredentialCache.DefaultCredentials;  

from my production server im getting:

The remote server returned an error: (401) Unauthorized.    

what can be the problem on my production server and how come it work on my testing server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

把昨日还给我 2024-08-20 03:29:32

也许是因为在测试机上您也是管理员。尝试将凭据显式设置为已知具有所需访问权限的用户帐户。 DefaultCredentials 可能会恢复为本地计算机或网络服务帐户(尽管不确定)。

MAybe because on the test machine you are also the admin. Try setting the credentials explicitly to a user account known to have the required access. DefaultCredentials might revert to say the Local Machine or Network Service account (although not sure about that).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文