question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.MissingMethodException: 'Method not found: 'UInt64 Microsoft.Xna.Framework.Graphics.GraphicsMetrics.get_DrawCount()'.'

See original GitHub issue

My code is identical to the one in the tutorial, and it compiles fine.

But I get System.MissingMethodException: 'Method not found: 'UInt64 Microsoft.Xna.Framework.Graphics.GraphicsMetrics.get_DrawCount()'.' when I try to run the application.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
cirlacommented, May 23, 2017

@RShadowhand for now as a workaround you can:

  • Delete the Nez project’s reference to Monogame.Framework.dll and replace it with the one distributed with MonoGame 3.6
  • Change the type of Core.drawCalls in Nez’s Core.cs from ulong to long
1reaction
nightblade9commented, Sep 14, 2017

Ran into this today with the latest Nez from Git. Replacing the MonoGame.Framework.dll didn’t work until I removed and re-added the reference (replacing the file on disk isn’t enough, even if Visual Studio shows the correct/updated version).

I also had to change ulong to long and change OnApply in WaterReflectionEffect.cs to return void instead of bool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.MissingMethodException: 'Method not found: 'IntPtr ...
i took out his SharpDX ref and his till works. System.MissingMethodException: 'Method not found: 'IntPtr Microsoft.Xna.Framework.Graphics.
Read more >
System.MissingMethodException: Method not found?
I resolved this issue by installing the correct .NET Framework version on the server. The website was running under version 4.0 and the...
Read more >
Missing Method on launch - Windows UWP
System.MissingMethodException: Method not found: 'Void SharpDX.DXGI. ... Present() at Microsoft.Xna.Framework.Game.EndDraw() at Microsoft.
Read more >
Method not found: System.MissingMethodException
I am upgrading .net core web api 2.2 to .net core 3.1 while runtime i am getting error like , 'Microsoft.Extensions.DependencyInjection.
Read more >
Not sure how to fix this error : r/SMAPI
Technical details: MissingMethodException: Method not found: 'PyTK.Types.AssetLoadInjector`1<Microsoft.Xna.Framework.Graphics.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found