﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Trouble assigning parent objects</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 12:42:04 GMT</lastBuildDate><ttl>20</ttl><item><title>Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18583.aspx</link><description>In my project when I try to set a ParentBusinessObject I keep getting &lt;/P&gt;&lt;P&gt;[quote]'TypeLoadException occurred'&lt;BR&gt;Could not load type 'Infinedi.BO.Processing.Reports.TB50000_BO' from assembly 'MicroFour StrataFrame Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'.[/quote]&lt;/P&gt;&lt;P&gt;I have rebuilt the business objects and the libraries, manually deleted old library from the GAC, checked my project references, and I keep getting this error.&amp;nbsp; If I just ignore it everything runs fine, but it is really annoying when my project keeps stopping on the error.&lt;/P&gt;&lt;P&gt;Jason</description><pubDate>Tue, 26 Aug 2008 10:54:10 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18744.aspx</link><description>Sweet, glad you got it working :D</description><pubDate>Tue, 26 Aug 2008 10:54:10 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18721.aspx</link><description>Ok I figured out what is going on, somehow the 'Just my code' under Tools-&amp;gt;Options-&amp;gt;Debugging got unchecked and it seems the strataframe function is doing exactly what it's supposed to, it checks for the type in the SF base library and then if that fails it recursively checks the project references etc until it finds the correct type.&amp;nbsp; It just threw me for a loop when everything is working fine, and then the project starts barfing on startup when I haven't even changed anything.</description><pubDate>Mon, 25 Aug 2008 17:02:12 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18719.aspx</link><description>That is a definite possiblity I will follow up and see what I can find.&amp;nbsp; Just today at lunch I was telling my co-developers M$ gives you something with one hand and then slaps you with the other.&amp;nbsp; So we no longer have DLL hell, now it the ghost library/gacKED problem.&amp;nbsp; From a development stance I think the DLL situation worked far better... you just couldn't install it on anyone's elses machine....</description><pubDate>Mon, 25 Aug 2008 15:14:40 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18681.aspx</link><description>Well, now that I think about while I am fully awake (thank you, coffee :w00t: ), I doubt the mentioning of strataframe base in the error is signifgant. The bottom line is that there is more than one version of your .dll present on your machine. It could be different versions of the StrataFrame .dlls (though I don't think it is), so you should probably make sure that your GAC and any local copies of the dll line up.&lt;P&gt;Past that, it is looking like you have different versions of your .dll being referenced on the same machine. I know you said you cleared out your GAC, but there may be an old version of the dll sitting out on disk that the project keeps finding and trying to grab, or a reference might be trying to access and older version.</description><pubDate>Fri, 22 Aug 2008 09:58:49 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18662.aspx</link><description>I'm not quite sure if I understand what's going on, but you might try rebuilding your solution or even a clean and rebuild.</description><pubDate>Thu, 21 Aug 2008 18:31:42 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18657.aspx</link><description>No I haven't rewritten the Base library.&amp;nbsp; I also tried down reving to 1.6.0 and I still get the same error.&lt;/P&gt;&lt;P&gt;I went to the Business Object and through the GUI I set the ParentRelationship property, and then in my code I set the ParentObject and it throws the TypeLoad exception.&amp;nbsp; If I am stepping through the code it will continue on and everything runs fine, but when I compile it crashes.</description><pubDate>Thu, 21 Aug 2008 16:42:06 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Trouble assigning parent objects</title><link>http://forum.strataframe.net/FindPost18607.aspx</link><description>That's an interesting one. &lt;br&gt;
&lt;br&gt;
It's late, so I'm probably overlooking something obvious, but a couple questions ;): Are you setting the parent relationship in code or via the UI? Have you created your own version of StrataFrame Base .dll (i.e. edited the strataframe source code?)</description><pubDate>Tue, 19 Aug 2008 22:01:21 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>