C# 为SOAP服务引用配置NTLM(Windows身份验证)

C# 为SOAP服务引用配置NTLM(Windows身份验证),c#,asp.net,soap,ntlm,service-reference,C#,Asp.net,Soap,Ntlm,Service Reference,我的程序中出现以下错误: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'. 我从它(以及我的程序如何工作)中了解到,我需要将我的windows凭据(NTLM)传递到SOAP协议,因为我的网站不允许匿名用户 我需要的是放在SOAP使用NTLM的

我的程序中出现以下错误:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.
我从它(以及我的程序如何工作)中了解到,我需要将我的windows凭据(NTLM)传递到SOAP协议,因为我的网站不允许匿名用户

我需要的是放在SOAP使用NTLM的地方。也许我不够清楚,对不起

谢谢