Search Unity

Unity Monetization error after upgrading Unity

Discussion in 'Unity Ads' started by B1ngo-, Jul 3, 2019.

  1. B1ngo-

    B1ngo-

    Joined:
    Mar 10, 2018
    Posts:
    6
    Hello, my project were working just fine on Unity 2018.3.11f1
    After i upgraded to Unity 2019.2.0b7 i started getting an error when trying to initialize it :

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. System.Net.AutoWebProxyScriptEngine.InitializeRegistryGlobalProxy () (at <0079a30f96a047348857e1cecc6c638a>:0)
    3. System.Net.AutoWebProxyScriptEngine.GetWebProxyData () (at <0079a30f96a047348857e1cecc6c638a>:0)
    4. System.Net.WebProxy.UnsafeUpdateFromRegistry () (at <0079a30f96a047348857e1cecc6c638a>:0)
    5. System.Net.WebProxy..ctor (System.Boolean enableAutoproxy) (at <0079a30f96a047348857e1cecc6c638a>:0)
    6. System.Net.WebProxy.CreateDefaultProxy () (at <0079a30f96a047348857e1cecc6c638a>:0)
    7. System.Net.Configuration.DefaultProxySectionInternal.GetSystemWebProxy () (at <0079a30f96a047348857e1cecc6c638a>:0)
    8. System.Net.Configuration.DefaultProxySectionInternal.GetDefaultProxy_UsingOldMonoCode () (at <0079a30f96a047348857e1cecc6c638a>:0)
    9. System.Net.Configuration.DefaultProxySectionInternal.GetSection () (at <0079a30f96a047348857e1cecc6c638a>:0)
    10. System.Net.WebRequest.get_InternalDefaultWebProxy () (at <0079a30f96a047348857e1cecc6c638a>:0)
    11. System.Net.HttpWebRequest..ctor (System.Uri uri) (at <0079a30f96a047348857e1cecc6c638a>:0)
    12. (wrapper remoting-invoke-with-check) System.Net.HttpWebRequest..ctor(System.Uri)
    13. System.Net.HttpRequestCreator.Create (System.Uri uri) (at <0079a30f96a047348857e1cecc6c638a>:0)
    14. System.Net.WebRequest.Create (System.Uri requestUri, System.Boolean useUriBase) (at <0079a30f96a047348857e1cecc6c638a>:0)
    15. System.Net.WebRequest.Create (System.String requestUriString) (at <0079a30f96a047348857e1cecc6c638a>:0)
    16. UnityEngine.Monetization.Platform.Initialize (System.String gameId, System.Boolean testMode) (at <af7ae0014ac54e0eafc793c4c70c3191>:0)
    17. UnityEngine.Monetization.Monetization.Initialize (System.String gameId, System.Boolean testMode) (at <af7ae0014ac54e0eafc793c4c70c3191>:0)
    18. AdsManager.Start () (at Assets/Scripts/AdsManager.cs:37)
    19.  
    i tried re-importing plugins but nothing worked :(
     
  2. mikaisomaa

    mikaisomaa

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    358
    Hi,

    Can you describe how you integrated ads to your project? Which version are you using? Do you have ads packages from the package manager?