<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - .Net dll built for COM, target machine fails</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - .Net dll built for COM, target machine fails</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 19:57:56 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 19:57:56 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>4</c9:totalResults>
	<c9:pageCount>-4</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - .Net dll built for COM, target machine fails</title>
		<description><![CDATA[<p>I have a C# dll built for COM and its all fine for my machine. I have a sample vm setup running just XP, .net 1.1 and 2.0 to serve as a test target machine.<br /><br />My legacy application is file-server(exe sits on network) and this cannot change. Doing things the right way I install my dll(and interop.xxx&nbsp;files) to C:\Docs and Settings\whatever\App Data\CompanyName\<br /><br />Now I know I need to get the class into the GAC so that my legacy app can see&nbsp;it over COM. I couldn't do this straight up as the gacutil isnt part of the .net runtime(so the target machine doesnt have it). I wrote a little installer/uninstaller exe which does
 this using System.EnterpriseServices.Internal.Publish.gacInstall(). <br /><br />I made sure my dll was strongly typed via the .net command prompt doing sn -k whatever.snk and adding that to the project as the key file.<br /><br />Ok, I can browse to C:\Windows\Assembly and see my class there but my legacy app still fails when creating the object on the target machine...<br /><br />What gives? <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-6.gif' alt='Sad' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/260936#260936</link>
		<pubDate>Tue, 12 Feb 2008 21:06:28 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/260936#260936</guid>
		<dc:creator>KeyboardG</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Dark_Halmut/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - .Net dll built for COM, target machine fails</title>
		<description><![CDATA[<p>So I got it to work by cd'ing to the .net 2 directory and doing </p>
<p>regasm &quot;my full path to my dll\my.dll&quot; /codebase</p>
<p>&nbsp;</p>
<p>Is there a downside to this? There seems to be conflicting notation/articles out there on both of these methods.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/9635ea54b17942ea848b9dfa00beff63#9635ea54b17942ea848b9dfa00beff63</link>
		<pubDate>Tue, 12 Feb 2008 22:24:01 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/9635ea54b17942ea848b9dfa00beff63#9635ea54b17942ea848b9dfa00beff63</guid>
		<dc:creator>KeyboardG</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Dark_Halmut/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - .Net dll built for COM, target machine fails</title>
		<description><![CDATA[<p><blockquote>
<div class="quoteAuthor">Dark_Halmut wrote:</div>
<div class="quoteBody">&#65279;
<p>So I got it to work by cd'ing to the .net 2 directory and doing </p>
<p>regasm &quot;my full path to my dll\my.dll&quot; /codebase</p>
<p>&nbsp;</p>
<p>Is there a downside to this? There seems to be conflicting notation/articles out there on both of these methods.</p>
</div>
</blockquote>
<br /><br />Depends on what you are trying to do. Is you com app and c# dll in the same directory? If so use regasm with tlb option<br />regasm &lt;full path&gt;.dll /tlb:&lt;fullpath&gt;.tlb.<br />&nbsp;<br />Don't use code base if you are going to install it in gac. More information here<br /><br /><a href="<a href="http://msdn2.microsoft.com/en-us/library/tzat5yw6(VS.71">http&#58;&#47;&#47;msdn2.microsoft.com&#47;en-us&#47;library&#47;tzat5yw6&#40;VS.71</a>).aspx"><a href="http://msdn2.microsoft.com/en-us/library/tzat5yw6(VS.71">http&#58;&#47;&#47;msdn2.microsoft.com&#47;en-us&#47;library&#47;tzat5yw6&#40;VS.71</a>).aspx</a></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/52c93cce5d1443d383a69dfa00beffa3#52c93cce5d1443d383a69dfa00beffa3</link>
		<pubDate>Wed, 13 Feb 2008 01:44:16 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/52c93cce5d1443d383a69dfa00beffa3#52c93cce5d1443d383a69dfa00beffa3</guid>
		<dc:creator>anand042008</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/anand042008/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - .Net dll built for COM, target machine fails</title>
		<description><![CDATA[<p>Thanks, I had found some stuff online that also said don't put the assembly into the gac if you plan on using it for COM. The multiple ways is a bit cloudy/confusing.<br /><br />Unfornately the legacy app using the dll sits on a network share(file-server app) but the new C# dll will sit on each users WinDisk\Docs and Setting\All Users\App Data\App Folder\<br /><br /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/21ade318ec0845e885ce9dfa00bf0025#21ade318ec0845e885ce9dfa00bf0025</link>
		<pubDate>Thu, 14 Feb 2008 01:41:22 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/260936-Net-dll-built-for-COM-target-machine-fails/21ade318ec0845e885ce9dfa00bf0025#21ade318ec0845e885ce9dfa00bf0025</guid>
		<dc:creator>KeyboardG</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Dark_Halmut/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>