Error when starting Visual Studio with NodeJS

by January 12, 2016 0 comments

Problem

Setting up NodeJs on Visual Studio 2013 sometimes got an unknown error, check in log file of VS something like this


    271
    
    Error
    VisualStudio
    Construction of frame content failed.
Frame identifier: ST:1:0:{2153a414-267e-4731-b891-e875adba1993}
Frame caption: Node.js Interactive Window
Exception details:
System.ComponentModel.Composition.ImportCardinalityMismatchException: No exports were found that match the constraint: 
	ContractName	Microsoft.NodejsTools.Repl.IReplWindowProvider
	RequiredTypeIdentity	Microsoft.NodejsTools.Repl.IReplWindowProvider
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore(Type type, Type metadataViewType, String contractName, ImportCardinality cardinality)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](String contractName, ImportCardinality cardinality)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[T](String contractName)
   at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[T]()
   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
   at Microsoft.NodejsTools.Repl.ReplWindowPackage.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()
  

How to solve

1.Close Visual Studio
2.Open the folder: %LocalAppData%\Microsoft\VisualStudio\12.0\ComponentModelCache\
3.Clean everything in this folder
4.Restart Visual Studio.

An Nguyen

Developer

Sharing daily exciting lesson learned and posts about .NET, SQL Server, HTML, Javascript - jQuery, CSS - Bootstrap, SalesForce CRM, Kentico CMS and so on.

0 comments :

Post a Comment