Exception thrown in Visual Studio on attempting checkout
Exception thrown in Visual Studio on attempting checkout
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
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
Re: Exception thrown in Visual Studio on attempting checkout
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:
32-bit OS:
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"
Code: Select all
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Exception thrown in Visual Studio on attempting checkout
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
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
Re: Exception thrown in Visual Studio on attempting checkout
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.
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
SourceGear Technical Support
Re: Exception thrown in Visual Studio on attempting checkout
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
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
Re: Exception thrown in Visual Studio on attempting checkout
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.
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
SourceGear Technical Support
Re: Exception thrown in Visual Studio on attempting checkout
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
Strange, but then they are working now so it will remain a mystery.
Regards,
Brett
Re: Exception thrown in Visual Studio on attempting checkout
I will keep this in mind in case it comes up again with anyone.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support