From: <tr...@do...> - 2012-12-17 21:46:37
|
<p>A new comment has been added to the following issue.</p> <table border="0"> <tr> <td width="90px" valign="top"><b>Title:</b></td> <td>Reference to an older version of VDS.Common</td> </tr> <tr> <td><b>Project:</b></td> <td>Core Library (dotNetRDF.dll)</td> </tr> <tr> <td><b>Created By:</b></td> <td>Nicolas</td> </tr> <tr> <td><b>Date:</b></td> <td>2012-12-17 09:45 PM</td> </tr> <tr> <td><b>Comment:</b></td> </tr> <tr> <td colspan="2"><p> </p> <div> Thank for the quick anwser!</div> <div> </div> <div> I also don't have any problem with a console application.</div> <div> </div> <div> My exception is coming from the T4 code generation tool (http://msdn.microsoft.com/en-us/library/bb126445.aspx), when it tries to load the dotNetRDF assembly and doesn't find its VDS.Common 1.1.0.0 reference (since it's the v1.1.1.0 that is reference in my project). And it's a little tricky since I don't have any way to "help" the T4 tools, since it is executed by Visual Studio...</div> <div> </div> <div> You should be able to reproduce the problem with the following snippet of code:</div> <div> </div> <div> var binPath = Directory.GetCurrentDirectory();</div> <div> var dotNetRdfDllPath = Path.Combine(binPath, "dotNetRDF.dll");</div> <div> if (File.Exists(dotNetRdfDllPath))</div> <div> {</div> <div> var asm = Assembly.Load(dotNetRdfDllPath); // => throws an "Could not load file or assembly" Exception</div> <div> }</div> <div> </div> <div> Could not load file or assembly 'C:\\dev\\ConsoleApplication2\\bin\\Debug\\dotNetRDF.dll' or <strong>one of its dependencies</strong>. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)</div> <div> </div> <div> Regards</div> <div> </div> <div> Nicolas</div></td> </tr> </table> <p> More information on this issue can be found at <a href="http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=298" target="_blank">http://www.dotnetrdf.org/tracker/Issues/IssueDetail.aspx?id=298</a></p> <p style="text-align:center;font-size:8pt;padding:5px;"> If you no longer wish to receive notifications, please visit <a href="http://www.dotnetrdf.org/tracker/Account/UserProfile.aspx" target="_blank">your profile</a> and change your notifications options. </p> |