Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

AWS credentials & IL2CPP ConfigurationManager exception

Discussion in 'General Discussion' started by Dinochrome, May 18, 2022.

  1. Dinochrome

    Dinochrome

    Joined:
    Apr 23, 2018
    Posts:
    19
    Hello everyone!

    I'm using AWS SDK 3 and I'm trying to get access to DynamoDB. It works in Editor, but as soon as I build Linux dedicated server I get an error:
    Code (CSharp):
    1. NotSupportedException: System.Configuration.ConfigurationManager::get_AppSettings
    2.   at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in <00000000000000000000000000000000>:0
    3.   at Amazon.AWSConfigs..cctor () [0x00000] in <00000000000000000000000000000000>:0
    4. ...
    5.  
    I tried to use Cognito and CredentialProfileStoreChain, both lead to the same result. I asked google and got an answer that there is a certain problem in IL2CPP. So... now I'm a little stuck. Is there a way to use AWS Cognito and build a project using il2cpp? May be there is a workaround?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,773
    IL2CPP does not support System.Configuration.ConfigurationManager, so if the code in AWS Cognito uses it, then you will need to stick with Mono as a scripting backend.
     
  3. Dinochrome

    Dinochrome

    Joined:
    Apr 23, 2018
    Posts:
    19
    Got it. Thank you!