Owncloud registerMethod

when I use owncloud 8.0.8 to register an accout ,I use the example :https://user:password@yourowncloud.com/ocs/v1.php/apps/yourapp
and my code is like this:
string res = await clients.GetStringAsync("https://admin:admin@localhost:10000/owncloud/ocs/v1.php/apps/yourapp");
but when I debug it there is a mistake,and the message is :slight_smile:用户代码未处理 System.Net.Http.HttpRequestException
HResult=-2146233088
Message=发送请求时出错。
Source=mscorlib
StackTrace:
在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
在 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
在 ownCloud.Program.d__2.MoveNext() 位置 d:\项目\ownCloud\ownCloud\Program.cs:行号 52
InnerException: System.Net.WebException
HResult=-2146233079
Message=无法连接到远程服务器
Source=System
StackTrace:
在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
在 System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
InnerException: System.Net.Sockets.SocketException
HResult=-2147467259
Message=由于目标计算机积极拒绝,无法连接。 127.0.0.1:10000
Source=System
ErrorCode=10061
NativeErrorCode=10061
StackTrace:
在 System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
在 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
InnerException:
so anyone can help me to solve the question!

And again closing as a duplicate of:

Keep your questions on one topic or you get a little timeout from this forums.