Click here to Skip to main content
15,889,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Uninstalled vs 2016 because it slowed down my entire OS !!!
So, I installed back my trusty VS 2010 but after install, it throw error "Exception has been thrown by the target of an invocation".
Because I installed a newer version of VS than the 2010...

After some time of searching,swearing and spitting, I find that the solution for this problem is: "some [path variable] being longer than 2048 chars" - but they are not specifying where to find this "variable" FILE.

Searching for this [path variable] thing on the internet, I find this "explanation" in a possible solution: """...I ran the following command on cmd line, from the C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE folder:..."""

Now, from what it is describing, he is running a command from a folder, right?
- How to run a command line from a folder? (crying)

Again, thank you.

What I have tried:

_____________________________________i described what i tried.
Posted
Updated 24-Jun-16 6:25am
Comments
RedDk 24-Jun-16 12:07pm    
Try looking at dir command. Type 'dir /?' into a console to get the help. One of the switches, /x, will give you the 8dot3 notations that your computer is using to abbreviate the directory structure. Often, the 8dot3 (8 character representations ARE NOT intuitively just six characters plus '~'). You must reconstruct (construct from C:\) the 8dot3 path using what you find through the dir /x returns ...

1 solution

To run a command prompt, hold the Windows key, and press "R". Type "cmd" in the textbox, and press ENTER.
When you run a command prompt, it has a "current directory" - this normally defaults to "C:\Users\YourUser" and is shown to the left of the text cursor.

To run a command from a specific folder, you can do one of two things:
1) Specify the folder in the command line:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MyAppName" parameters
- do not forget the double quotes, as they force the command processor to treat it as a complete path, rather than stopping at the first space.
2) Move to the folder first using CD:
cd "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
Then run your application:
myAppName parameters
 
Share this answer
 
Comments
_Q12_ 24-Jun-16 12:29pm    
thank you!
OriginalGriff 24-Jun-16 13:12pm    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900