部署到Azure时,RightsManagementServices调用中出错 [英] When deploying to Azure, error in RightsManagementServices call

查看:77
本文介绍了部署到Azure时,RightsManagementServices调用中出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这在本地完美运行,但是当我通过App Service或VM部署到Azure时,我在Microsoft.RightsManagementServices上收到一个对象null引用错误:

This works perfectly locally, but when I deploy to Azure, via an App Service or a VM, I get an object null reference error:

。 Online.IdCrl.OrgIdNativeMethods。 GetIdentityCrlDllPath()

    at Microsoft.RightsManagementServices.Online.IdCrl.OrgIdNativeMethods.Initialize()

    at Microsoft.RightsManagementServices.Online.Admin.PowerShell.AdminCommandBase..ctor()

at Microsoft.RightsManagementServices.Online.IdCrl.OrgIdNativeMethods.GetIdentityCrlDllPath()
   at Microsoft.RightsManagementServices.Online.IdCrl.OrgIdNativeMethods.Initialize()
   at Microsoft.RightsManagementServices.Online.Admin.PowerShell.AdminCommandBase..ctor()

在工作机器上查看Visual Studio中的模块列表,我没有看到任何尚未存在的DLL加载。

Looking through the modules list in Visual Studio on a working machine, I don't see any DLLs loading that don't already exist.

基于反编译,当 new OrgIdManager()时出现错误在基类中调用,来自Microsoft,名为AdminCommandBase:

Based on a decompilation, the error appears to occur when new OrgIdManager() is called in the base class, which is from Microsoft, named AdminCommandBase:

namespace Microsoft.RightsManagementServices.Online.Admin.PowerShell
{
  public abstract class AdminCommandBase : AadrmCommandBase
  {
    private readonly OrgIdManager _orgIdMgr = new OrgIdManager();

这是一个剪切的继承:

internal class AzureActiveDirectoryRmsServiceClient : AdminCommandBase
{
    private const string StsSiteId = "discover.aadrm.com";
    private const string UserSessionStateFqn = "Microsoft.RightsManagementServices.Online.Admin.PowerShell.UserSessionState";
    private const string DiscoveryServiceLocatorUrl = "https://discover.aadrm.com/_wmcs/certification/ServiceLocator.asmx";

微软对此有何想法?我现在很难过。我可以在Azure VM上安装一些东西,这个调用有效吗?

Any ideas from Microsoft on this one? I'm stumped for now. Is there something I can install on the Azure VM so this call works??

提前致谢!

-Auri

推荐答案

仔细观察我看到对注册表项的调用。它似乎与Microsoft登录助手相关联。但是,经过几次尝试后,我无法在Windows Server上运行该安装程序。有什么想法吗?

Looking a little closer I see a call to a registry entry. It seems to correlate to Microsoft Sign-In Assistant. However, I can't run that installer on Windows Server after a few tries. Any ideas?


这篇关于部署到Azure时,RightsManagementServices调用中出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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