Got an exception when monogame start

Hello, from 2 days now, visual studio 2015 raise an exception when i launch my game at the line:

public Game1 : Game
public Game1() // here

The error is :

An unhandled exception of type ‘System.TypeInitializationException’ occurred in MonoGame.Framework.dll

Additional Information: An exception was thrown by the type initializer for ‘OpenTK.Audio.AudioContext’.

I could not solve it so what can I do ?
(sorry for my english :grin: )

public class Game1 : Game
    GraphicsDeviceManager graphics;
    SpriteBatch spriteBatch;

    public Game1()

That’s what I got on a new project…

Have you got OpenAL installed?

1 Like

It works ! Thanks ! I don’t know why my OpenAL was uninstalled :confounded:

1 Like

You may have removed it when removing a game thinking it was a part of that install… used to do that :stuck_out_tongue: back in the Windows 7 days :joy:

1 Like