I am using dotnet to send xml to a webservice. Works fine on me dev machine, but not on-site at the customer. I am getting this error:
Could not load type 'MSXML.XMLHTTPRequest.'Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a''.
What do I need to install? Thanks!
0
Comments
Try installing MSXML 6.0 or you can install NAV on that machine, as Microsoft Core XML Services (MSXML) 6.0 Service Pack 1 is installed as a pre-requisite.
I hope this helps
Thanks.
Tried downloading and installing the various msxml6.msi installers.
They successfully installed but nothing was registered in the GAC??
What I used from another server with VS & SQL Server installed was: C:\Program Files (x86)\Microsoft.NET\Primary Interop Assemblies\microsoft.msxml.dll
To register this to the GAC via powershell (without Gacutil.exe) I downloaded
https://powershellgac.codeplex.com/documentation?referringTitle=Home
In Powershell find the Modules Folder to extract the GAC folder too.
PS C:\Windows\system32> $env:PSModulePath
PS C:\Windows\system32> Import-Module Gac
Register the dll
PS C:\Windows\system32> Add-GacAssembly C:\Program Files\Microsoft Dynamics NAV\80\Service\Add-ins\microsoft.msxml.dll
Your Web Service codeunit should compile and the dll appear in C:\Windows\assembly\GAC_MSIL\Microsoft.MSXML
The use of MSXML is not supported in .NET applications