using interop_msxml;
using Microsoft.WindowsMediaServices.Interop; public void LoadingOnePlayList()
{
// Declare variables.
// Declare the playlist, element, and node variables.
try
{
IXMLDOMDocument playlist;
IXMLDOMElement element_smil, element_media;
IXMLDOMNode proc_inst, root, node; // Create new server and playlist objects.
WMSServer server = new WMSServerClass();
// **问题出现的行***  playlist = (IXMLDOMDocument)server.CreatePlaylist();
}
catch
{
}

// interop_msxml.IXMLDOMNodeList NodeList;
// interop_msxml.IXMLDOMElement ElementMedia;
// int i;
// string strPath;
//
// try
// {
// Server = new WMSServerClass();
// // Create a new playlist.
// Playlist = Server.CreatePlaylist();
//
// // Load an existing playlist.
// Playlist.load("D:\\wmpub\\WMRoot\\test.wsx");
//
// // Retrieve a list of all media elements in the playlist.
// NodeList = Playlist.getElementsByTagName("media");
//
// // Alter the path of each media element.
// for (i = 0; i < NodeList.length; i++)
// {
// // Retrieve the next node in the list.
// ElementMedia = (IXMLDOMElement)NodeList[i];
//
// // Concatenate a new relative path to that of the
// // current media element.
// strPath = "ASF\\" +  
// ElementMedia.getAttribute("src");
//
// // Set the src attribute to contain the new  
// // relative path.
// ElementMedia.setAttribute("src", strPath);
// }
//
// // Save the playlist.
// Playlist.save("D:\\wmpub\\WMRoot\\test.wsx");
// }
//
// catch (Exception exc)
// {
// // TODO: Exception handler goes here.
// }
//
// finally
// {
// // TODO: Clean-up code goes here.
// } }
    一到星号的行就会出现运行时,提示interop_msxml所引用的程序集清单和程序集不匹配这个是为什么呢,编译都可以通过,而且这些都是sdk上的代码呀,高手救救我吧!