SFBO可信应用程序API建立失败

时间:2019-01-29 02:04:59

标签: skype

我正在尝试通过遵循此文档Developing Trusted Application API applications for Skype for Business Online来建立Trusted Application API。

但是在第一步和第二步中会停留几天。

1。注册

当我使用quick registration tool时,出现如下失败的消息。

失败:凭据验证失败。请重新登录

与现有应用程序相同。

下面是chrome devtools中捕获的调试消息。

  

“ AADSTS70002:验证凭据时出错。AADSTS54005:OAuth2授权代码已被兑换,请重试新的有效代码或使用现有的刷新令牌。   跟踪ID:814d3070-09bc-457b-9c96-4b59fba06300   相关编号:a414b44c-b630-45be-b2bb-585c2b7c1f3d   时间戳:2019-01-28 09:33:02Z“

2。注册受信任的应用程序端点

否则,我尝试跳过第1步,并创建一个应用程序并授予Skype权限。 之后,当我运行New-CsOnlineApplicationEndpoint命令时,仍然有一些问题。 这是我的脚本:

New-CsOnlineApplicationEndpoint -Uri "sip:uniquesip@xxx.onmicrosoft.com" -ApplicationId "fcab92de-65e1-48bf-be82-xxxxxxxx" -Name "xxxx" -Tenant "xxxxxxx-07ed-43c6-94fe-6047d6d1e5ed"

下面是快照,消息包含类似

的信息
D:\\a\\_work\\34\\s\\BVD\\CBD\\DataAccess\\Operations\\AppEndpointOperation.cs

Cmdlet 调用错误
    + CategoryInfo          : NotSpecified: (:) [New-CsOnlineApplicationEndpoint], CmdletInvocationException
    + FullyQualifiedErrorId : 处理 cmdlet 请求时出错,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformService
AppEnd    pointConfigCmdlet
    + PSComputerName        : admin0f.online.lync.com

{
  "error":{
    "code":"","message":"An error has occurred.","innererror":{
      "message":"Application: 'fcab92de-65e1-48bf-be82-31c4a559af82'","type":"Microsoft.Skype.EnterpriseVoice.CbdServic
e.DataAccess.EntityNotFoundException","stacktrace":"   at Microsoft.Skype.EnterpriseVoice.Common.Contracts.CheckNonNull
[T,TException](T val, String msg)\r\n   at Microsoft.Skype.EnterpriseVoice.CbdService.DataAccess.AppEndpointOperations.
<ValidateInsertStateAsync>d__45.MoveNext() in D:\\a\\_work\\34\\s\\BVD\\CBD\\DataAccess\\Operations\\AppEndpointOperati
ons.cs:line 1692\r\n End of stack trace from previous location where exception was thrown \r\n   at System.Runtim
e.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess
AndDebuggerNotification(Task task)\r\n   at Microsoft.Skype.EnterpriseVoice.CbdService.DataAccess.AppEndpointOperations
.<InsertAsync>d__8.MoveNext() in D:\\a\\_work\\34\\s\\BVD\\CBD\\DataAccess\\Operations\\AppEndpointOperations.cs:line 1
11\r\n End of stack trace from previous location where exception was thrown \r\n   at System.Runtime.ExceptionSer
vices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)\r\n   at Microsoft.Skype.EnterpriseVoice.CbdService.Controller.BvdEntitiesAccessor`3.<AddEntity>d_
_5.MoveNext() in D:\\a\\_work\\34\\s\\BVD\\CBD\\CBDService.FrontEnd\\Controller\\BvdEntitiesAccessor.cs:line 0\r\n E
nd of stack trace from previous location where exception was thrown \r\n   at System.Runtime.ExceptionServices.Excep
tionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(T
ask task)\r\n   at Microsoft.Skype.EnterpriseVoice.Common.OData.Controller.NavEntitiesController`2.<AddEntity>d__2.Move
Next()\r\n End of stack trace from previous location where exception was thrown \r\n   at System.Runtime.Exceptio
nServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebugge
rNotification(Task task)\r\n   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\r\n E
nd of stack trace from previous location where exception was thrown \r\n   at System.Runtime.ExceptionServices.Excep
tionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(T
ask task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n
 End of stack trace from previous location where exception was thrown \r\n   at System.Runtime.ExceptionServices.Exc
eptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification
(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n End of stack t
race from previous location where exception was thrown \r\n   at System.Runtime.ExceptionServices.ExceptionDispatchI
nfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()"
    }
  }
}
    + CategoryInfo          : InvalidOperation: (Microsoft.Rtc.M...
    }
  }
}:PlatformServiceCmdletException) [New-CsOnlineApplicationEndpoint],DataServiceClientException
    + FullyQualifiedErrorId : {
  "error":{
    "code":"","message":"An error has occurred.","innererror":{
          "message":"Application: 'fcab92de-65e1-48bf-be82-31c4a559af82'","type":"Microsoft.Skype.EnterpriseVoice.CbdS
   ervice.DataAccess.EntityNotFoundException","stacktrace":"   at Microsoft.Skype.EnterpriseVoice.Common.Contracts.Ch
  eckNonNull[T,TException](T val, String msg)\r\n   at Microsoft.Skype.EnterpriseVoice.CbdService.DataAccess.AppEndp
 ointOperations.<ValidateInsertStateAsync>d__45.MoveNext() in D:\\a\\_work\\34\\s\\BVD\\CBD\\DataAccess\\Operations
\\AppEndpointOperations.cs:line 1692\r\n End of stack trace from previous location where exception was thrown \r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerService    s.
TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Skype.EnterpriseVoice.CbdServi    ce.
DataAccess.AppEndpointOperations.<InsertAsync>d__8.MoveNext() in D:\\a\\_work\\34\\s\\BVD\\CBD\\DataAccess\\Ope    rati
ons\\AppEndpointOperations.cs:line 111\r\n End of stack trace from previous location where exception was th    rown
\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerS    ervice
s.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Skype.EnterpriseVoice.Cb    dServic
e.Controller.BvdEntitiesAccessor`3.<AddEntity>d__5.MoveNext() in D:\\a\\_work\\34\\s\\BVD\\CBD\\CBDService.    FrontEnd
\\Controller\\BvdEntitiesAccessor.cs:line 0\r\n End of stack trace from previous location where excepti    on was th
rown \r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.    CompilerSe
rvices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Skype.Enterpris    eVoice.Comm
on.OData.Controller.NavEntitiesController`2.<AddEntity>d__2.MoveNext()\r\n End of stack trace from p    revious loca
tion where exception was thrown \r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Th    row()\r\n   a
t System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at System.Th
reading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()\r\n End of stack trace from p    revious locatio
n where exception was thrown \r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Th    row()\r\n   at S
ystem.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n       at System.Web.H
ttp.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n End of s    tack trace from pr
evious location where exception was thrown \r\n   at System.Runtime.ExceptionServices.Excepti    onDispatchInfo.Thro
w()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificatio    n(Task task)\r\n   a
t System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n End of s    tack trace from previ
ous location where exception was thrown \r\n   at System.Runtime.ExceptionServices.Excepti    onDispatchInfo.Throw()
\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificatio    n(Task task)\r\n   at S
ystem.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()"
    }
  }
},Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
    + PSComputerName        : admin0f.online.lync.com

有人可以给我建议吗?

我能够提供您所需的任何信息。

0 个答案:

没有答案