Click here to Skip to main content
15,885,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good morning to all i got the following error when i tried to send mail from my project "
Quote:
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.
"

Stack Trace:

Quote:
[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


please help me anyone
thanks in advance
By
Meganathan M
Posted

 
Share this answer
 
While back I got this error message when trying to consume a web service. I explained the way to fix that in
http://morrisbahrami.blogspot.com.au/2011/02/http-request-is-unauthorized-with.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900