0

I saw this particular error already at stackoverflow but only for C# development issues. In my case I try to do some Powershell-scripting with Lync like mentioned here: Change status of Lync by script. But I cannot load the module as mentioned (I tried both Import-module and Reflection):

import-module -Name "C:\Program Files (x86)\Microsoft Office\Office15\LyncSDK\Assemblies\Desktop\Microsoft.Lync.Model.Dll"

[Reflection.Assembly]::LoadFile('C:\Program Files (x86)\Microsoft Office\Office15\LyncSDK\Assemblies\Desktop\Microsoft.Lync.Model.Dll') | out-null

In both cases I get the error "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded". The DLL's are all there. I have installed the newest Lync 2013 SDK (we have Office 2013 installed), so the version should match. Any idea how I can load those assemblies/DLL's? Thanks in advance for any hint.

Community
  • 1
  • 1
Christof Kälin
  • 1,384
  • 2
  • 17
  • 26

0 Answers0