问题描述
所有人,早上好,当我尝试从项目中发送邮件时出现以下错误"
Good morning to all i got the following error when i tried to send mail from my project "
HTTP请求未经授权客户端身份验证方案匿名".从服务器收到的身份验证标头是协商,NTLM".
The HTTP request is unauthorized with client authentication scheme ''Anonymous''. The authentication header received from the server was ''Negotiate,NTLM''.
"
堆栈跟踪:
"
Stack Trace:
[WebException:远程服务器返回错误:(401)未经授权.]
System.Net.HttpWebRequest.GetResponse()+1205
System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan超时)+103
[MessageSecurityException:使用客户端身份验证方案匿名"对HTTP请求进行了未经授权的操作.从服务器收到的身份验证标头是"Negotiate,NTLM".]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)+239
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32类型)+1114
Ncoretech.WebUX.AdminMenuSearchService.IAdminSearchService.GetRestaurantCities()+0
C:\ Inetpub \ wwwroot \ Ncoretech-Admin \ solution \ Ncoretech-Web \ Ncoretech.WebUX \ Service References \ AdminMenuSearchService \ Reference.cs:7541
中的Ncoretech.WebUX.AdminMenuSearchService.AdminSearchServiceClient.GetRestaurantCities() C:\ Inetpub \ wwwroot \ Ncoretech-Admin \ solution \ Ncoretech-Web \ Ncoretech.WebUX \ Adminstrators \ SendAllTypeOfMails.aspx.cs:68中的Ncoretech.WebUX.Adminstrators.SendAllTypeOfMails.CityName() C:\ Inetpub \ wwwroot \ Ncoretech-Admin \ solution \ Ncoretech-Web \ Ncoretech.WebUX \ Adminstrators \ SendAllTypeOfMails.aspx.cs:28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,Object o,Object t,EventArgs e)+14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender,EventArgs e)+46
System.Web.UI.Control.OnLoad(EventArgs e)+83
System.Web.UI.Control.LoadRecursive()+120
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+3940
[WebException: The remote server returned an error: (401) Unauthorized.]
System.Net.HttpWebRequest.GetResponse() +1205
System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +103
[MessageSecurityException: The HTTP request is unauthorized with client authentication scheme ''Anonymous''. The authentication header received from the server was ''Negotiate,NTLM''.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +239
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1114
Ncoretech.WebUX.AdminMenuSearchService.IAdminSearchService.GetRestaurantCities() +0
Ncoretech.WebUX.AdminMenuSearchService.AdminSearchServiceClient.GetRestaurantCities() in C:\Inetpub\wwwroot\Ncoretech-Admin\solution\Ncoretech - Web\Ncoretech.WebUX\Service References\AdminMenuSearchService\Reference.cs:7541
Ncoretech.WebUX.Adminstrators.SendAllTypeOfMails.CityName() in C:\Inetpub\wwwroot\Ncoretech-Admin\solution\Ncoretech - Web\Ncoretech.WebUX\Adminstrators\SendAllTypeOfMails.aspx.cs:68
Ncoretech.WebUX.Adminstrators.SendAllTypeOfMails.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\Ncoretech-Admin\solution\Ncoretech - Web\Ncoretech.WebUX\Adminstrators\SendAllTypeOfMails.aspx.cs:28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +46
System.Web.UI.Control.OnLoad(EventArgs e) +83
System.Web.UI.Control.LoadRecursive() +120
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3940
请任何人帮助我
在此先感谢
由
Meganathan M
please help me anyone
thanks in advance
By
Meganathan M
推荐答案
这篇关于HTTP请求未经客户端身份验证方案“匿名"授权.从服务器收到的身份验证标头是"Negotiate,NTLM".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!