I'm trying to COM interop w/ Navision through a .Net assembly - and specifically using MSXML interfaces. This leads to the following error message:
The assembly "C:\Users\bra\Documents\Visual Studio 2008\Projects\SOAPROXY\SOAPROXY\bin\Release\SOAPROXY.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'SOAPROXY.ISoap.PostEnvelope(#0), SOAPROXY'. Error: Type library exporter cannot load type 'MSXML2.IXMLDOMDocument' (error: System.IO.FileNotFoundException: Could not load file or assembly 'Interop.MSXML2, Version=6.0.0.0, Culture=neutral, PublicKeyToken=fbdb4bb4a7dccef2' or one of its dependencies. The system cannot find the file specified. File name: 'Interop.MSXML2, Version=6.0.0.0, Culture=neutral, PublicKeyToken=fbdb4bb4a7dccef2'). SOAPROXY
The basic interface is defined as
[Guid("some guid")]
[ComVisible(true)]
public interface ISoap
{
IStatus State { get; }
IXMLDOMDocument PostEnvelope(IXMLDOMDocument envelope, string action, string endpoint, string print, string store, string location);
}
[ClassInterface(ClassInterfaceType.None)]
[ComVisible(true)]
public class Soap : ISoap
{
...
}
Any clues?