<html><head><style type="text/css" media="screen">Body{font-family: Verdana;font-size:.75em;}h4{font-size:.9em;}a{color: #3a62a6;}.digest .toc {margin-bottom: 15px; padding-bottom:8px; border-bottom: 1px solid #ccc;}.digest .tocItem {margin-bottom: 15px;}.tocItem a{color:#000;text-decoration: none;}.tocItem a:hover{color: #3a62a6;text-decoration: underline;}.topic{padding-bottom: 8px;margin-bottom: 20px; border-bottom: 1px solid #ccc;}.topicHeader{margin-bottom:10px;}.topicTitle{font-weight: bold;}.replies p{margin:0;padding:0;}.replies hr{width: 15%;text-align: left;margin: 0 auto 5px 0;border: none 0;border-top: 1px solid #ccc;height: 1px;}.reply{margin-bottom: 6px;padding-bottom: 4px;}.anchorMarker{color: #3a62a6;}.footer{color: gray;}</style></head><body><div class="digest"><p>Hi ironpython,</p><p>Here's your Daily Digest of new issues for project "<a href="http://ironpython.codeplex.com/">IronPython</a>".</p><p>In today's digest:</p><h4>ISSUES</h4><div class="toc"><div class="tocItem"><a href="#toc_issue_1">1. <span class="tocTitle">[New issue] Better handling of binding failure due to .Net version</span> <span class="anchorMarker">↓</span></a></div></div><h4>ISSUES</h4><div class="topic"><a name="toc_issue_1"></a><div class="topicHeader"><span class="topicTitle">1. [New issue] Better handling of binding failure due to .Net version</span> <a href="http://ironpython.codeplex.com/workitem/31383">view online</a></div><p>User skottmckay has proposed the issue:</p><p>"The error message if binding of an assembly fails (clr.AddReference et al) is woefully unhelpful if the failure is due to attempting to load an assembly from a different clr version. I recently had this problem attempting to load a .net 2 assembly with .net 4 iron python. <br /><br />Some options:<br /><br />1) Is there any reason why IronPython couldn't be shipped with an app.config file with the following to allow loading of .net 2 assemblies in .net 4, or at least information added to the FAQ for the user to create this file themselves (of course they will probably need a better error message to point them in the right direction first).<br /><br /><?xml version="1.0" encoding="utf-8" ?> <br /><configuration> <br /> <startup useLegacyV2RuntimeActivationPolicy="true"> <br /> <supportedRuntime version="v4.0" /> <br /> </startup><br /></configuration><br /><br /><br />2) Could code be added to detect a mismatch and provide the user with a meaningful error message. For example, here are the steps to get the clr version from a dll.<br /><br />>>> import clr<br />>>> import System<br />>>> asm = System.Reflection.Assembly.ReflectionOnlyLoadFrom("my.dll")<br />>>> print asm.ImageRuntimeVersion<br />v2.0.50727"</p></div><div class="footer"><p>You are receiving this email because you subscribed to notifications on CodePlex.</p><p>To report a bug, request a feature, or add a comment, visit <a href="http://ironpython.codeplex.com/workitem/list/basic">IronPython Issue Tracker</a>. You can <a href="https://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>