Web Sample error


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
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:



Server Error in '/' Application.

Value cannot be null.
Parameter name: type

Description: 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.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:



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.

Stack Trace:



[ArgumentNullException: Value cannot be null.Parameter name: type]   
System.Activator.CreateInstance(Type type, Boolean nonPublic) +7468694
MicroFour.StrataFrame.UI.Web.ListView.GetFilledBusinessObject(Object[] Parameters) +173[UIException: Dynamically populating the ListView failed.
Could not create and fill the business object of type 'visualOfficeNetBO.tblIndividual']
MicroFour.StrataFrame.UI.Web.ListView.GetFilledBusinessObject(Object[] Parameters) +1152
MicroFour.StrataFrame.UI.Web.ListView.PopulateListView(Object[] Parameters) +76
MicroFour.StrataFrame.UI.Web.ListView.ListView_Load(Object sender, EventArgs e) +26
System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141 System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627




Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456

Edited 13 Years Ago by Trent L. Taylor
Replies
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)StrataFrame User (245 reputation)
Group: Forum Members
Posts: 153, Visits: 462
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.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Have to tried to recreate the error in an isolated area of your code.  Just create a test page that tries to create your BO through the Activator.CreateInstance (that is what we do in the SF code).  Place your test page on the same level as the page not working.  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.

Another option is to setup a remote debugger.

But from experience, this type of issue is generally always a setup issue.  There is something missing.  Have you thought about pre-compiling your site before upload?  That can improve performance and at times will resolve remote issues like this.

I generally try and precompile the ASP.NET apps before they are published.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search