Office Communicator Server编程问题

DanteSu 2012-06-01 05:21:48
今天用官方提供的CommunicatorAPI进行OCS编程,编译没有错误,但是运行的时候有错误,错误如下:

“OCS_Test.Program”的类型初始值设定项引发异常

=======StackTrace===============
在 OCS_Test.Program.Main(String[] args)
在 System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
====================================


=== 预绑定状态信息 ===
日志: 用户 = DEATHEVIL\Administrator
日志: DisplayName = CommunicatorAPI, Version=2.0.6362.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
日志: Appbase = file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/MyMoss/OCS_Test/bin/Debug/
日志: 初始 PrivatePath = NULL
调用程序集: OCS_Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null。
===
日志: 此绑定从 default 加载上下文开始。
日志: 未找到应用程序配置文件。
日志: 使用 c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\config\machine.config 的计算机配置文件。
日志: 策略后引用: CommunicatorAPI, Version=2.0.6362.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
日志: 试图下载新的 URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio 2008/Projects/MyMoss/OCS_Test/bin/Debug/CommunicatorAPI.DLL。
错误: 未能完成程序集的安装(hr = 0x8007000b)。探测终止。

请高人指点!
有这方面编程经验的请指点,十分感谢
...全文
106 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
DanteSu 2012-06-03
  • 打赏
  • 举报
回复
No one?

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧