0

I am trying to use the C# StatsManager by first adding the localuser. My code is the following

XboxLiveUser user = new XboxLiveUser();
SignInResult x = await user.SignInAsync(); //returns successfully
statManager = StatsManager.Singleton;
statManager.AddLocalUser(user);

main loop:

List<StatEvent> statevents = statManager.DoWork
if (statevents.Count>0)
{

}

The local user added event never fires and instead it throws an error in the API which is the following. Throws an error on

getResponseCompletionSource.SetResult(getResponseTask.Result);

XboxLiveHttpRequest.cs Line 117

An exception of type 'System.AggregateException' occurred in mscorlib.ni.dll but was not handled in user code

One or more errors occurred. (One or more errors occurred. (The remote server returned an error: (404) Not Found.))

what do you think could be the problem? The other API's work, able to sign in, get GamerTag and GamerPic from Socialmanager, etc...

also see screenshoterror in API

Thanks

4

1 回答 1

0

XboxServices.config如果您的项目加载的文件有问题,则可能会发生此错误。

验证配置文件是否包含ServiceConfigurationId设置为适当值的属性。

注意:如果您使用 Xbox Live 关联向导,它应该会自动下拉适当的值并填充.config文件。

于 2017-03-20T23:27:43.750 回答