【发布时间】:2011-01-11 03:16:06
【问题描述】:
我一直在努力让应用程序端点在 UCMA 3.0 上运行。我正在尝试在与 Lync 服务器分开的服务器上运行应用程序,该服务器使用注册的 ApplicationEndpoint 来监视存在并充当可以发送其他用户消息的机器人。我曾经让我的代码与 UserEndpoint 一起工作(这对于监控状态来说很好),但没有向其他 Lync 用户发送 IM 的能力。
在网上搜索后,我终于在运行代码时遇到此错误:
System.ArgumentException 未处理 Message=只有在指定代理和多 Tls 时才能注册 ApplicationEndpoint。 来源=Microsoft.Rtc.Collaboration 堆栈跟踪: 在 Microsoft.Rtc.Collaboration.ApplicationEndpoint..ctor(CollaborationPlatform 平台,ApplicationEndpointSettings 设置) 在 C:\Users\l1m5\Desktop\waldoproject\trunk\WaldoSoln\waldoGrabPresence\endpointHelper.cs:line 117 中的 Waldo.endpointHelper.CreateApplicationEndpoint(ApplicationEndpointSettings applicationEndpointSettings) 在 C:\Users\l1m5\Desktop\waldoproject\trunk\WaldoSoln\waldoGrabPresence\endpointHelper.cs:line 228 中的 Waldo.endpointHelper.CreateEstablishedApplicationEndpoint(String endpointFriendlyName) 在 C:\Users\l1m5\Desktop\waldoproject\trunk\WaldoSoln\waldoGrabPresence\waldoGrabPresence.cs:line 60 中的 Waldo.waldoGrabPresence.Run() 在 C:\Users\l1m5\Desktop\waldoproject\trunk\WaldoSoln\waldoGrabPresence\waldoGrabPresence.cs:line 42 中的 Waldo.waldoGrabPresence.Main(String[] args) 在 System.AppDomain._nExecuteAssembly(程序集程序集,字符串 [] 参数) 在 System.AppDomain.ExecuteAssembly(字符串 assemblyFile,证据 assemblySecurity,String [] args) 在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 在 System.Threading.ThreadHelper.ThreadStart_Context(对象状态) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback 回调,对象状态) 在 System.Threading.ThreadHelper.ThreadStart() 内部异常:
经过一番搜索,我按照此处的说明:http://blogs.claritycon.com/blogs/michael_greenlee/archive/2009/03/21/installing-a-certificate-for-ucma-v2-0-applications.aspx 将证书导入到我尝试运行应用程序的服务器上,但无济于事。
所以在这一点上,我认为我设置 ApplicationEndpointSettings、CollaberationPlatform 或 ApplicationEndpoint 对象的方式一定有问题。以下是我的做法:
ApplicationEndpointSettings settings = new ApplicationEndpointSettings(_ownerURIPrompt, _serverFQDNPrompt, _trustedPortPrompt);
ServerPlatformSettings settings = new ServerPlatformSettings(null, _serverFQDNPrompt, _trustedPortPrompt, _trustedApplicationGRUU);
_collabPlatform = new CollaborationPlatform(settings);
_applicationEndpoint = new ApplicationEndpoint(_collabPlatform, applicationEndpointSettings);
有没有人发现我正在做的事情有任何问题?或者,更好的是,有没有人知道一个博客可以引导您在我所处的情况下建立应用程序端点?我在教程或示例方面工作得非常好,但还没有找到一个似乎可以完成我正在尝试做的事情。
感谢您的帮助!
【问题讨论】: