我在这里做了一件非常基本的事情。我有一个名为"分数"我想在哪里添加一个新对象。我还在App.xaml.cs中添加了我的应用程序ID和.net密钥。但我一直收到这个错误:
A first chance exception of type 'Parse.ParseException' occurred in mscorlib.dll
并指出:
await gameScore.SaveAsync();
以下是代码:
public sealed partial class MainPage : Page
{
public MainPage()
{
this.InitializeComponent();
}
async private void signInClick(object sender, RoutedEventArgs e)
{
ParseObject gameScore = new ParseObject("Score");
gameScore["score"] = 1337;
gameScore["name"] = "Sean Plott";
await gameScore.SaveAsync();
}
}
如何解决此ParseException?