Exception has been thrown by the target of an invocation

Problem: When opening Management Studio you receive the error message “Exception has been thrown by the target of an invocation” (for me this happened after installing SQL 2012)

Solution: The maximum length of the PATH environment varible is 2048 charecters, ensure that the length of the variable is less than this value, if not trim it down a bit and it will load.

4 Responses to “Exception has been thrown by the target of an invocation”

  1. Vlado S. Says:

    Thank you! You helped me a lot. I, at first reinstalled ssms, but error was still there. And thanks to google, I found this sugesstion. Have a nice day.

  2. garry star Says:

    Thank you !!!

  3. John Says:

    How did you figure this out?

  4. Agus Rahmat Diansyah Says:

    i have been tried your solution by reducing PATH, but yet it still show me the error “Exception has been thrown by the target of an invocation”. Many thanks if you have another solution

Leave a reply to garry star Cancel reply