Solved

Visual Studio 2010 Corrupt after uninstall of Office 2010

Posted on 2014-03-16
3
694 Views
Last Modified: 2014-03-22
Hi

I have an Excel add-in project in Visual Studio 2010. When I try to debug it I get the following error. I just uninstalled my Office 2013 Trial a minute ago and am sure that this
has caused the issue. How do I resolve this. I can't run a repair on my Visual Studio 2010 software as  the disc that I have is damaged


Error      1      The "ResolveComReference" task failed unexpectedly.
System.Security.Cryptography.CryptographicException: The specified network password is not correct.

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[] rawData, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
   at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(Byte[] rawData, Object password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate.Import(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
   at System.Security.Cryptography.X509Certificates.X509Certificate2.Import(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
   at Microsoft.VisualStudio.Tools.Applications.Project.CertificateFactory.CreateCertificate(Byte[] rawData, String password)
   at Microsoft.VisualStudio.Tools.Applications.Project.CertificateContainerFactory.OpenCertificateContainer(String fullPath, String password)
   at Microsoft.VisualStudio.Tools.Applications.Project.ProjectFacade.EnableClickOnceManifestsSigning()
   at Microsoft.VisualStudio.Tools.Applications.Project.DeploymentHelper.ExecutePrebuildActions(Project project)
   at Microsoft.VisualStudio.Tools.Applications.Project.Project.Microsoft.VisualStudio.Tools.Applications.Project.Interop.IVstoManagedProjectHelper.ExecutePrebuildActions(Object dteProjectUnk)
   at Microsoft.Build.Tasks.NativeMethods.QueryPathOfRegTypeLib(Guid& clsid, Int16 majorVersion, Int16 minorVersion, Int32 lcid)
   at Microsoft.Build.Tasks.ComReference.GetPathOfTypeLib(TaskLoggingHelper log, Boolean silent, TYPELIBATTR& typeLibAttr, String& typeLibPath)
   at Microsoft.Build.Tasks.ResolveComReference.ConvertAttrReferencesToComReferenceInfo(List`1 projectRefs, ITaskItem[] typeLibAttrs)
   at Microsoft.Build.Tasks.ResolveComReference.Execute()
   at Microsoft.Build.Framework.ITask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()      Elements
0
Comment
Question by:murbro
3 Comments
 
LVL 19

Accepted Solution

by:
regmigrant earned 500 total points
Comment Utility
Not entirely sure what help you need. Assuming the network password is correct then you either have a failing/missing DLL or a corrupt/missing certificate.

Presumably this worked before the uninstall of 2013 - so we can rule out the incorrect password - a system restore (created by 2013 uninstall) should recover any DLL and if that fails then you need to fix the certificate store

However:-

You can download media for visual studio and use your product key, you don't need the damaged media, if you lost your product key you can call MS support and supply registration information and proof or purchase
0
 
LVL 44

Expert Comment

by:AndyAinscow
Comment Utility
You could try downloading and installing the service pack for VS 2010 - that *might* repair the damage done.
0
 

Author Closing Comment

by:murbro
Comment Utility
thanks very much
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now