# Why is ConfigManager missing in Context?

**URL:** https://discussions.unity.com/t/why-is-configmanager-missing-in-context/949669
**Category:** Remote Config
**Tags:** Remote-Config, Unity-Documentation, Question
**Created:** [June 7, 2024, 9:02pm UTC](https://discussions.unity.com/t/why-is-configmanager-missing-in-context/949669 "2024-06-07T21:02:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![momcilo07](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@momcilo07](https://discussions.unity.com/u/momcilo07)
#### Post date: [June 7, 2024, 9:02pm UTC](https://discussions.unity.com/t/why-is-configmanager-missing-in-context/949669/1 "2024-06-07T21:02:06Z")

</div>

PLEASE im looking for a solution to this for HOURS now.  
I imported all Namespaces am i missing some?

 ![9878901--1424883--image_2024-06-07_225957045.png](https://europe1.discourse-cdn.com/unity/original/3X/7/7/77fc45ed872fb94ebdb0c5258b02b349b9b0bec4.png)

---

<div class="post-metadata">

### Author: ![GabKBelmonte](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/gabkbelmonte/32/101953_2.png) [@GabKBelmonte](https://discussions.unity.com/u/GabKBelmonte)
#### Post date: [June 7, 2024, 9:21pm UTC](https://discussions.unity.com/t/why-is-configmanager-missing-in-context/949669/2 "2024-06-07T21:21:24Z")

</div>

Hi,

It looks like you’re trying to get remote-config settings.

1. make sure you have the right references if you are using an asmdef.

```csharp
        "Unity.Services.Core",
        "Unity.Services.Authentication",
        "Unity.Services.RemoteConfig",

```

1. Try the following code:

```csharp
using System;
using Unity.Services.Authentication;
using Unity.Services.Core;
using Unity.Services.RemoteConfig;
using UnityEngine;

public class ConfigGetter : MonoBehaviour
{
    async void Start()
    {
        RuntimeConfig res;
        try
        {
            // Initialize 
            await UnityServices.InitializeAsync();

            // Sign in
            await AuthenticationService.Instance.SignInAnonymouslyAsync();

            //Fetch configuration settings from the remote service:
            res = await RemoteConfigService.Instance.FetchConfigsAsync(new EmptyStruct(), new EmptyStruct());

            Debug.Log(res.config);
        }
        catch (Exception e)
        {
            Debug.LogError(e);
            Debug.LogError("Failed to fetch configs, is your project linked and configuration deployed?");
        }
    }

    struct EmptyStruct {}
}

```

---

<div class="post-metadata">

### Author: ![momcilo07](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@momcilo07](https://discussions.unity.com/u/momcilo07)
#### Post date: [June 7, 2024, 9:32pm UTC](https://discussions.unity.com/t/why-is-configmanager-missing-in-context/949669/3 "2024-06-07T21:32:29Z")

</div>

> [@GabKBelmonte](#):
>
> Hi,
> 
> It looks like you’re trying to get remote-config settings.
> 
> 1. make sure you have the right references if you are using an asmdef.
> 
> ```csharp
> "Unity.Services.Core",
> "Unity.Services.Authentication",
> "Unity.Services.RemoteConfig",
> 
> ```
> 
> 1. Try the following code:
> 
> ```csharp
> using System;
> using Unity.Services.Authentication;
> using Unity.Services.Core;
> using Unity.Services.RemoteConfig;
> using UnityEngine;
> 
> public class ConfigGetter : MonoBehaviour
> {
> async void Start()
> {
> RuntimeConfig res;
> try
> {
> // Initialize
> await UnityServices.InitializeAsync();
> 
> // Sign in
> await AuthenticationService.Instance.SignInAnonymouslyAsync();
> 
> //Fetch configuration settings from the remote service:
> res = await RemoteConfigService.Instance.FetchConfigsAsync(new EmptyStruct(), new EmptyStruct());
> 
> Debug.Log(res.config);
> }
> catch (Exception e)
> {
> Debug.LogError(e);
> Debug.LogError("Failed to fetch configs, is your project linked and configuration deployed?");
> }
> }
> 
> struct EmptyStruct {}
> }
> 
> ```

This Code works but not mine. I only got a Probleme with the ConfigManager

---

<div class="post-metadata">

### Author: ![GabKBelmonte](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/gabkbelmonte/32/101953_2.png) [@GabKBelmonte](https://discussions.unity.com/u/GabKBelmonte)
#### Post date: [June 10, 2024, 3:16pm UTC](https://discussions.unity.com/t/why-is-configmanager-missing-in-context/949669/4 "2024-06-10T15:16:50Z")

</div>

Hi  
Does the code not achieve the intended objective anyway?  
I believe the ConfigManager is no longer part of the public API maybe you’ve upgraded the version of the package you’re using.  
I can see `RemoteConfigService` now has those methods.

Cheers.
