Exception thrown in Visual Studio on attempting checkout

If you are having a problem using Vault, post a message here.
Post Reply
BigBrett
Posts: 218
Joined: Wed Feb 01, 2006 8:45 am

Exception thrown in Visual Studio on attempting checkout

Post by BigBrett » Tue Jul 15, 2014 7:29 am

Running Visual Studio 2008 and using Vault Pro 6.1.0.30531.

For one of my repositories, out of a total of 6, I am suddenly receiving this error when trying to check out a file (which checked out yesterday without a problem) :
Unable to cast COM object of type 'System.__ComObject' to interface type
'Microsoft.VisualStudio.Shell.Interop.IPersistFileFormat'. This operation failed
because the QueryInterface call on the COM component for the interface with IID
'{3AFAE242-B530-11D0-8199-00A0C91BBEE3}' failed due to the following error: No
such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

I have tried resetting the cache in the GUI Client and have gone as far as physically deleting the repository cache (other than working folder assignments) but no change.

No other repository is currently showing this problem.

Regards,
Brett

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Exception thrown in Visual Studio on attempting checkout

Post by Beth » Tue Jul 15, 2014 8:18 am

This could be from an unregistered COM dll.

Can you run a command prompt as administrator, and then run one of the following commands?

64-bit OS:

Code: Select all

regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
32-bit OS:

Code: Select all

regsvr32 "C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
Beth Kieler
SourceGear Technical Support

BigBrett
Posts: 218
Joined: Wed Feb 01, 2006 8:45 am

Re: Exception thrown in Visual Studio on attempting checkout

Post by BigBrett » Tue Jul 15, 2014 8:32 am

Thanks Beth, that fixed the problem.

However this doesn't explain why it only happened with files from one repository and not the others. Still, I can now get back to work again.

Regards,
Brett

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Exception thrown in Visual Studio on attempting checkout

Post by Beth » Tue Jul 15, 2014 10:20 am

Thanks for the update. I'm happy to hear you're working.

Are the projects bound differently? For example, does one use the Vault Classic Client and one use the Vault Enhanced Client? If so, those use completely different Visual Studio APIs.
Beth Kieler
SourceGear Technical Support

BigBrett
Posts: 218
Joined: Wed Feb 01, 2006 8:45 am

Re: Exception thrown in Visual Studio on attempting checkout

Post by BigBrett » Wed Jul 16, 2014 11:29 pm

The projects that were affected are all C# projects and the csproj files list SccProvider as SourceGear Vault Visual Studio 2005 Client:{7BE9CE03-56BF-4682-9C06-78C68B134B30}. My SourceControl settings in VS2008 are to use the Vault Pro Enhanced Client.

I have tried unbinding and rebinding a project but there was no change.

How would I rebind the projects to ensure they use the Enhanced Client ?

Regards,
Brett

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Exception thrown in Visual Studio on attempting checkout

Post by Beth » Thu Jul 17, 2014 7:56 am

Both settings you mentioned point to the same client. The one in your registry is just an older name for it.

To check if different projects/solutions have different settings, you would open one in VS and go to Tools - Options - Source Control - Plug ins and you'll see the setting. Then open the other project/solution and check the same setting in Tools - Options - Source Control.

Do both repositories use the same version of Visual Studio?

Are the projects in the different repositories different types of projects?

If there are really no differences between what's in the different repositories, then I'm not really sure why one was throwing the error and the other wasn't.
Beth Kieler
SourceGear Technical Support

BigBrett
Posts: 218
Joined: Wed Feb 01, 2006 8:45 am

Re: Exception thrown in Visual Studio on attempting checkout

Post by BigBrett » Thu Jul 17, 2014 10:37 pm

All our projects use VS2008. The C++ projects in a different repository continued working when the projects in this particular repository, which are all C# projects for ASP.NET web pages, did not.

Strange, but then they are working now so it will remain a mystery.

Regards,
Brett

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Exception thrown in Visual Studio on attempting checkout

Post by Beth » Fri Jul 18, 2014 4:20 pm

I will keep this in mind in case it comes up again with anyone.
Beth Kieler
SourceGear Technical Support

Post Reply