IT Management Suite

 View Only

Getting Agent Projects to compile on Windows Server 2008 Systems 

Dec 18, 2009 04:08 PM

If you have set up a development environment on Windows Server 2008 or Windows Server 2008 R2, you may have found this issue:  When you try to compile your Agent Plugin project, you get the following error:

fatal error C1083: Cannot open type library file: 'msxml.dll': No such file or directory. 

The source of the error is the stdafx.h file.

I did a bit of research and found out that this particular xml parsing library is quite old and has been deprecated for some time now.  The most current version of this library is msxml6.dll, and both msxml3.dll and msxml6.dll ship with Windows Server 2008.

Changing the #include in the stdafx.h file to include msxml3.dll and then updating all MSXML namespace references to MSXML2 gets you past this compilation error, but then you will run into link errors since the NS Core's xmlutil library is linked against msxml.dll.  This particular dependency will go away soon, but until it does, there is a relatively simple workaround.

All you have to do is locate msxml.dll on a Windows Server 2003 system and copy it into the C:\Windows\System32\ directory on the Windows Server 2008 system.  The agent project should compile and link and you should be able to continue with development and testing until we receive a new xmlutil library from the core team. 

It is important to note that this is only a temporary workaround.  When we receive the new xmlutil library from the core team, I will write a new blog explaining how to convert your Agent Plugin project to use the msxml3.dll or msxml6 dll---whichever the core team decides to use.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.