创建托管SIP应用程序:“SecurityException:Access denied。” [英] Creating a Managed SIP Application: "SecurityException: Access denied."

查看:79
本文介绍了创建托管SIP应用程序:“SecurityException:Access denied。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Lync Server开发的新手!我只是关注这篇文章
http://msdn.microsoft。 com / en-us / library / hh364644.aspx


  1. 我使用了MSDN中的简单应用程序清单示例:using Dispatch(" $ On $ @ $
  2. 我实现了一个OnInviteReceived和OnMessageReceived处理程序并将所有编译为64Bit平台目标。
  3. 我使用PowerShell命令"new-CSServerApplication"注册了SIP应用程序。

    身份:服务:注册商:lyncsrv.lync。 local / FirstSIPApplication 
    优先级:10
    左:http://lyncsrv.lync.local/UCMA_FirstSIPApplication
    名称:FirstSIPApplication
    启用:False
    严重:真实
    ScriptName:


  4. 我将应用程序包装在一个帐户下运行的服务中,该帐户是"RTC服务器应用程序"组的成员。
  5. 我得到的所有内容(经过数千次其他错误):


 Microsoft.Rtc.Sip.UnauthorizedException:Application未经授权。 
---内部异常堆栈跟踪结束---
---> System.Exception:无法打开队列。
at Microsoft.Rtc.Sip.Impl.Queue.Open(String name,Boolean reader)
at Microsoft.Rtc.Sip.ServerAgent.Initialize(ApplicationManifest manifest,Boolean scriptOnly)
- - 内部异常堆栈跟踪结束---
---> System.Security.SecurityException:访问被拒绝。
at Microsoft.Rtc.Sip.ServerAgent.Initialize(ApplicationManifest manifest,Boolean scriptOnly)
at UCMA_FirstSIPApplication.Program.Run()in C:\ Users\Administrator\Documents\Visual Studio 2010 \Projects\UCMA_FirstSIPApplication\UCMA_FirstSIPApplication\Program.cs:第61行

此调用抛出异常(在applicationManifest成功编译之后):


 

 
new ServerAgent( this ,applicationManifest);

解决方案


尝试将服务帐户添加到以下群组



  • RTCHSUniversalServices
  • RTCComponentUniversalServices
  • RTCProxyUniversalServices

-Santosh


Hi, I'm new in Lync Server Development! I'm just following this article http://msdn.microsoft.com/en-us/library/hh364644.aspx.

  1. I used the simple application manifest example in the MSDN: using Dispatch("OnInviteReceived") and Dispatch("OnMessageReceived")
  2. I implemented an OnInviteReceived and OnMessageReceived handler and compiled all to 64Bit platform target.
  3. I registered the SIP application with the PowerShell command "new-CSServerApplication"

    Identity   : Service:Registrar:lyncsrv.lync.local/FirstSIPApplication
    Priority : 10
    Uri : http://lyncsrv.lync.local/UCMA_FirstSIPApplication
    Name : FirstSIPApplication
    Enabled : False
    Critical : True
    ScriptName :

  4. I wrapped the application in a service running under a account which is member of the group "RTC Server Applications"
  5. And all I got (after thousands of other errors):

 Microsoft.Rtc.Sip.UnauthorizedException: Application not authorized. 
   --- End of inner exception stack trace ---
---> System.Exception: Queue could not be opened. at Microsoft.Rtc.Sip.Impl.Queue.Open(String name, Boolean reader) at Microsoft.Rtc.Sip.ServerAgent.Initialize(ApplicationManifest manifest, Boolean scriptOnly) --- End of inner exception stack trace ---
---> System.Security.SecurityException: Access denied. at Microsoft.Rtc.Sip.ServerAgent.Initialize(ApplicationManifest manifest, Boolean scriptOnly) at UCMA_FirstSIPApplication.Program.Run() in C:\Users\Administrator\Documents\Visual Studio 2010\Projects\UCMA_FirstSIPApplication\UCMA_FirstSIPApplication\Program.cs:line 61

The exception is thrown at this call (after the applicationManifest got compiled succesfully):

 

new ServerAgent(this, applicationManifest);

解决方案

Try adding the service account to following groups

  • RTCHSUniversalServices
  • RTCComponentUniversalServices
  • RTCProxyUniversalServices

-Santosh


这篇关于创建托管SIP应用程序:“SecurityException:Access denied。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆