Home Dashboard Directory Help

"No exports were found that match the constraint" Error creating a new project by LV_Programmer


 as Not Reproducible Help for as Not Reproducible

Sign in
to vote
Type: Bug
ID: 742469
Opened: 5/17/2012 2:19:06 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
User(s) can reproduce this bug


When you try to make a new project, Microsoft Visual Studio show a error form with the message "No exports were found that match the constraint:
Sign in to post a comment.
Posted by Awinesh Kumar on 6/17/2014 at 8:54 AM
install this update to fix it
Update for Microsoft Visual Studio 2012 (KB2781514)
Posted by LogiRush on 7/22/2013 at 8:28 AM
I traced this problem to the following windows update
Security Update for Microsoft.NET framework 4.5 (KB2840642)

Uninstall this update and the error should go away.
Posted by LogiRush on 7/17/2013 at 2:48 PM
I installed a large number of updates via Windows Update on July 15, around 100 updates. Afterwards I my VS 2012 application exhibited an error "ImportCardinalityMismatchException was unhandled by user code", "No exports were found that match the constraint." The same codebase works for everyone else in the department who (as best as I can tell) have not installed windows update recently. This could be related to Microsoft.Practices.EnterpriseLibrary, but I'm using the same version that worked previously.

Installing KB2781514 did not fix the problem.
Uninstalling VS 2012 and reinstalling did not fix the problem.
Installing VS 2013 update 3 did not fix the problem.
Deleting the ComponentModelCache folder at D:\Users\{username}\AppData\Local\Microsoft\VisualStudio\11.0 did not fix the problem.

At this point I'm going to have to re-image my system with a clean OS.

I don't know what happened....it could be my error, or it could have been something related to the Windows update. I'm just mentioning this in case someone else experiences the same issue.
Posted by JohnFarren on 7/16/2013 at 6:46 AM
I just installed a number of required MS security patches (per comany policy), and it corrupts the Visual Studio installation. The only solution is to reinstall. You really should test your products with your security patches. That is just basic QA...
Posted by Microsoft on 5/28/2012 at 12:02 AM

Hi, given that we have not heard back from you in these days. We will go ahead and close this Connect Issue. If you get a chance to review and provide the information requested earlier, you can go ahead and reactivate this issue.
Posted by Microsoft on 5/25/2012 at 2:40 AM
Hello again. We wanted to give you a quick reminder that to efficiently investigate and reproduce your issue, we need you to submit the additional information we requested . If we haven't heard back from you with the requested information in the next 3 days, we will go ahead and close the issue.
Posted by Microsoft on 5/22/2012 at 11:21 PM
You can download a Visual Studio 2010 Diagnostic Tool from http://visualstudiogallery.msdn.microsoft.com/en-us/e8649e35-26b1-4e73-b427-c2886a0705f4. You can get detailed description about how to use it to collect dump file.

Posted by LV_Programmer on 5/21/2012 at 2:17 PM
On the 7 step the visual studio crash and it need to restart. I cant do it.
I downloaded the visual studio 11 beta and the problem persists. Can i try the steps with it?
Thank you for the support.
Posted by MS-Moderator07 [Feedback Moderator] on 5/17/2012 at 10:21 PM
Thanks for your feedback. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

It may help if you provide us with a dump file and call stack.

1. Start Visual Studio

2. go to Tools | Options | Debugging
- Enable ".NET Framework source stepping"
- Enable "Source Server support"
- Enable "Step over properties and operators (Managed only)"
- Disable "Enable Just My Code"

3. Start another instance of VS in order to repro the issue.
4. In the first instance click Tools | Attach to Process...
5. In the list of processes locate devenv.exe.
6. Click Select... and explicitly choose 'Native' and 'Managed V4.0' code.
7. Click OK and OK to close Select dialog and Attach to Process dialog.
8. Try to reproduce this issue. When you exception happen, go to the first instance of VS, click Debug, save the full dump file.

Please zip the file and use "FeedbackID-742469" as prefix of the file name.

You can use the following workspace to upload the file:
Password is TyDSc*u3LZB

Thanks again for your efforts and we look forward to hearing from you.

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator01 on 5/17/2012 at 2:45 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Mattastica on 12/24/2013 at 6:32 AM
I tried deleting the ComponentModelCache, it did not resolve the issue for me. I then tried deleting the following patch as mentioned by LogiRush in the comments, this resolved the issue for me.

Security Update for Microsoft.NET framework 4.5 (KB2840642v2)
Posted by mkijhyr on 8/20/2013 at 6:02 AM
Had the same problem here in VS express for windows phone. Deleted the ComponentModelCache directory as well as cache directories in other VSexpress directories in the directory. Problem's solved.
Posted by PANoone on 7/30/2013 at 3:52 PM
+1 to deleting the ComponentModelCache directory.
Posted by Yuan2013 on 7/15/2013 at 1:57 AM
After a search, I found the solution here:

Just delete or rename this folder:
Posted by Yuan2013 on 7/15/2013 at 1:52 AM
I agree with thomas, I meet the problem when I restart my win8 after some windows update.
Seems like it's a bad user experience !
Posted by Thomas_Cournane on 7/12/2013 at 9:15 AM
I experienced this issue on VS2012. I was unable to add a project to a solution. I was also unable to run the solution. This occurred after I did a restart post installing some windows updates. To resolve the issue, I re-ran the vs2012 installer (vs_professional.exe)
File Name Submitted By Submitted On File Size  
Exception creating project.JPG 8/7/2013 98 KB