Search Unity

[Unity IAPs] UWP 10 NullReferenceException at ConfigurationBuilder.Instance

Discussion in 'Windows' started by OnurYIL, Mar 10, 2016.

  1. OnurYIL

    OnurYIL

    Joined:
    Nov 4, 2013
    Posts:
    140
    Hello everyone!

    I'm trying to implement IAPs to my Windows 10 game. Everything works fine at the editor, 0 errors, succesful purchases. But when I debug the project through Visual Studio on my local computer, I get a NullReferenceError.

    Now the Visual Studio debugger does not show where the error is, but I was sure I didn't have such error BEFORE I started to implement IAPs so I slowly disabled parts of the IAPDemo.cs code which came with the imported files through services.



    If I comment out the highlighted part, my game works fine. If I let it run, I get a NullReferenceException.

    Anyone knows whats up?

    Unity version 5.3.1f1.

    Thank you for the help!
     
  2. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    Can you please attach a full stack trace? Visual studio should have a stack trace included in the logging it outputs alongside the NullReferenceException.