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

.net, vb.net, visual-studio-2010

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

Best Solution

  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