简体   繁体   English

Skype for Business 2015中的MSPL脚本

[英]MSPL Script in Skype for Business 2015

I have a MSPL script running as a Server Application in a Lync Server 2013 system. 我有一个Lync Server 2013系统中作为服务器应用程序运行的MSPL脚本。 The development of this application was done in c# referencing the library 'C:\\Program Files\\Microsoft Lync Server 2013\\SDK\\Bin\\ServerAgent.dll' which was installed with the MS Lync Server 2013 SDK. 此应用程序的开发是在c#中引用与MS Lync Server 2013 SDK一起安装的库“ C:\\ Program Files \\ Microsoft Lync Server 2013 \\ SDK \\ Bin \\ ServerAgent.dll”完成的。

I need to migrate this application to a Skype for Business 2015 system but I can't find the SfB equivalent of the Lync Server 2013 SDK. 我需要将此应用程序迁移到Skype for Business 2015系统,但找不到与Lync Server 2013 SDK等效的SfB。

Does anyone know how to compile a MSPL application in SfB 2015 ? 有谁知道如何在SfB 2015中编译MSPL应用程序? I've read in various places that it should 'just work' in SfB but that would only be if I dropped the ServerAgent.dll in the same folder as the application on the SfB Front End Server and that seems like a hack. 我在各个地方都读到它应该在SfB中“可以正常工作”,但这只有当我将ServerAgent.dll放到与SfB前端服务器上的应用程序相同的文件夹中时,这才像是黑客。

Any suggestions would be welcome. 欢迎大家提出意见。

Thanks 谢谢

Ed James 埃德·詹姆斯

I ran into the same issue. 我遇到了同样的问题。 In my case, using the old versions of "ServerAgent.dll" resulted in a strange behavior, as this typical piece of code to proxy the request was doing nothing: 在我的情况下,使用旧版本的“ ServerAgent.dll”会导致奇怪的行为,因为这段典型的代理请求代码无济于事:

ClientTransation ct = e.ServerTransaction.CreateBranch();

ct.SendRequest(e.Request);  

In Skype for Business / Lync client, when establishing a new conversation (while my MSPL script was triggered on INVITE) the error "your message could not be transmitted" was appearing. 在Skype for Business / Lync客户端中,建立新会话时(在INVITE上触发了我的MSPL脚本时),出现错误“无法发送您的消息”。

After investigation, and after trying to recompile my code on a Windows Server 2012 R2 with Skype for Business Server 2015 installed on it, it appeared that the new version of "ServerAgent.dll" (version 6.0.9319 located in Windows's GAC folder) had a dependency against another DLL which was in .NET Framework 4.5, while all my solution was built on .NET Framework 4.0. 经过调查,并尝试在安装了Skype for Business Server 2015的Windows Server 2012 R2上重新编译我的代码之后,似乎新版本的“ ServerAgent.dll”(位于Windows GAC文件夹中的6.0.9319版)具有对.NET Framework 4.5中另一个DLL的依赖性,而我所有的解决方案都基于.NET Framework 4.0构建。 To solve this issue, I recompiled in 4.5, but as I wanted to keep using Visual Studio 2010, I had to apply this solution (look for the second solution): 为了解决此问题,我在4.5中进行了重新编译,但是由于我想继续使用Visual Studio 2010,因此不得不应用此解决方案(寻找第二种解决方案):

Targeting .NET Framework 4.5 via Visual Studio 2010 通过Visual Studio 2010定位.NET Framework 4.5

After that I finally managed to have it working correctly on Skype for Business 2015. 之后,我终于设法使其在Skype for Business 2015上正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM