1
Vote

error when create SessionManager

description

When I call following code, I get the exception.
var sessionMgr = VSTA.SessionManager.Create("MyHostApp");

{"Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Microsoft.VisualStudio.Tools.Applications.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}

I can't find the dll on my computer. Is it the installation issue? And how to fix it?

comments

ceasor wrote Mar 5, 2014 at 8:48 AM

The vsta is 2012 sdk. My computer is windows 8 64. Office is 2013. My vs is 2012 with update 4.

ceasor wrote Mar 5, 2014 at 8:58 AM

Sorry, I forget to install the runtime.