locked
Visual studio Shows "Expected 1 exports with contract name ... but found 0 " RRS feed

  • Question

  • User1182587605 posted

    I have a project I am working on and somehow today, I am unable to load any projects to work in my Visual Studio. When I try to load any project it shows an error "Expected 1 export(s) with contract name "Microsoft.Internal.VisualStudio.PlatformUI.ISolutionAttachedCollectionService" but found 0 after applying applicable constraints." as a popup. And when I close the popup, I get a message "Project "abc" could not be opened because the Visual C# 2015 compiler could not be created. Please reinstall Visual Studio. The tab has been closed." at the bottom pane.

    I am using Visual Studio Community 2015 in my machine with Win 8.1 OS. Can anyone tell me how I can fix this bug. Please give me a link and steps to follow to re-install Visual Studio community 2015 properly in my machine.

    Thanks,

    Deepak

    Tuesday, July 25, 2017 7:20 PM

Answers

  • User1771544211 posted

    Hi acmedeepak,

    Also, Can I install VS 2017 community and run the same project with out any problem. This way, I can have new version with me and I can use the new features in my project. Please let me know. 

    Based on my experience, the project which works fine on VS 2015 should work fine on VS 2017 too. So you can install the VS2017 community.

    Best Regards,

    Jean

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 26, 2017 5:53 AM

All replies

  • User1771544211 posted

    Hi acmedeepak,

    acmedeepak

    could not be opened because the Visual C# 2015 compiler could not be created

    Please try delete contents of these 2 folders

    C:\Users\%USERNAME%\AppData\Roaming\Microsoft\VisualStudio\
    C:\Users\%USERNAME%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

    Then run the VS.NET as admin, otherwise it won't be able to renew the Roaming folder correctly.

    acmedeepak

    Please give me a link and steps to follow to re-install Visual Studio community 2015 properly in my machine.

    To uninstall the Visual Studio, you can use the following methods:

    1. Use the following command

    vs_ultimate.exe /uninstall /force

    2. Use the VisualStudioUninstaller

    Best Regards,

    Jean

    Wednesday, July 26, 2017 5:29 AM
  • User1182587605 posted

    Thanks Jean,

    I have deleted the contents of the two folders you have mentioned and the popup error does not come in. But still the project does not load. I still have the error "Project "abc" could not be opened because the Visual C# 2015 compiler could not be created. Please reinstall Visual Studio. The tab has been closed." at the bottom pane. Should I do anything else or have to re-install Visual studio. 

    Also, Can I install VS 2017 community and run the same project with out any problem. This way, I can have new version with me and I can use the new features in my project. Please let me know. 

    Wednesday, July 26, 2017 5:38 AM
  • User1771544211 posted

    Hi acmedeepak,

    Also, Can I install VS 2017 community and run the same project with out any problem. This way, I can have new version with me and I can use the new features in my project. Please let me know. 

    Based on my experience, the project which works fine on VS 2015 should work fine on VS 2017 too. So you can install the VS2017 community.

    Best Regards,

    Jean

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 26, 2017 5:53 AM
  • User-1449170393 posted

    Hello. I also had this problem recently. Just open the Visual Studio installer app and And go to installed tab => More => repair

    If the program is the latest version . Reinstalls all packages and over . That's right for me.

    Sunday, September 6, 2020 1:34 PM