XboxLive Rich Presence Strings

#XboxLive Rich Presence Strings#
I have a lot of difficulties setting Rich Presence strings.

I just use the API SetPresenceAsync as the document says:

But my game threw some bugs:

System.IO.FileNotFoundException: Failed todownload specify resource 。 (Exception from HRESULT: 0x800C0008)

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

at steamManager.d__16.MoveNext()


These are my codes:

    public void AddUser(XboxLiveUser user)
{       
        if (m_user == null)
        {
            m_user = user;
            m_context = new XboxLiveContext(user);        
        }
} 
     

    public void OnGUI()
{
    lock (m_logText)
    {
        DrawTextWithShadow(10, 300, 800, 900, m_logText);
    }

    ClearLog();

    if (GUI.Button(new Rect(10, 150, 150, 30), "Cycle Presence"))
    {
        CyclePresence();
    }
 
} 

  private async void CyclePresence()
{  
     if (XboxLiveIntegration.AchievementManager.GetInstance().IsSignedIn)
    {
        AddUser(XboxLiveIntegration.AchievementManager.GetInstance().XboxLiveUser);                       
       
        try
        {
            PresenceData data = new PresenceData(m_context.AppConfig.ServiceConfigurationId, m_presenceIds[m_currentPresenceId]);
           
            await m_context.PresenceService.SetPresenceAsync(false, data);            
          
            LogLine("CyclePresence succeed. ");
        }
        catch (Exception ex)
        {
            LogLine("CyclePresence failed: " + ex.ToString());                
        }
    }

Actually, I even don’t know how to link the settings( for Rich Presence Strings) in XDP with the API. Could anyone please give me some suggestions ?

Thanks a lot !!!

I have set the Rich Presence Strings successfully . The real reason why my game threw that exception is I did not enable Internet (Client) capability in VS.(As this picture shows)

Since I could set up achievements successfully without this configuration , I ignored that.