如下。。。请高手解答 ………………谢谢~
System.TypeInitializationException: The type initializer for 'Microsoft.Xna.Framework.Graphics.GraphicsAdapter' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xna.Framework.Graphics.GraphicsAdapter.InitializeAdapterList()
at Microsoft.Xna.Framework.Graphics.GraphicsAdapter..cctor()
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.Graphics.GraphicsAdapter.get_Adapters()
at Microsoft.Xna.Framework.GraphicsDeviceManager.CheckForAvailableSupportedHardware()
at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.CreateDevice()
at Microsoft.Xna.Framework.Game.Run()
at #ee.#de.#5z()
System.TypeInitializationException: The type initializer for 'Microsoft.Xna.Framework.Graphics.GraphicsAdapter' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xna.Framework.Graphics.GraphicsAdapter.InitializeAdapterList()
at Microsoft.Xna.Framework.Graphics.GraphicsAdapter..cctor()
--- End of inner exception stack trace ---
at Microsoft.Xna.Framework.Graphics.GraphicsAdapter.get_Adapters()
at Microsoft.Xna.Framework.GraphicsDeviceManager.CheckForAvailableSupportedHardware()
at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.CreateDevice()
at Microsoft.Xna.Framework.Game.Run()
at #ee.#de.#5z()