<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx</link><description>This article is now superseded by the "Registration-Free Activation of .NET-Based Components: A Walkthrough" MSDN article. Please see the MSDNography links section.</description><dc:language>en-GB</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title> White Steve Blog SxS Managed COM With Manifest Resource WinXP and Win2K3 | Cellulite Creams</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#9720781</link><pubDate>Wed, 10 Jun 2009 04:44:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9720781</guid><dc:creator> White Steve Blog SxS Managed COM With Manifest Resource WinXP and Win2K3 | Cellulite Creams</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://cellulitecreamsite.info/story.php?id=2571"&gt;http://cellulitecreamsite.info/story.php?id=2571&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9720781" width="1" height="1"&gt;</description></item><item><title> White Steve Blog SxS Managed COM With Manifest Resource WinXP and Win2K3 |  Portable Greenhouse</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#9681040</link><pubDate>Mon, 01 Jun 2009 22:39:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9681040</guid><dc:creator> White Steve Blog SxS Managed COM With Manifest Resource WinXP and Win2K3 |  Portable Greenhouse</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://portablegreenhousesite.info/story.php?id=9815"&gt;http://portablegreenhousesite.info/story.php?id=9815&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9681040" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#377004</link><pubDate>Mon, 21 Feb 2005 04:20:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:377004</guid><dc:creator>Steve White</dc:creator><description>This article is now superseded by the &amp;quot;Registration-Free Activation of .NET-Based Components: A Walkthrough&amp;quot; article. That article answers the questions raised in the comments.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=377004" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#375547</link><pubDate>Fri, 18 Feb 2005 04:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:375547</guid><dc:creator>jason buxton</dc:creator><description>Sorry to produce a red herring with my comment regarding relevance.&lt;br&gt;&lt;br&gt;I'll see what I can do about locating all the files necessary to support the #include, and will run the experiment again.  I'll keep you posted on how it goes.  Thanks for sticking with me.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=375547" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#374497</link><pubDate>Thu, 17 Feb 2005 00:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:374497</guid><dc:creator>Steve White</dc:creator><description>&amp;gt; the #include &amp;lt;windows.h&amp;gt; isn't relevant to a VB project anyway, right?&lt;br&gt;&lt;br&gt;So, you said initially &amp;quot;my environment is almost exclusively VB6 apps that need to interop with .NET assemblies.&amp;quot; The only step in this article which is potentially relevant to VB6 is step 4. To make VB6 relevant you'd create a VB6 app instead of a C++ app in step 4, reference the .tlb generated when you registered your .NET assembly for COM Interop and use it as normal.&lt;br&gt;&lt;br&gt;All the other steps *have to be done as written*. The build.cmd file is to build your .NET assembly. So although #include &amp;lt;windows.h&amp;gt; isn't relevant to VB6, it is relevant to this article and it's not one of the bits which are replaced by replacing the C++ client with a VB6 client.&lt;br&gt;&lt;br&gt;I mentioned the #include &amp;lt;windows.h&amp;gt; as an example of something which, if forgotten, will prevent the experiment from working.&lt;br&gt;&lt;br&gt;As I said before, If you can get to step 5 (and this is nothing to do with SxS yet) then the remaining steps will apply to a VB6 app.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=374497" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#374427</link><pubDate>Wed, 16 Feb 2005 23:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:374427</guid><dc:creator>jason buxton</dc:creator><description>Thanks for your patience and diligence, Steve.  I'm going to have to wait for the MSDN article; I'm rather busy as well, which is why I've been asking you to fit a square peg in a round hole, rather than buck up and learn rudimentary C++.&lt;br&gt;&lt;br&gt;For the record, though - the #include &amp;lt;windows.h&amp;gt; isn't relevant to a VB project anyway, right?  I see other #includes in the file itself, which would mean those files would have to be there in order for the build.cmd file to execute successfully...&lt;br&gt;&lt;br&gt;Thanks again, and good luck on the article.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=374427" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#374252</link><pubDate>Wed, 16 Feb 2005 18:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:374252</guid><dc:creator>Steve White</dc:creator><description>There are multiple possible points of failure in getting SxS to work, most resulting in the error message you quote. For example if you omit #include &amp;lt;windows.h&amp;gt; in step 10, you'll see it.&lt;br&gt;&lt;br&gt;What I suggest is two things. First, do your experiments on Win2K3 and check the System event log. Win2K3 gives better messages than XP's which are unhelpful. Second, I really urge you to get a functioning frame of reference for SxS by following the steps given in this article. Get some practice in what does and doesn't work before we 'move the goalposts' by moving to VB6. You see, I only have the proofs published here, I have no proofs involving VB6. I do plan to do that work in due course, but I'm maxed out right now. Another option for you is to raise a case with MS Product Support.&lt;br&gt;&lt;br&gt;I do sympathise with your frustration - getting this far has been a struggle for me. But I will get round to VB6 in time and I intend to cover it in the eventual MSDN article.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=374252" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#373605</link><pubDate>Wed, 16 Feb 2005 05:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:373605</guid><dc:creator>jason buxton</dc:creator><description>Steve - &lt;br&gt;&lt;br&gt;It's not working....  I've followed the steps you outlined and the best I can get is what I had before.  I run the VB6 executable, and get a messagebox that says this:&lt;br&gt;&lt;br&gt;&amp;quot;This application has failed to start because the application configuration is incorrect.  Reinstalling the application may fix this problem.&amp;quot;&lt;br&gt;&lt;br&gt;That's about all I can get.  Would it be worthwhile for you to see the three objects (EXE, Manifest and DLL)?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=373605" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#370076</link><pubDate>Thu, 10 Feb 2005 06:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:370076</guid><dc:creator>Steve White</dc:creator><description>It looks like .NET assemblies registered for COM are Both-threaded which means no marshalling takes place whether the object is called from an MTA or an STA. So your VB client, calling from an STA, will be fine with the assembly manifest as I first showed it, i.e. no need for the extra comInterfaceExternalProxyStub element.&lt;br&gt;&lt;br&gt;I'd say go ahead with my original set of steps and just build a VB6 client instead of a C++ one. For reference, I rebuilt my C++ client but made it STA (as VB is) and it worked without changing the manifest.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Steve&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=370076" width="1" height="1"&gt;</description></item><item><title>re: SxS Managed COM With Manifest Resource (WinXP and Win2K3)</title><link>http://blogs.msdn.com/b/stevewhitepsfd/archive/2005/02/05/367691.aspx#369929</link><pubDate>Thu, 10 Feb 2005 02:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:369929</guid><dc:creator>Steve White</dc:creator><description>Sure, go for it.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=369929" width="1" height="1"&gt;</description></item></channel></rss>