<?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>Why is FrameworkVersionMismatchException thrown? (Hamed Ahmadi)</title><link>http://blogs.msdn.com/b/vsto/archive/2010/04/06/why-is-frameworkversionmismatchexception-thrown-hamed-ahmadi.aspx</link><description>The “Microsoft.VisualStudio.Tools.Applications.Deployment.FrameworkVersionMismatchException” is thrown due to the specific implementation of how VSTO 2010 runtime loads the appropriate CLR to install a VSTO customization. 
 This exception is thrown when</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Why is FrameworkVersionMismatchException thrown? (Hamed Ahmadi)</title><link>http://blogs.msdn.com/b/vsto/archive/2010/04/06/why-is-frameworkversionmismatchexception-thrown-hamed-ahmadi.aspx#9993373</link><pubDate>Fri, 09 Apr 2010 20:18:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9993373</guid><dc:creator>VSTOTeam</dc:creator><description>&lt;p&gt;Yes, you can target 3.5 and still develop solutions for Office 2010. As I mentioned in the last paragraph of the post, this exception does not have anything to do with your customization not loading. you can set the VSTO_SUPPRESSDISPLAYALERTS to 0 and set the loadbehavior to 3 for you addin, and restart the Outlook to see the &amp;quot;real&amp;quot; problem. for more questions, please refer to VSTO forum: &lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/vsto/threads"&gt;http://social.msdn.microsoft.com/Forums/en-US/vsto/threads&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Hamed&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9993373" width="1" height="1"&gt;</description></item><item><title>re: Why is FrameworkVersionMismatchException thrown? (Hamed Ahmadi)</title><link>http://blogs.msdn.com/b/vsto/archive/2010/04/06/why-is-frameworkversionmismatchexception-thrown-hamed-ahmadi.aspx#9992963</link><pubDate>Fri, 09 Apr 2010 06:26:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9992963</guid><dc:creator>Furqan</dc:creator><description>&lt;p&gt;I have created an Outlook 2010 addin using Visual studio 2010 and VSTO 4.0. targeting .NET fw 3.5. I am trying to customize explorer ribbon by addind a custom tab. When I launch outlook 2010, i get the following error in event viewer and the addin manager says: &amp;quot;There was a runtime error when loading the addin&amp;quot;.&lt;/p&gt;
&lt;p&gt;Customization URI: file:///c:/documents and settings/eiuser200/my documents/visual studio 2010/Projects/OutlookAddIn1/OutlookAddIn1/bin/Debug/OutlookAddIn1.vsto&lt;/p&gt;
&lt;p&gt;Exception: &amp;lt;compatibleFrameworks xmlns=&amp;quot;urn:schemas-microsoft-com:clickonce.v2&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;framework targetVersion=&amp;quot;3.5&amp;quot; profile=&amp;quot;Client&amp;quot; supportedRuntime=&amp;quot;2.0.50727&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/compatibleFrameworks&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/compatibleFrameworks&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; ************** Exception Text **************&lt;/p&gt;
&lt;p&gt;Microsoft.VisualStudio.Tools.Applications.Deployment.FrameworkVersionMismatchException: &amp;lt;compatibleFrameworks xmlns=&amp;quot;urn:schemas-microsoft-com:clickonce.v2&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;framework targetVersion=&amp;quot;3.5&amp;quot; profile=&amp;quot;Client&amp;quot; supportedRuntime=&amp;quot;2.0.50727&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/compatibleFrameworks&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.Install(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeDeploymentManager, AddInInformation&amp;amp; info)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeAddInDeploymentManager, AddInInformation&amp;amp; info)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeAddInDeploymentManager, Boolean showUIDuringDeployment)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr&amp;amp; executor)&lt;/p&gt;
&lt;p&gt;Can I target 3.5 framework with VSTO 4.0 and still leverage the new Outlook 2010 platform features (Explorer ribbon,backstage view)?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Furqan&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9992963" width="1" height="1"&gt;</description></item></channel></rss>