﻿<?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 » WebForms (How do I?)  » Error:  Could not load file or assembly 'MicroFour StrataFrame Base, Version...</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 01:52:06 GMT</lastBuildDate><ttl>20</ttl><item><title>Error:  Could not load file or assembly 'MicroFour StrataFrame Base, Version...</title><link>http://forum.strataframe.net/FindPost15615.aspx</link><description>Hi,&lt;P&gt;I'm getting the following error on a simple "Hello World" SF WebForms project when I publish it to a web hosting service:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial&gt;Could not load file or assembly 'MicroFour StrataFrame Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7' or one of its dependencies. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The web page runs fine on my development machine.&amp;nbsp; If I build&amp;nbsp;a similar simple app&amp;nbsp;outside of SF using pure VS2008, it works fine on the web hosted site, so they apparently can successfully host .NET applications in general.&amp;nbsp; I see a similar post in the WebForms forum from a year ago but don't think the solution is relevant now.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/Topic8736-10-1.aspx?Highlight=assembly+web"&gt;http://forum.strataframe.net/Topic8736-10-1.aspx?Highlight=assembly+web&lt;/A&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Tue, 15 Apr 2008 13:26:34 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: Error:  Could not load file or assembly 'MicroFour StrataFrame Base, Version...</title><link>http://forum.strataframe.net/FindPost15651.aspx</link><description>Good deal :)</description><pubDate>Tue, 15 Apr 2008 13:26:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error:  Could not load file or assembly 'MicroFour StrataFrame Base, Version...</title><link>http://forum.strataframe.net/FindPost15647.aspx</link><description>[quote] If you copy the Base assembly (along with the other required SF assemblies) to the Bin folder on the hosted machine, it should find the assemblies without issue.[/quote]&lt;P&gt;I assumed building and publishing an application would have pulled needed assemblies together automatically.&amp;nbsp;&amp;nbsp; It seemed&amp;nbsp;odd for VS to require this to be done manually, with no warnings of missing components until you run the web app.&amp;nbsp; So I poked around a bit and found the "Copy Local" setting Project/Properties/References that seemed promising for automating the process.&amp;nbsp; But this no longer works on custom assemblies apparently to provide them with greater "scrutiny"...&amp;nbsp; Here is MS's explanation...&lt;/P&gt;&lt;H1 class=heading&gt;&lt;FONT size=1&gt;"If you deploy an application that contains a reference to a custom component that is registered in the GAC, the component will not be deployed with the application, regardless of the &lt;B&gt;CopyLocal&lt;/B&gt; setting. In previous versions of Visual Studio, you could set the &lt;B&gt;CopyLocal&lt;/B&gt; property on a reference to ensure that the assembly was deployed. Now, you must manually add the assembly to the \Bin folder. This puts all custom code under scrutiny, reducing the risk of publishing custom code with which you are not familiar."&lt;/FONT&gt;&lt;/H1&gt;&lt;P class=heading&gt;So manually copying the dlls did the trick.&amp;nbsp; Thanks Trent.</description><pubDate>Tue, 15 Apr 2008 12:58:42 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: Error:  Could not load file or assembly 'MicroFour StrataFrame Base, Version...</title><link>http://forum.strataframe.net/FindPost15636.aspx</link><description>[quote] If I build&amp;nbsp;a similar simple app&amp;nbsp;outside of SF using pure VS2008,[/quote]&lt;/P&gt;&lt;P&gt;That would be true since the Base assembly is not used in that project.&lt;/P&gt;&lt;P&gt;The error message is telling you that it cannot find the Base assembly when the application is started.&amp;nbsp; On your development machine this is in your GAC so it is probably pullin from there.&amp;nbsp; If you copy the Base assembly (along with the other required SF assemblies) to the Bin folder on the hosted machine, it should find the assemblies without issue.</description><pubDate>Tue, 15 Apr 2008 10:00:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>