Error: exception has been thrown by the target of an invocation

This problem is cause by the System variable "Path" too long.

 

  1. Pressing 'Windows Key' + 'Pause Break'
  2. 'Advanced system settings' on the left
  3. 'Environment Variables' on the lower right corner
  4. Selecting 'PATH' under 'System variables'
  5. Clicking 'Edit'
  6. Shorten the path or setup another system variable to group some of the path

How to set default browser in Visual Studio

As it turns out setting this is quite simple.

  1. Open a WebForm file in VS (anything ending in will do) .aspx
  2. Select the option from the menu "Browse With..."File
  3. Select your preferred browser from the list and click the "Set as Default" button