-1

在过去的两天里,我一直在寻找解决问题的方法。现在谷歌只显示我已经访问过的链接。

我收到以下错误:

    [COMException (0x80040154): La récupération de la fabrique de classes COM pour le composant avec le CLSID {29131539-2EED-1069-BF5D-00DD011186B7} a échoué en raison de l'erreur suivante : 80040154 Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).]
    Default2.initSession() in c:\inetpub\wwwroot\GestionDomino\Default.aspx.cs:45
    Default2.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\GestionDomino\Default.aspx.cs:32
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
    System.Web.UI.Control.OnLoad(EventArgs e) +92
    System.Web.UI.Control.LoadRecursive() +54
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

我知道堆栈跟踪的某些部分是法语的。那是因为执行此代码的服务器是法国服务器。

这是我的代码:

    public partial class Default2 : System.Web.UI.Page
    {
        Domino.NotesSession lotusNoteSession;
        Domino.NotesDatabase localDatabase;
        Domino.NotesView specificView;

        protected void Page_Load(object sender, EventArgs e)
        {

            //authentifies the user
            checkAuthen();
            //opens the domino session
            initSession();
            //fill the gridview
            if (!IsPostBack)
            {
                FillgvVue();
            }
        }

        protected void initSession()
        {
            //opens the domino session
            lotusNoteSession = new Domino.NotesSession();

代码继续。但我停止在有问题的行复制它 lotusNoteSession = new Domino.NotesSession()。此行触发错误。

我尝试使用 regsvr32.exe 注册 Interop.Domino.dll

目标 cpu 已设置为 x86

我需要做什么?

提前致谢


4

1 回答 1

1

您也需要正确注册 nlsxbe.dll。我很确定我以前在 StackOverflow 上看到过涵盖此内容的帖子,但我现在找不到它们。

但是,根据此IBM 技术说明,在 64 位操作系统上不支持 nlsxbe.dlll 和 Interop.Domino.dll 后面的 Notes COM 类。它们可以大部分工作,但是如果您需要一个解决方案,如果遇到问题,您可以依靠 IBM 寻求支持,您应该查看可用于 Notes/Domino 环境的其他 API 和避免使用 COM,或者找到在 32 位操作系统上运行它们的方法。

至于“大部分”部分,我记得的问题在于返回设计元素集合的方法(例如,NotesDatabase.Views())。大多数类和方法似乎都可以工作——包括那些返回单个元素的类和方法(例如,getView())。但同样,这些类在 64 位上没有官方支持,所以如果您遇到任何其他问题,您将自行解决。

于 2017-01-12T14:37:09.847 回答