Dave Posted March 13, 2003 Posted March 13, 2003 What files need to be distributed when deploying an application with a COM component? For example, if I create a project with a reference to Windows Media Player (wmp.dll) a file called Interop.WMPLib.dll appears in my bin folder. Does only this need to be distributed or wmp.dll too? Quote
a_jam_sandwich Posted March 13, 2003 Posted March 13, 2003 windows media player will need to be installed on the computer running your software - wmp.dll will then be installed simply distributing this DLL will not do the trick Andy Quote Code today gone tomorrow!
*Gurus* divil Posted March 13, 2003 *Gurus* Posted March 13, 2003 And yes, you do need to distribute your Interop assembly. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
neosven Posted April 2, 2003 Posted April 2, 2003 How do you distribute an assembly? I have the same problem with interop.sqldmo.dll This is a file to search all the available servers in your domain. When I install my application on an other computer I always get an error that that dll is not registered or validated. How can I solve this problem? Quote
*Gurus* divil Posted April 2, 2003 *Gurus* Posted April 2, 2003 You need to include the dll in your setup project so it gets installed on your user's system. Further, since it is a COM dll and requires registering, you need to mark it as such in your setup project. There is usually a per-file setting that you can change to "self register" or similar. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
neosven Posted April 2, 2003 Posted April 2, 2003 Thanks, I will try it again tomorrow at work. I already tried this, I'll give it another go. The problem occurs on an NT 4 computer, but works on a 2000 computer. Could there be another problem? Quote
*Gurus* divil Posted April 2, 2003 *Gurus* Posted April 2, 2003 I can't think of one - unless your dll in turn references another dll which needs to be present. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.