﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Thu, 11 Aug 2011 06:13:55 GMT</pubDate><dc:creator>Riendy</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>&lt;p&gt;Hi Eric,&lt;br /&gt;&lt;br /&gt;I could replicate your issue (a) on my simple sample. This issue appears only when call a data in server side. I have forwarded this issue to our development team.&lt;/p&gt;&lt;p&gt;For the second issue (b), it is on investigating now. Please let me know if there is another information for these issues.&lt;/p&gt;
&lt;p&gt;I will let you know for the updates soon.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br /&gt;Riendy&lt;/p&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Wed, 10 Aug 2011 08:07:37 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>Hi Riendy,&lt;p&gt;The problem on the web farm is now gone, but the application is not working anymore.&lt;/p&gt;
&lt;p&gt;On that page we have two grids. The main WebGrid is hierarchical with dynamic loading of subnodes. We are using the recommended way (see the other thread) to load the data in InitializeDataSource. When opening a node, dynamically the data in that node will get loaded. In InitializeSelfReferenceDataSource I call e.ParentKeyValues to get the parent value and load the node data and merge it into e.DataSource with .Merge(ds.Tables(0), True, MissingSchemaAction.Error).&lt;/p&gt;
&lt;p&gt;After turning off this AllowAutoDataCaching feature, I noticed two new problems:&lt;/p&gt;
&lt;p&gt;a) Opening the first level nodes works, but any level deeper does not work. In InitializeSelfReferenceDataSource the data seems to get added correctly, but it just doesn't get displayed. I'm still debugging this.&lt;/p&gt;
&lt;p&gt;b) When selecting and row in a subnode and then clicking on a row in the second WebGrid, a client-side js event gets called, which posts back by calling grdMain.SendCustomRequest. On the server-side this goes into the wg2.InitializePostBack event. There I access what was selected in the first grid: CType(grdMain.DataSource, DataTable).Select("ID="...). The problem is now that the data isn't there anymore, the row is missing. When a row in the root is being selected it works, but not if a row is selected which was added by InitializeSelfReferenceDataSource event. Before turning off the AutoCache it worked.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The problem b) is only for the server-side, on the client the folders are all there and nothing disappears. Do I have to cache this data myself somehow? Or what is the idea here?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eric&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Mon, 08 Aug 2011 12:30:06 GMT</pubDate><dc:creator>Riendy</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>&lt;p&gt;Hello Eric,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;First of all, I'm sorry for the latest respones.&lt;br /&gt;After had a discussion with a developer, you should set AllowAutoDataCaching property to false as you did to disallow auto data caching.&lt;br /&gt;If it is run not as expected, please ensure that you have called a dataSource in a right pattern. You have call a DataSource in OnInitializeDataSource WebGrid's event. &lt;/p&gt;
&lt;p&gt;Please let me know if you have put it in the right state and it still not working.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;br /&gt;Riendy&lt;/p&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Fri, 05 Aug 2011 04:55:47 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>&lt;p&gt;Hi Riendy,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I found the documentation of the AllowAutoDataCaching property. From the documentation it does a caching of the DataSource object and is enabled per default. As all grids we use get refreshed with different data on every click, we might change this to False everywhere anyway.&lt;/p&gt;
&lt;p&gt;But from the description it also says that the caching feature is not being used automatically and instead we should use IsDataCached property before querying for new data. We are not doing that, so I assume we don't use the caching feature anyway. Also, the description says the cached data is stored in the Session object and that is stored in SQL-Server session handler database, so it's not webserver specific.&lt;/p&gt;
&lt;p&gt;I'm looking for some reason why the data is only on one server and not shared or not refreshed properly. So this property would not explain the problem.&lt;/p&gt;
&lt;p&gt;Any other ideas? Any known bugs?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Fri, 05 Aug 2011 04:42:15 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>&lt;p&gt;Hi Riendi,&lt;/p&gt;
&lt;p&gt;Back from vacation now. Yes, I do know the information in that article. We've set the machine key in the web.config and use session state on SQL-Server.&lt;/p&gt;
&lt;p&gt;Eric&lt;/p&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Thu, 28 Jul 2011 06:10:06 GMT</pubDate><dc:creator>Riendy</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>&lt;p&gt;Hello Eric,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Regarding to your question about WebGrid data caching, please see our documents which titled "DataCacheStorage Property" on WebGrid Class properties.&lt;br /&gt;Or open our documents, then choose the following content:&lt;/p&gt;
&lt;p /&gt;
&lt;ol&gt;&lt;li&gt;WebGrid&lt;/li&gt;&lt;li&gt;Server-side References&lt;/li&gt;&lt;li&gt;ISNet.WebUI.WebGrid.Namespace&lt;/li&gt;&lt;li&gt;WebGrid Class&lt;/li&gt;&lt;li&gt;WebGrid Class Properties&lt;/li&gt;&lt;li&gt;AllowAutoDataCachingProperty&lt;/li&gt;&lt;/ol&gt;
&lt;div&gt;It will describe you the detail of WebGrid data cahce Storage. If you are unable to open the documentation, you can get it on &lt;a href="http://www.intersoftpt.com/Support/WebGrid"&gt;http://www.intersoftpt.com/Support/WebGrid&lt;/a&gt;.&lt;/div&gt;
&lt;/div&gt;
Riendy&lt;/div&gt;
&lt;p /&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Wed, 27 Jul 2011 06:34:25 GMT</pubDate><dc:creator>Riendy</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>&lt;p&gt;Hi Eric,&lt;/p&gt;&lt;p&gt;I have forwarded your issue to our development team. I will follow up them and let you for any updates. Anyway, have you read this &lt;a href="http://www.c-sharpcorner.com/UploadFile/gopenath/Page107182007032219AM/Page1.aspx" target="_blank"&gt;article&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Regards.&lt;br /&gt;Riendy&lt;/p&gt;</description></item><item><title>WebGrid running in web farm: data lost</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-running-in-web-farm-data-lost/</link><pubDate>Tue, 26 Jul 2011 09:19:06 GMT</pubDate><dc:creator>Eric</dc:creator><category>WebGrid web farm webfarm enterprise</category><description>We are using WebGrid 6.0.7200.220 (framework 3.0.5000.771) with .NET 2.0 and just moved our application to a web farm without stickyness. Session state is stored in SQL-Server and the standard settings are all made (sharing machine key etc) All usual functions work.
&lt;p&gt;But we have a problem with one of the WebGrids. I could trace it down to the following:&lt;/p&gt;
&lt;p&gt;In the event grid.InitializePostBack I get a data ID with&lt;/p&gt;&lt;pre&gt;ID = Request.Form("ID")&lt;/pre&gt;
&lt;p&gt;then I get the sender webgrid:&lt;/p&gt;&lt;pre&gt;Dim gr As WebGrid = CType(sender, WebGrid)&lt;/pre&gt;
&lt;p&gt;and filter the data:&lt;/p&gt;&lt;pre&gt;Dim FilteredSenderRows As DataRow() = CType(gr.DataSource, DataTable).Select("ID='" &amp;amp; ID &amp;amp; "'")&lt;/pre&gt;
&lt;p&gt;Then I continue only if&lt;/p&gt;&lt;pre&gt;If FilteredSenderRows.Length = 1 Then&lt;br /&gt;	...&lt;br /&gt;Else&lt;br /&gt;	'(throw error)&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;but this sometimes throws an error. According to the HTTP log, the error only happens if the request goes to another server (compared to the previous call which fills the table).&lt;/p&gt;I cannot send you a complete example for reproduction, because no bigger code changes are possible. Please see support thread [IS-5D86A204-3663-4A01-B709-2342F10A6A49] for details. It took months with the great help of your support engineer Dicky (in 2009) to get this page working, so we cannot change everything again.&lt;br /&gt;&lt;br /&gt;This all works fine when running in a single-IIS configuration. It is just causing problems with the web farm.
&lt;p&gt;Is the WebGrid caching the data somewhere else besides Session and ViewState local on one of the servers? What can be done to avoid this problem?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eric&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>