iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I am binding WebGrid using ObjectDataSource and sometimes found that application crashes with the unhandled error as below :
Hi Glenn,
In our app, WebGrid is bound to ObjectDataSource and ObjectDataSource is bound to a class.
This class is having two functions which provides dataset and count of records. It doesnot happen that frequently, but whenever it happens , it brings the entire application down. Then application can be recovered only by restarting IIS. Restart of IIS in production environment is not suggestable.
In order to analyze the issue we need to be able to replicate the issue in our environment.
I have prepared a simple sample page with the scenario you described, custom object bound to ObjectDataSource and WebGrid is bound to the ObjectDataSource. The custom object has already been available in our WebGrid sample. Feel free to modify the sample or the custom object in order to replicate the issue.
Hi, Actually, it happens only on Prod environment at our side and we could not reproduce it in QA and DEV environments so far. Could you please suggest what could be the approach to reach the root cause of this error ? If somebody else have reported this issue before ?
As fas as I know no such issue has been reported before and without being able to replicate the issue in our environment we could not know for sure the cause of such issue. Please confirm that you are already using the latest build of our control, which is WebGrid 7 build 403 and WebUI Framework 3 bild 752.
Does the simple sample WebGrid already reflect the setting your are using? Did you use filter? How many data is in the grid? What kind of paging did you use?
You could also share how to replicate the issue in the production environment so we could try to replicate the issue in our environment.
We are still using WebGrid 6.0.
This error occurs intermittently in prod environment and whenever it happens, the entire app becomes unusable. All the users get thrown out of app. The entire app can only be recover by doing IIS Reset.
It's very critical for us to resolve it.
As I already stated in this thread, we bind the webgrid using objectdatasource and objectdatasource is bind to a class which in turn execute SP call. Once resultset is been retrieved from the SP, we check if there are any rows in it, if resultset is empty then we explicitly add one row into it as below :
try
{
if (ds.Tables[0].Rows.Count == 0)
DataRow dr = ds.Tables[0].NewRow();
ds.Tables[0].Rows.Add(dr);
}
catch { }
Do you think by any chance above code might throw this error ?
If you look at the stacktrace, you could see that once WebGrid.OnLoad is called, all the stack trace contains the method calls related to data binding to webgrid. We do not have much control over those methods.
Is it possible, if anybody from intersoft can have verbal communication with us, so that we can look more closely into it. It would be highly appreciated. By any chance , are you available in US EST time ?
You could try our live chat available in this link. However, currently as stated in the page our live chat is only availble from 8AM - 5PM (GMT+7) weekdays.
Support for US timezone is already planned and is scheduled for next week.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname