Link to home
Start Free TrialLog in
Avatar of or1969
or1969

asked on

unable to debug a VS2012 project

I've installed the new release of VS2012 on a new Windows 8 machine.

For some reason I'm unable to debug my project. I don't problem building a release, but every time I try to debug, I get the following messages.

I have no problem debugging THE SAME project with VS2010 !!

User generated image
User generated image
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

>>I have no problem debugging THE SAME project with VS2010 !!

From the Windows 8 machine ?  (In other words you have both VS2010 and VS2012 installed).  If it is from a different machine it could be a firewall problem.
Avatar of or1969
or1969

ASKER

sorry. I wasn't clearer enough.

Machine I with VS2010 and VS2012
Machine 2 with VS2012

On both machine I get the same debug problem.
Disabling the FW didn't solve the problem.
So #1 can perform a remote debug with VS2010 but not with VS2012 and #2 can't do a remote debug either.
I'm not aware of WIndows 8. But does your situation have anything to do with the Run As Admnistrator mode.
Avatar of or1969

ASKER

I'm running with the administrator account
Avatar of or1969

ASKER

also, double-click the .sln project file will start VS2012 and I get the same error (First Error) following with this message

User generated image
I'm still not clear of your situation.
Are you trying to perform a remote debug of your app running on another PC ?
Yes. I guess for Wiindows Vista and above. You have to Right Click and select Run as Administrator even if you are logged in using Administrator account.
Avatar of or1969

ASKER

I have no idea what is the connection between the remote debugger and my application as it is a local winform solution with no connection to any remote machines.

and, I tried starting with the 'run as administrator' but it didn't solve the problem.
Start Visual Studio by typing

devenv /resetskippkgs
Avatar of or1969

ASKER

thanks but this option didn't solve the problem
Avatar of or1969

ASKER

I think I found the solution.
My project is set to build using 'Any CPU'. Changing to x86 solved the problem.

Now I'm having a new problem, how can I keep using the 'Any CPU' option without this problem?
ASKER CERTIFIED SOLUTION
Avatar of or1969
or1969

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of or1969

ASKER

found the solution