Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while trying to run project uncaught exception thrown by method called through reflection

I have installed Visual studio 2010 Ultimate verion but while running below simple windows form programme getting error....

    MsgBox("Hello !")

    "error while trying to run project uncaught exception thrown by method called 
     through reflection"

anything wrong with installation ??

Its Visula studio Exception not my programme exception...

I tried below but no luck..

devenv /resetsettings

enter image description here

like image 756
Sam Avatar asked Jun 17 '13 11:06

Sam


2 Answers

  1. Go to the project right click and select properties.
  2. Select 'Debug' tab on the left.
  3. Go to ‘Enable Debuggers’ on the bottom
  4. Check ‘Enable Native code debugging’ (or 'Enable unmanaged code debugging', depends on version) check box
  5. Run the project
like image 72
GalDude33 Avatar answered Sep 28 '22 21:09

GalDude33


Steps to your problem

I have uploaded the steps to your problem.

As you see the image, check the native code debugging option and that's all.

Hope it helps.

I'm using Visual Studio 2017

like image 25
Peratchi Selvam Avatar answered Sep 28 '22 22:09

Peratchi Selvam