This project is read-only.

error when create SessionManager


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=, 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=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"}

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


ceasor wrote Mar 5, 2014 at 9: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 9:58 AM

Sorry, I forget to install the runtime.