TargetInvocationException

Apr 5, 2012 at 8:40 PM

Hello,

I use the Microsoft XNA Framework and want to build an Autoupdate-Function. I wrote in my code:

static void Main(string[] args)
        {
            Sparkle _sparkle;

            _sparkle = new Sparkle("MyURL");
            _sparkle.ShowDiagnosticWindow = true;
            _sparkle.StartLoop(true);

            using (Game1 game = new Game1())
            {
                game.Run();
            }
        }

but get an error at game.Run();

(System.Reflection.)TargetInvocationException: A target of an invocation caused an exception (translated by google)


Now I don't know what I can do, can you help me?

Apr 7, 2012 at 10:17 AM

Hi,

 

do you have the full call stack? Don't know if XNA supports Windows Forms because this is an integral part of NetSparkle!

 

Cheers

Dirk

Apr 10, 2012 at 3:24 PM
Edited Apr 10, 2012 at 3:26 PM

Ehm... I don't know... When I create a XNA project i don't have any Windows Forms.

But I created my own solution so i don't need NetSparkle anymore.
Thanks.