TIBCO Scribe® Insight Adapter for NAV Adapter Hooks MSXML Error

TIBCO Scribe® Insight Adapter for NAV Adapter Hooks MSXML Error

book

Article ID: KB0073061

calendar_today

Updated On:

Products Versions
TIBCO Scribe Insight -

Description

ErrorsThere are several errors that could be returned referencing the microsoft.msxml.dll

  • Cannot load type MSXML.DOMDocument.Microsoft.MSXML
  • Cannot create an instance of the following .NET Framework object: assembly Microsoft.MSXML
  • SetXmlBuffer Error: Scribe.NavAdapter.NasHook.Receiver.SetXmlBuffer
  • Delegate not set for 'Command' operation
  • Codeunits may not compile

kA20e000000Xfy4CAC_en_US_1_0

Cause: In all of the above cases, the issue is that the microsoft.msxml.dll file does not exist or is in the wrong location.
 
 

Resolution

The file may exist in C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies folder.
 
In some cases the microsoft.msxml.dll can be copied into the same folder on the NAS server wherever the Scribe.NavAdapter.NasHook.dll file is located. This could be in one or more of the following locations. For example:

…\Microsoft Dynamics NAV\71\Service\Add-Ins\Scribe
…\Microsoft Dynamics NAV\71\RoleTailored Client\Add-Ins\Scribe

If this fails to resolve the issue then the microsoft.msxml.dll must be installed/registered into the Global Assembly Cache (GAC) folder for .NET.  Prior to .net 4.0, this could be accomplished by dragging the file into the GAC folder.

However starting with .NET 4.0, Microsoft removed the ability to add DLLs to the GAC by simply dragging and dropping.  Instead, you need to use a tool such as gacutil.exe, or create an installer to do it. See the link below for more information on gacutil.exe.

https://msdn.microsoft.com/en-us/library/ex0ss12c(v=vs.110).aspx

The gacutil.exe tool is automatically installed with Visual Studio and also part of the Microsoft Windows SDK if installed. Generally, the gacutil.exe file will be located in C:\Program Files (x86)\Microsoft SDKs\Windows....

TIBCO  does not support the use of this utility and you may use it  "as is" without a warranty of any kind.
 
1.      Install  microsoft.msxml.dll into the GAC
2.      Restart the NAS service.
3.      Compile all Scribe codeunits, tables, and xmlport.
4.      Restart NAS service again.



 

Issue/Introduction

How to resolve several errors that could be returned referencing the microsoft.msxml.dll - Cannot load type MSXML.DOMDocument.Microsoft.MSXML - Cannot create an instance of the following .NET Framework object: assembly Microsoft.MSXML - SetXmlBuffer Error: Scribe.NavAdapter.NasHook.Receiver.SetXmlBuffer - Delegate not set for 'Command' operation - Codeunits may not compile