1
Vote

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

description

When I try to integrate highrise to a Asp.net mvc application. I got an expection like this.
After searching the error in google,I didn't get any solution
Please suggest any solution




[WebException: The remote server returned an error: (401) Unauthorized.]
System.Net.HttpWebRequest.GetResponse() +6114995
System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +48

[MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Basic realm="Application"'.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9456095
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
DotNet37Signals.Client.Highrise.Contracts.IAccountContract.Get() +0
PMS.ContactsApi.HighriseApi.GetContacts(HighriseClient client) in D:\Martin\Martin\Project Proposal Management\PMS\PMS.ContactsApi\HighriseApi.cs:62
_Default.Page_Load(Object sender, EventArgs e) in d:\Martin\ContactsWeb\Default.aspx.cs:15
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

comments