<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ganshani.com &#187; VS2008</title>
	<atom:link href="http://www.ganshani.com/tag/vs2008/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ganshani.com</link>
	<description>Puneet Ghanshani - .NET, Silverlight, Sharepoint Articles, Blogs, Poems, Photograph</description>
	<lastBuildDate>Sat, 24 Apr 2010 10:17:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VS 2008 : Plugin Pop-up issue</title>
		<link>http://www.ganshani.com/2008/09/02/vs-2008-plugin-pop-up-issue/</link>
		<comments>http://www.ganshani.com/2008/09/02/vs-2008-plugin-pop-up-issue/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 14:49:57 +0000</pubDate>
		<dc:creator>Punit Ganshani</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Microsoft .NET]]></category>
		<category><![CDATA[Winform]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[VS2008]]></category>

		<guid isPermaLink="false">http://www.ganshani.com/?p=121</guid>
		<description><![CDATA[
			
				
			
		
While adding a pop-up to a plugin, designed in VS 2008, one of the commonly faced problem is:
Error 1 The best overloaded method match for &#8216;EnvDTE80.Commands2.AddNamedCommand2(EnvDTE.AddIn, string, string, string, bool, object, ref System.Array, int, int, EnvDTE80.vsCommandControlType)&#8217; has some invalid arguments C:\Punit Ganshani\Desktop Applications\MyAddin2\MyAddin2\Connect.cs 40 24 MyAddin2
Error 2 Argument &#8216;7&#8242;: cannot convert from &#8216;ref object[]&#8216; to &#8216;ref System.Array&#8217; C:\Punit Ganshani\Desktop Applications\MyAddin2\MyAddin2\Connect.cs 40 140 MyAddin2
Resolution:
Change:
object []contextGUIDS = new object[] [...]


<h2>Related posts:</h2><ul><li><a href='http://www.ganshani.com/2009/02/24/exception-message-box-in-c/' rel='bookmark' title='Permanent Link: Exception Message Box in C#'>Exception Message Box in C#</a></li>
<li><a href='http://www.ganshani.com/2008/11/29/using-smart-client-with-enterprise-library-4/' rel='bookmark' title='Permanent Link: Using Smart Client with Enterprise Library 4'>Using Smart Client with Enterprise Library 4</a></li>
<li><a href='http://www.ganshani.com/2008/07/12/dlin/' rel='bookmark' title='Permanent Link: DLINQ'>DLINQ</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.ganshani.com%2F2008%2F09%2F02%2Fvs-2008-plugin-pop-up-issue%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.ganshani.com%2F2008%2F09%2F02%2Fvs-2008-plugin-pop-up-issue%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>While adding a pop-up to a plugin, designed in VS 2008, one of the commonly faced problem is:</p>
<p>Error 1 The best overloaded method match for &#8216;EnvDTE80.Commands2.AddNamedCommand2(EnvDTE.AddIn, string, string, string, bool, object, ref System.Array, int, int, EnvDTE80.vsCommandControlType)&#8217; has some invalid arguments C:\Punit Ganshani\Desktop Applications\MyAddin2\MyAddin2\Connect.cs 40 24 MyAddin2<br />
Error 2 Argument &#8216;7&#8242;: cannot convert from &#8216;ref object[]&#8216; to &#8216;ref System.Array&#8217; C:\Punit Ganshani\Desktop Applications\MyAddin2\MyAddin2\Connect.cs 40 140 MyAddin2</p>
<p><strong>Resolution:</p>
<p></strong>Change:<br />
<span style="font-size: x-small;"><span style="color: #0000ff;">object</span> []contextGUIDS = <span style="color: #0000ff;">new</span> <span style="color: #0000ff;">object</span>[] { };<br />
to:<br />
System.<strong><span style="color: #000080;">Array</span></strong></span><span style="font-size: x-small;"> contextGUIDS = <span style="color: #0000ff;">new</span> <span style="color: #0000ff;">object</span>[] { };</span></p>
<p><span style="font-size: x-small;">and it should compile &amp; execute perfectly.</span></p>


<p><h2>Related posts:</h2><ul><li><a href='http://www.ganshani.com/2009/02/24/exception-message-box-in-c/' rel='bookmark' title='Permanent Link: Exception Message Box in C#'>Exception Message Box in C#</a></li>
<li><a href='http://www.ganshani.com/2008/11/29/using-smart-client-with-enterprise-library-4/' rel='bookmark' title='Permanent Link: Using Smart Client with Enterprise Library 4'>Using Smart Client with Enterprise Library 4</a></li>
<li><a href='http://www.ganshani.com/2008/07/12/dlin/' rel='bookmark' title='Permanent Link: DLINQ'>DLINQ</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://www.ganshani.com/2008/09/02/vs-2008-plugin-pop-up-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
