I have a problem debugging a project migrated from Visual Studio 2010 to 2012. Every time I go to debug it I get the error message:
"Error HRESULT E_FAIL has been returned from a call to a COM component".
Compiling and running the application in a local IIS server works fine - just cannot debug.
The other change other than moving to VS2012 is I am now using Team Foundation Server for source control and issue tracking - but I cannot see how that would affect it.
I can narrow it down to the following
- The project file - it has been migrated from VS 2003 as a website project and has been chopped and changed up the different versions
- Crystal Report runtime library/ some other library
Anyone with any ideas?
Just delete packages folder.That helped me
Root Cause: Microsoft.VisualStudio.Shell.Interop.11.0.dll is missing from GAC.
Solution: 1. Go to start menu and Open Command Prompt for Visual Studio 2. Enter command gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll 3. If in case your system unable to find this dll file then you may download it from Nuget package manager and then can provide the path of dll
All set! hit enter and you're done!
I had the same problem with a c++ project in Visual Studio 2019.
The following solution worked for me:
I had the same issue that occurred when I was working with the VS GUI tool. What I did to fix it was I deleted the local repository and pulled it down from my git source - thank you git!! :)
This may not be the solution in all instances,. but by deleting all of the local files and recompiling, I was able to get it working again!
Maybe this page helps:
I tried all of the above solutions none work for me, I found the solution here
Open ActivityLog.xml by going into
Check if error states that
Then run this
gacutil
command through VS Cmd prompt (admin mode):Navigate to
Run
gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll