﻿<?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?)  » Web Sample error</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 08:31:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Web Sample error</title><link>http://forum.strataframe.net/FindPost31182.aspx</link><description>The web sample works perfect on localhost but when I deploy to my GoDaddy Virt Dedicated Server with Full Trust I always get this error when I click on the "Search Customers" tab. I can click on the "Edit Customers" and the Grid tab which shows data. I beelieve it has something to do with the ListPopulating event of the ListView. Here is the entire error I am getting:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;&lt;br/&gt;&lt;br/&gt;&lt;h1&gt;Server Error in '/' Application.&lt;hr color="silver" size="1" width="100%"&gt;&lt;/h1&gt;&lt;h2&gt;&lt;span style="font-style: italic;"&gt;Value cannot be null.&lt;br/&gt;Parameter name: type&lt;/span&gt; &lt;/h2&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;strong&gt;&lt;font face="Verdana"&gt;Description: &lt;/font&gt;&lt;/strong&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;strong&gt;&lt;font face="Verdana"&gt;Exception Details: &lt;/font&gt;&lt;/strong&gt;System.ArgumentNullException: Value cannot be null.&lt;br/&gt;Parameter name: type&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;font face="Verdana"&gt;Source Error:&lt;/font&gt;&lt;/strong&gt; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;table bgcolor="#ffffcc" width="100%"&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. &lt;br/&gt;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;strong&gt;&lt;font face="Verdana"&gt;Stack Trace:&lt;/font&gt;&lt;/strong&gt; &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;table bgcolor="#ffffcc" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&lt;pre&gt;[ArgumentNullException: Value cannot be null.Parameter name: type]   &lt;br/&gt;System.Activator.CreateInstance(Type type, Boolean nonPublic) +7468694   &lt;br/&gt;MicroFour.StrataFrame.UI.Web.ListView.GetFilledBusinessObject(Object[] Parameters) +173[UIException: Dynamically populating the ListView failed.  &lt;br/&gt;Could not create and fill the business object of type 'visualOfficeNetBO.tblIndividual']   &lt;br/&gt;MicroFour.StrataFrame.UI.Web.ListView.GetFilledBusinessObject(Object[] Parameters) +1152  &lt;br/&gt; MicroFour.StrataFrame.UI.Web.ListView.PopulateListView(Object[] Parameters) +76   &lt;br/&gt;MicroFour.StrataFrame.UI.Web.ListView.ListView_Load(Object sender, EventArgs e) +26   &lt;br/&gt;System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +50   &lt;br/&gt;System.Web.UI.Control.LoadRecursive() +141   System.Web.UI.Control.LoadRecursive() +141   &lt;br/&gt;System.Web.UI.Control.LoadRecursive() +141   System.Web.UI.Control.LoadRecursive() +141   &lt;br/&gt;System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;hr color="silver" size="1" width="100%"&gt;&lt;strong&gt;&lt;font face="Verdana"&gt;Version Information:&lt;/font&gt;&lt;/strong&gt; Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456 &lt;/font&gt;&lt;!-- [ArgumentNullException]: Value cannot be null.Parameter name: type   at System.Activator.CreateInstance(Type type, Boolean nonPublic)   at MicroFour.StrataFrame.UI.Web.ListView.GetFilledBusinessObject(Object[] Parameters)[UIException]: Dynamically populating the ListView failed.  Could not create and fill the business object of type 'visualOfficeNetBO.tblIndividual'   at MicroFour.StrataFrame.UI.Web.ListView.GetFilledBusinessObject(Object[] Parameters)   at MicroFour.StrataFrame.UI.Web.ListView.PopulateListView(Object[] Parameters)   at MicroFour.StrataFrame.UI.Web.ListView.ListView_Load(Object sender, EventArgs e)   at System.Web.UI.Control.OnLoad(EventArgs e)   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Control.LoadRecursive()   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.forms_frmsearchindividuals_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\68e102b2\e9c0d0d9\App_Web_02atemov.0.cs:line 0   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>Mon, 14 May 2012 00:40:09 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31216.aspx</link><description>Yeah!They need registered in the GAC.In order to maintain your idiosyncratic identity on the&amp;nbsp; web browser and provide prompt allocation.</description><pubDate>Mon, 14 May 2012 00:40:09 GMT</pubDate><dc:creator>Angela G Lee</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31203.aspx</link><description>On&amp;nbsp; my GoDaddy on my server (Virtual Dedicated) do any of the Microfour DLL's need to be registered in the GAC?</description><pubDate>Thu, 03 May 2012 19:29:24 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31202.aspx</link><description>Funny story...I clicked "Post Reply" on the last post and then the page scrolled back to the top.&amp;nbsp; It was basically on the message you posted with the error you are getting....but when I saw it, I thought it was an error on the page and thought...sheesh...how did that happen?&amp;nbsp; I quickly came to my senses...but I thought you may want to laugh at my expense. :)</description><pubDate>Thu, 03 May 2012 14:01:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31201.aspx</link><description>Thanks for your kind words, Ross.&amp;nbsp; It really does encourage us!</description><pubDate>Thu, 03 May 2012 13:59:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31198.aspx</link><description>Thanks Trent. You have been a great help. I am still amazed at the simplicity of the web sample.</description><pubDate>Thu, 03 May 2012 11:17:23 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31196.aspx</link><description>Have to tried to recreate the error in an isolated area of your code.&amp;nbsp; Just create a test page that tries to create your BO through the Activator.CreateInstance (that is what we do in the SF code).&amp;nbsp; Place your test page on the same level as the page not working.&amp;nbsp; Then if you need to trap the error and get the inner exceptions, you can create a message or something to give you a heads up.&lt;br/&gt;&lt;br/&gt;Another option is to setup a remote debugger.&lt;br/&gt;&lt;br/&gt;But from experience, this type of issue is generally always a setup issue.&amp;nbsp; There is something missing.&amp;nbsp; Have you thought about pre-compiling your site before upload?&amp;nbsp; That can improve performance and at times will resolve remote issues like this.&lt;br/&gt;&lt;br/&gt;I generally try and precompile the ASP.NET apps before they are published.</description><pubDate>Thu, 03 May 2012 10:00:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31191.aspx</link><description>I checked that. What is strange is if I do not click on Search Customers tab and go right to clicking on Edit Customers, the data shows up for the top 100 rows. I can EDIT, SAVE and navigate. No matter when I click the Search Customers the code in the ListPopulating event of the ListView causes the error.</description><pubDate>Thu, 03 May 2012 09:19:04 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31188.aspx</link><description>Ross:&lt;br/&gt;&lt;br/&gt;First, look to make sure that you have YOUR bo assemblies in the Bin folder of your deployed website.&amp;nbsp; This error doesn't have anything to do with trust I don't think.&amp;nbsp; I think this error is coming from an issue with your deployed assemblies.&amp;nbsp; So in this example, the assembly that houses "visualOfficeNetBO.tblIndividual&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;code&gt;&lt;/code&gt;&lt;/font&gt;&lt;/span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;code&gt;&lt;span style="font-family: verdana,arial,tahoma;"&gt;" doesn't seem to be loaded into the AppDomain of the site.&amp;nbsp; Start there.&lt;br/&gt;&lt;/span&gt;&lt;/code&gt;&lt;/font&gt;&lt;/span&gt;</description><pubDate>Thu, 03 May 2012 08:57:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31185.aspx</link><description>I knew that but why would it be only on the listview and why would it only happen on the deployed code. Both the one run from localhost and the deployed run against the exact same database. &lt;br/&gt;&lt;br/&gt;The tblIndividual is the same as you Customers BO in the websample. &lt;br/&gt;&lt;br/&gt;Also, the error occurs exactly when I click on Search Customers. Yet works on the EDIT CUSTOMERS and GRID VIEW tabs.&lt;br/&gt;&lt;br/&gt;Full Trust is on the deployed server. Targeting framework 3.5. I did comment out the USING statment on the samples for LINQ. Not sure if this matters. But again, it works from localhost.</description><pubDate>Thu, 03 May 2012 06:49:51 GMT</pubDate><dc:creator>Ross L. Rooker, Sr.</dc:creator></item><item><title>RE: Web Sample error</title><link>http://forum.strataframe.net/FindPost31184.aspx</link><description>Apparently it is saying it cannot instanciate your BO:&lt;br/&gt;&lt;br/&gt;&lt;span&gt;[codesnippet]&lt;/span&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;code&gt;&lt;pre&gt;Could not create and fill the business object of type 'visualOfficeNetBO.tblIndividual'&lt;/pre&gt;&lt;/code&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;[/codesnippet]&lt;/span&gt;</description><pubDate>Thu, 03 May 2012 05:46:24 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>