Error on creating C++ class library in VS 2012 for Desktop - by Geerten Doornenbal

Status : 


Sign in
to vote
ID 763473 Comments
Status Active Workarounds
Type Bug Repros 8
Opened 9/19/2012 1:01:38 AM
Access Restriction Public


When I try to create a C++ class library in VS 2012 for desktop, I get a large error:

Microsoft Visual Studio Express 2012 for Windows Desktop
The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) No exports were found that match the constraint: 
	ContractName	Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
	RequiredTypeIdentity	Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
	RequiredCreationPolicy	Shared

Resulting in: Cannot set import 'Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService.IVsHierarchy (ContractName="Microsoft.VisualStudio.Shell.Interop.IVsHierarchy")' on part 'Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService'.

Element: Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService.IVsHierarchy (ContractName="Microsoft.VisualStudio.Shell.Interop.IVsHierarchy") -->  Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService

Resulting in: Cannot get export 'Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService (ContractName="Microsoft.VisualStudio.Project.Designers.IVsUnconfiguredProjectIntegrationService")' from part 'Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService'.

Element: Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService (ContractName="Microsoft.VisualStudio.Project.Designers.IVsUnconfiguredProjectIntegrationService") -->  Microsoft.VisualStudio.Project.VS.Implementation.VSUnconfiguredProjectIntegrationService

Resulting in: Cannot set import 'Microsoft.VisualStudio.Project.UnconfiguredProjectServices.vsUnconfiguredProjectIntegrationService (ContractName="Microsoft.VisualStudio.Project.Designers.IVsUnconfiguredProjectIntegrationService")' on part 'Microsoft.VisualStudio.Project.UnconfiguredProjectServices'.

Element: Microsoft.VisualStudio.Project.UnconfiguredProjectServices.vsUnconfiguredProjectIntegrationService (ContractName="Microsoft.VisualStudio.Project.Designers.IVsUnconfiguredProjectIntegrationService") -->  Microsoft.VisualStudio.Project.UnconfiguredProjectServices

Resulting in: Cannot get export 'Microsoft.VisualStudio.Project.UnconfiguredProjectServices (ContractName="Microsoft.VisualStudio.Project.IUnconfiguredProjectServices")' from part 'Microsoft.VisualStudio.Project.UnconfiguredProjectServices'.

Element: Microsoft.VisualStudio.Project.UnconfiguredProjectServices (ContractName="Microsoft.VisualStudio.Project.IUnconfiguredProjectServices") -->  Microsoft.VisualStudio.Project.UnconfiguredProjectServices


And after clicking OK, I get the following error:
Microsoft Visual Studio Express 2012 for Windows Desktop
General Exception (Exception from HRESULT: 0x80131500)

After that the project is not completely created, only a .vcxproj file and a directory.

Best regards,
Geerten Doornenbal
Sign in to post a comment.
Posted by PKelvin on 1/14/2013 at 9:15 AM
Thanks, kijoshua.
1) my installation is on oen partition.
2) I had 2010 express C++, but 2010 C++ could not find afxstr.h used by a third party C++ code. The 2012 RC had no problem to load and compile the code before the problem in this trail occured in Dec 2012.
3) I have both 2012 RC and 2010 express (C++ and C#) on same computer and partition. There is no problem.
Posted by kijoshua on 1/11/2013 at 4:50 PM
Since Microsoft doesn't seem to be making progress on this, maybe an old fashion debugging approach is in order? Here are some things that come to mind for my system. speak up if you have any of these as well, or if you think of anything that might make your system different from the Microsoft testing lab machines.

1) My installation was split between two partitions
2) I had 2012 RC before
3) I had troubles installing Express
Posted by kijoshua on 1/11/2013 at 4:41 PM
Just fought my way from RC to Express (plenty of terrible bugs in that process, let me tell you...), and was hit with this problem at the very end. I installed the Update 1 immediately, so I can't say if it is an Update 1 bug or not personally. It looks like I'll have to uninstall VS entirely to check, as the restore point made is faulty and there doesn't appear to be a separate update item that can be uninstalled by itself.
Posted by PKelvin on 1/11/2013 at 8:30 AM
I got the same problem after downloading Update 1 for Visual Studio 2012 RC for Window 7. I could not create C++ project nor load the C++ project worked before.
Any quick solution on this?
Posted by Geerten Doornenbal on 12/5/2012 at 1:07 AM
I just installed the update for Visual Studio Express 2012 for Windows Desktop, but still no luck on adding C++ class libraries..

Any news on this?

Best regards,
Posted by Geerten Doornenbal on 11/2/2012 at 1:55 AM
Still no news? It's too quiet on this point IMO, although I have seen other people encountering similar problems (see and

Hope to hear you have a solution soon.

Best regards,
Posted by Geerten Doornenbal on 9/26/2012 at 6:50 AM
Any news on this? I'm waiting for the solution, and don't want to switch between 2010 and 2012..
Posted by Microsoft on 9/21/2012 at 4:16 AM
Thanks for your quick response. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Geerten Doornenbal on 9/21/2012 at 2:31 AM
I added the prefix and upload the file to the workspace. Hope you will be able to find it now.

Best regards.
Posted by Microsoft on 9/21/2012 at 2:15 AM
We didn't get your file, please zip the file and use "FeedbackID-763473" as prefix of the file name. You can use the following workspace to upload the file:
Password: uC)1gs2S3q39

Sorry for the inconvenience.
Posted by Geerten Doornenbal on 9/20/2012 at 3:03 AM
Thanks for your response. I added the to the item.

Best regards,
Geerten Doornenbal
Posted by Microsoft on 9/19/2012 at 3:06 AM
Thanks for reporting the issue. In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

It may help if you provide us with:
a setup log file

You can get the log files with the following steps:
1) Download collect.exe from the link below. <>
2) You may choose to save the tool for later use, or to run directly.
3) The utility creates a compressed cabinet of all the VS and .NET logs to %TEMP%\

You can get more details about how to get the log files here:

Thanks again for your efforts and we look forward to hearing from you.
Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 9/19/2012 at 1:53 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(