2016-12-24 9 views
0

Android AppでXamarinのParse SDKを使用しています。ログインしようとするとコンソールにエラーが表示され、何も起こりません。これは、エラーがどのように見えるかです:ログイン時にXamarinエラーを解析する

System.ArgumentNullException: Value cannot be null. 
Parameter name: uriString 
    at System.Uri..ctor (System.String uriString) [0x0000c] in /Users/builder/data/lanes/4009/0a4ab557/source/mono/mcs/class/referencesource/System/net/System/URI.cs:406 
    at Parse.Internal.ParseCommand..ctor (System.String relativeUri, System.String method, System.String sessionToken, System.Collections.Generic.IList`1[T] headers, System.IO.Stream stream, System.String contentType) [0x00014] in <5d1c0c2b96a7483d85e5c63b3e156125>:0 
    at Parse.Internal.ParseCommand..ctor (System.String relativeUri, System.String method, System.String sessionToken, System.Collections.Generic.IList`1[T] headers, System.Collections.Generic.IDictionary`2[TKey,TValue] data) [0x00000] in <5d1c0c2b96a7483d85e5c63b3e156125>:0 
    at Parse.Internal.ParseUserController.LogInAsync (System.String username, System.String password, System.Threading.CancellationToken cancellationToken) [0x00030] in <5d1c0c2b96a7483d85e5c63b3e156125>:0 
    at Parse.ParseUser.LogInAsync (System.String username, System.String password, System.Threading.CancellationToken cancellationToken) [0x00005] in <5d1c0c2b96a7483d85e5c63b3e156125>:0 
    at Parse.ParseUser.LogInAsync (System.String username, System.String password) [0x00007] in <5d1c0c2b96a7483d85e5c63b3e156125>:0 
    at ViroMusicApp.MainActivity+<logIn>c__async0.MoveNext() [0x00034] in /Users/ctabuyo/Desktop/Viro App/Android Project/ViroMusicApp/ViroMusicApp/Controller/MainActivity.cs:44 

は、この方法では、私のログです:

private async void logIn(string Username, string Password) 
     { 
      try 
      { 
       await ParseUser.LogInAsync(username: Username, password: Password); 
      } 
      catch (Exception e) 
      { 
       Console.WriteLine(e); 
      } 


     } 

が、私は感謝マックプレビュー

ため

のVisual Studioを使用しています!

+0

独自の解析サーバーバックエンドを今すぐロールする必要があります。公式サーバーはシャットダウンされました。 http://blog.parse.com/announcements/moving-on/ –

答えて

2

サーバーのURLを正しく設定していないという点があります。 login()メソッドを呼び出す前に確認してください。

var config = new ParseClient.Configuration 
{ 
    ApplicationId = "xxxx", 
    Server = "http://xxxxxx" 
}; 

ParseClient.Initialize(config);