Error when trying to open C# Interactive window - visual-studio-2010

I just installed the Roslyn CTP, but when I try to open the C# Interactive Window I got a popup error message:
No valid exports were found that match the constraint '((exportDefinition.ContractName == "Microsoft.VisualStudio.Repl.IInteractiveWindowProvider") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentity") AndAlso "Microsoft.VisualStudio.Repl.IInteractiveWindowProvider".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.
I am using visual studio 2010. I have reinstalled the Roslyn CTP, it still don't work.

Fixed by install the Roslyn Oct 2011 CTP first.

Related

Error creating Visual Studio 2022 preview network installer

I'm trying to create a Visual Studio 2022 preview network installer to reuse the installation media between multiple computers.
I'm following the instructions from this page, but I'm downloading the preview installer from the VS preview page.
When I try to create the network installer from an elevated command prompt with
vs_community.exe --layout D:\VS\Community2022preview --useLatestInstaller
I'm getting the error message
Download of 'https://aka.ms/vs/17/pre/channel' succeeded using engine 'WebClient'
Download of 'https://download.visualstudio.microsoft.com/download/pr/b3f0a1e5-a37b-49a5-9c42-8724caed1f7b/b6c95d2cc95b704820db1e1355cfb2d1d075a8acf8e38b1ddaf1dafedb269521/VisualStudioPreview.vsman' succeeded using engine 'WebClient'
Catalog load operation correlation: {"id":"2d2ff4dd-dc49-49c9-94c7-35b8d0e072a6"}
Exception of type 'Microsoft.VisualStudio.Setup.UpdateRequiredException' was thrown.
Error: Exception of type 'Microsoft.VisualStudio.Setup.UpdateRequiredException' was thrown.
at Microsoft.VisualStudio.Setup.Engine.CheckForEngineUpdate(Version manifestEngineVersion)
at Microsoft.VisualStudio.Setup.Engine.Load(String path, Boolean skipVerify)
at Microsoft.VisualStudio.Setup.Layout.Commands.LayoutCommand.InvokeCommand(CancellationToken token)
at Microsoft.VisualStudio.Setup.Layout.Program.Main(String[] args)
I googled Microsoft.VisualStudio.Setup.UpdateRequiredException, but I didn't find anything.
Should this work for the VS 2022 community preview version?
Am I missing something?
Thanks!
I had the same error message with Visual Studio Professional 17.3.0. I followed Rodrigo Juarez's suggestion of removing --useLatestInstaller and that solved the problem so that seems to be the solution to this particular error.

Cannot install any Visual Studio program

I have been trying to install Visual Studio for a couple of days now and none have operated. First I tried Visual Studio Community 2017 and the installer was installed and then the vs was installed but when I try and run it I got an error message that directed me to the ActivityLog file. I've tried uninstalling it then reinstalling it but that didn't work. I came across a solution that required me to try opening it using the Developer Command Prompt which I wanted to do but when I clicked on it from the Start menu it said that the link is missing. There was another Visual Studio program that had also installed and when I tried loading that one, it also directed me an ActivityLog file.
So I uninstalled the 2017 version and tried installing an earlier version hoping that it would work. I can reinstall for whomsoever would want to see the error message as well as the log file.
I then tried the 2013 version (since that is the one we use at school anyway). After downloading the file, I do not even get to an installation screen. A pop-up appears that says that the program requires the Microsoft .NET framework to work
Installation pop up window
The first time I tried it gave me options to accept and continue or cancel so I clicked on accept and continue and that was the end of it. Nothing happened after that. Now when I click on the installation file it just appears as in the picture above with no options. I tried to follow the instructions on Cannot install Visual Studio 2017 Community since that is the closet to my problem that I have found but it still didn't work.
Please help. I really need at least one Visual Basic to work.

Crashes when trying to sign in

Came to work this monday and started up Visual Studio 2013 and it says my license has expired and I need to sign in to extend it, but when I press the sign in button VS crashes and says "Microsoft Visual Studio 2013 has stopped working".
I've tried repairing my installation of VS but I get the same error.
I've tried running VS in safe mode but I get the same error.
I've tried debugging VS and found this message "An unhandled exception of type 'System.ExecutionEngineException' occurred in Microsoft.VisualStudio.Services.WebApi.dll" but I find nothing relevant when googling it.
Any suggestions are on how to fix this are welcome. I've had this version installed since it came out and I have a license for it. And I've signed in before without problems.

visual studio 2012 incompatiblity and editor package not loading correctly?

I used to use vs 2012 for some month without any problem, today when I want to open my c# project , I got this error message:
This program has known compatibility issues
Visual Studio 2012 Express for Windows Desktop is incompatible with this version of Windows.
when I click Run program I got this error:
'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly
When I continue with this error message, another error message shows: Visual Studio has stopped working. I need to get it work as soon as posible, any idea?
I had a similar problem, installing this patch solved it: KB2781514
I just got this error in VS2013 after installing a VS extension. I fixed it by closing all instances of Visual Studio, then removing %LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache
Happened to me today on VS 2012. The Update mentioned by Jarek didn't install (it complained I already have more stuff installed). Deleting the folder mentioned by squeaky didn't work.
Finally fixed after I installed VS 2012 Update 4 : http://www.microsoft.com/en-us/download/details.aspx?id=39305

VS 2010 Error when creating or opening projects

I just installed new copy of visual studio 2010 and when i tried to open old project i got error message.
So i just tried to create new project, and received the same message.
No valid exports were found that match the contraint '((exportDefinition.ContractName == "Microsoft.VisualStudio.Text.ITextBufferFactoryService") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentiy") AndAlso "Microsoft.VisualStudio.Text.ITextBufferFactoryService".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.
I already tried to remove and re-install it. After that did not work i tried to use repair option.
I'm running Windows 7 64bit OS.
I had a similar error with Visual Studio 2012 that seemed to have been caused when I enabled ClearType text on a different monitor. I found a solution in another MSDN thread:
Remove the file: Microsoft.VisualStudio.Default.cache
in the folder: in C:\Users...\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
After starting VS2012 re-generates the file and everything works.
I was able to resolve the issue. After a suggestion from a coworker I installed VS2010 SP1. After SP1 was installed issue has not come back.

Resources