﻿<?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?)  » TypeLoadException</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 09 Apr 2026 03:55:16 GMT</lastBuildDate><ttl>20</ttl><item><title>TypeLoadException</title><link>http://forum.strataframe.net/FindPost21892.aspx</link><description>Hi,&lt;P&gt;I created a web project in vs. 2005.&amp;nbsp; Later moved to vs. 2008 and it converted it. Also changed it from .net 2.0 to 3.5.&lt;/P&gt;&lt;P&gt;The Solution contains the main webforms project, a bol base project, and a bol project. The solution compiles fine and I can publish and run it to my XP testing server.&lt;/P&gt;&lt;P&gt;But when I publish it to the production windows 2003 server then I get the error below.&amp;nbsp; Any suggestions on what gives?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Server Error in '/testschool_awa' Application. &lt;HR width="100%" color=silver SIZE=1&gt;&lt;H2&gt;&lt;I&gt;Could not load type 'MicroFour.StrataFrame.Business.FieldPropertyDescriptor`1' from assembly 'MicroFour StrataFrame Business, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'.&lt;/I&gt; &lt;/H2&gt;&lt;P&gt;&lt;/SPAN&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Description: &lt;/FONT&gt;&lt;/B&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Exception Details: &lt;/FONT&gt;&lt;/B&gt;System.TypeLoadException: Could not load type 'MicroFour.StrataFrame.Business.FieldPropertyDescriptor`1' from assembly 'MicroFour StrataFrame Business, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Source Error:&lt;/FONT&gt;&lt;/B&gt; &lt;BR&gt;&lt;BR&gt;&lt;TABLE width="100%" bgColor=#ffffcc&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/CODE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Stack Trace:&lt;/FONT&gt;&lt;/B&gt; &lt;BR&gt;&lt;BR&gt;&lt;TABLE width="100%" bgColor=#ffffcc&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;&lt;PRE&gt;[TypeLoadException: Could not load type 'MicroFour.StrataFrame.Business.FieldPropertyDescriptor`1' from assembly 'MicroFour StrataFrame Business, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'.]  &lt;BR&gt; AESWebAccess.BOL.AWASchoolInfoBO..cctor() in E:\_VS2008Projects\DEV\AES\AESWebAccess.BOL\AESWebAccess.BOL\AWASchoolInfoBO.Designer.vb:765&lt;/PRE&gt;&lt;PRE&gt;[TypeInitializationException: The type initializer for 'AESWebAccess.BOL.AWASchoolInfoBO' threw an exception.]&lt;BR&gt;[TargetInvocationException: Exception has been thrown by the target of an invocation.]   &lt;BR&gt;   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp;amp; canBeCached, RuntimeMethodHandle&amp;amp; ctor, Boolean&amp;amp; bNeedSecurityCheck) +0&lt;BR&gt;   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86&lt;BR&gt;   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230&lt;BR&gt;   System.Activator.CreateInstance(Type type, Boolean nonPublic) +67&lt;BR&gt;   MicroFour.StrataFrame.UI.Web.BasePage.InitializeBusinessObjects(PropertyInfo[] PropertyInfos) +152&lt;BR&gt;   MicroFour.StrataFrame.UI.Web.BasePage.Page_PreLoad(Object sender, EventArgs e) +25&lt;BR&gt;   System.Web.UI.Page.OnPreLoad(EventArgs e) +111&lt;BR&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +554&lt;/PRE&gt;&lt;/CODE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR&gt;&lt;/P&gt;&lt;HR width="100%" color=silver SIZE=1&gt;&lt;P&gt;&lt;B&gt;&lt;FONT face=Verdana&gt;Version Information:&lt;/FONT&gt;&lt;/B&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 &lt;/FONT&gt;&lt;!-- [TypeLoadException]: Could not load type 'MicroFour.StrataFrame.Business.FieldPropertyDescriptor`1' from assembly 'MicroFour StrataFrame Business, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7'.   at AESWebAccess.BOL.AWASchoolInfoBO..cctor()[TypeInitializationException]: The type initializer for 'AESWebAccess.BOL.AWASchoolInfoBO' threw an exception.[TargetInvocationException]: Exception has been thrown by the target of an invocation.   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandle&amp; ctor, Boolean&amp; bNeedSecurityCheck)   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)   at System.Activator.CreateInstance(Type type, Boolean nonPublic)   at MicroFour.StrataFrame.UI.Web.BasePage.InitializeBusinessObjects(PropertyInfo[] PropertyInfos)   at MicroFour.StrataFrame.UI.Web.BasePage.Page_PreLoad(Object sender, EventArgs e)   at System.Web.UI.Page.OnPreLoad(EventArgs e)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)[HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.   at System.Web.UI.Page.HandleError(Exception e)   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   at System.Web.UI.Page.ProcessRequest()   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)   at System.Web.UI.Page.ProcessRequest(HttpContext context)   at ASP.login_default_aspx.ProcessRequest(HttpContext context)   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously)--&gt;&lt;!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using &amp;lt;customErrors mode="Off"/&amp;gt;. Consider using &amp;lt;customErrors mode="On"/&amp;gt; or &amp;lt;customErrors mode="RemoteOnly"/&amp;gt; in production environments.--&gt;</description><pubDate>Sat, 14 Feb 2009 12:47:16 GMT</pubDate><dc:creator>Marcel Heitlager</dc:creator></item><item><title>RE: TypeLoadException</title><link>http://forum.strataframe.net/FindPost21977.aspx</link><description>Thanks for the response.&lt;/P&gt;&lt;P&gt;I had compiled the app in the latest beta from your site.&amp;nbsp; So I decided to first reinstall the app to latest release version, recompiled the business objects and try again.&amp;nbsp; The error then dissapeared.&amp;nbsp; I guess when I have time I'll try re-installing the beta, rebind/recompile the BO's and see what happens then.&lt;/P&gt;&lt;P&gt;I'll let you know what happens.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marcel</description><pubDate>Sat, 14 Feb 2009 12:47:16 GMT</pubDate><dc:creator>Marcel Heitlager</dc:creator></item><item><title>RE: TypeLoadException</title><link>http://forum.strataframe.net/FindPost21896.aspx</link><description>Howdy!&lt;/P&gt;&lt;P&gt;It looks like you need to either update your StrataFrame Business .dll on the web server (this is the most likely since it works on your XP machine), and/or rebuild your business&amp;nbsp;project (wherever your business objects are stored). We changed the way this works in the latest build, and it looks as though the version of your business objects and the StrataFrame Business .dll version are out of sync.&lt;/P&gt;&lt;P&gt;Check both of&amp;nbsp;those and let us know :).</description><pubDate>Tue, 10 Feb 2009 09:26:57 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>