在Win 7上以标准用户身份运行时,无法从WS获取数据 [英] Unable to get data from WS when running with standard user on Win 7

查看:130
本文介绍了在Win 7上以标准用户身份运行时,无法从WS获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows 7上与标准用户一起运行正在运行的winform应用程序(.NET 3.5).该应用程序尝试从WebService获取数据,但不知何故将其清空.
如果我使用admin运行相同的应用程序-它可以工作.
我在Wireshark(以太网)中进行了捕获,发现来自WS的数据到达了我的机器,但是不知何故我将其清空了.
有任何想法吗?

I trying to run a working winform application (.NET 3.5) with a standard user on windows 7. The application tries to get data from a WebService, but somehow gets it empty.
If I run the same application with admin - it works.
I took a capture in Wireshark (ethereal), and I see that the data from WS arrives to my machine, but somehow I get it empty.
Any ideas?

推荐答案

它必须是某种安全凭证.

该Web服务可能正在使用Windows身份验证,并且管理员可能具有权限,而本地用户则没有权限.

您可以尝试在Web服务上打开匿名身份验证,然后查看它是否适用于本地用户.如果这样做的话,那么就可以放弃它的网络证书.

http://msdn.microsoft.com/en-us/library/一样追逐链接system.net.networkcredential.aspx [ ^ ]

为了提高速度,如果您可以选择NTLM或Basic而不是Negotiate,那么凭证验证将减少一个Web服务调用.
It would have to be Security Credentials of some sort.

The Web Service could be using Windows Authentication and the admin might have rights, the local user doesn''t.

You could try to turn on Anonymous authentication on the web service and see if it works for the local user then. If it does then its a bit of a give away its Network Credentials.

Chase links around like http://msdn.microsoft.com/en-us/library/system.net.networkcredential.aspx[^]

Oh and for speed if you can choose one of NTLM or Basic instead of Negotiate then the credential validation takes one less web service call.


这篇关于在Win 7上以标准用户身份运行时,无法从WS获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆