I am having trouble with a reference in my VB.NET application.
The code I am using is straight from MSDN:
http://msdn.microsoft.com/library/de...rdcstpubpt.asp
Currently, it is barebones until I get this resolved.
<code>
Imports Microsoft.Windo wsMediaServices .Interop
Imports System.Runtime. InteropServices
....
Dim Server As WMSServer
Dim BCPubPoint As IWMSBroadcastPu blishingPoint
Dim Playlist As IWMSPlaylist
....
Server = New WMSServer()
BCPubPoint = Server.Publishi ngPoints.Add("N ewPubPoint", _
WMS_PUBLISHING_ POINT_CATEGORY. WMS_PUBLISHING_ POINT_BROADCAST ,
_
"rtsp://server/pubpoint/movie.wmv")
....
If BCPubPoint.Broa dcastStatus =
WMS_BROADCAST_P UBLISHING_POINT _STATUS.WMS_BRO ADCAST_PUBLISHI NG_POINT_STOPPE D
Then
BCPubPoint.Star t()
Playlist = BCPubPoint.Shar edPlaylist
...
end if
</code>
Without the interop_msxml refernce in my project, I get this compile
error:
"Reference required to assembly 'interop_msxml' containing the
implemented interface 'interop_msxml. IXMLDOMDocument '. Add one to your
project."
OK, so I go and get the dll interop_msxml (it is version 9.0.0.3693)
and add it to my project. And I immediately get the following error:
Warning: The dependency 'interop_msxml, Version=2.0.0.0 ,
Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5' in project
'SimpleConnect' cannot be copied to the run directory because it would
overwrite the reference 'interop_msxml, Version=9.0.0.3 693,
Culture=neutral '.
You see, before I can blink, it has automagically copied the file into
the bin directory. Note the discrepancy in versions. Even though I
added V9.0.0.3693, it is now trying to add v2.0.0.0.
Now, there *does* exist a dll called interop.MSXML.d ll (note the
different spelling in the filename: '.' vs '_'), and it is
version 2.0.0.0. So I removed the other one and tried adding this one.
And I am back to the following error: "Reference required to assembly
'interop_msxml' containing the implemented interface
'interop_msxml. IXMLDOMDocument '. Add one to your project."
OK, so that's not the one I'm supposed to add. But how do I resolve
this apparent conflict?
An MSDN entry
(http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx)
suggests installing it to the global assembly cache, which
automatically resolves conflicts, so I tried that, but could neither
add either dll to the GAC nor find any existing reference to delete. So
I'm stumped.
Help!