Error creating instance of managed object

Asked By 0 points N/A Posted on -
qa-featured

I'm  getting this error sometimes when creating a new project or when opening an existing one:

Project'ConsoleApplication3'could not be opened because the VisualC# 2012 compiler could not be created. Error creating instance of managed object 'Microsoft.VisualStudio.CSharp.Services.Language.ManagedObjectFactory' 

 

 

SHARE
Best Answer by Carl Jack
Best Answer
Best Answer
Answered By 0 points N/A #163004

Error creating instance of managed object

qa-featured

Hello Aquinata,

You may be getting that error because of settings on your system have been disabled in visual studio. You will need to check the following settings:

Tools->Options->Text Editor->C#->General->Auto list members
Tools->Options->Text Editor->C#->General->Parameter information

Edit if need be.

You will also need to check the following settings:

Tools->Options->Text Editor->C#->Intellisense->
Show completion list after a character is typed

Also edit the above if there is an issue.

Check and edit the following settings too.

Tools –> Import and Export Settings ->  Reset all Settings

You can go ahead and backup the old settings just to in case the changes you make end up bringing problems.

The installation could also be missing some files. It will better if you just download a fresh copy of the software and after that install it from scratch, with the default settings active.

Regards,

Carl

 

Answered By 560585 points N/A #281044

Error creating instance of managed object

qa-featured

This error can be encountered when you create a new Web Application using Microsoft Visual Studio 2012 and then the compiler issue will be thrown. To fix this, open Windows Explorer then navigate to “C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio Tools”. Look for the EXE file named “VS2012 x86 Native Tools Command Prompt”, right-click it and select “Run as administrator”.

In the command prompt, type without quotes “gacutil /u Microsoft.VisualStudio.CSharp.Services.Language.Interop” then hit Enter. This should successfully uninstall the service from GAC which was causing the problem. After this, launch Microsoft Visual Studio 2012 again and create new projects. It should fix the problem.

Login/Register to Answer

Related Questions