Support Forum [ All Topics | New Topic ]

Thread: Server was unable to process request. ---> Credentials can only be passed over secure connections (HTTPS)

Server was unable to process request. ---> Credentials can only be passed over secure connections (HTTPS)
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ServiceModel.FaultException: Server was unable to process request. ---> Credentials can only be passed over secure connections (HTTPS)

Source error 源错误:

行 1227: [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
行 1228: ComkUI.ServiceReference1.LoginResponse ComkUI.ServiceReference1.FeedSoap.Login(ComkUI.ServiceReference1.LoginRequest request) {
行 1229: return base.Channel.Login(request);
行 1230: }
行 1231:

The source code 原代码:

FeedSoapClient RF = new FeedSoapClient();
FeedParameters Params = new FeedParameters();

//This must be done in HTTPS protocol
RF.Login("user", "password");

//After log in you will receive a encrypted ticket with your credentials. This will be used to authenticate your session.
//Now you can choose to change the protocol to HTTP so it works faster.
//RF.Url = RF.Url.Replace("https", "http");

How to modify, thank you!



>> add a comment
Luck
10/14/2014 08:36


1 Replies:

Change the web service endpoint (reference) from http to https

>> add a comment
Leo
10/19/2014 1:07:00 AM