Hi,
We are using hierarchical ultrawebgrid in our web application and everything seems to be working ok with no issues while browsing BUT we have been constantly receiving many errors with the following message. It seems these are generated by web crawlers. We tried setting "EnableCrawlerDetection" property to true and false but no success. Any help will be greatly appreciated. Thanks in advance -Dev (Intel Corp)
Message:Object reference not set to an instance of an object.Source:Infragistics2.WebUI.Shared.v7.2Target Site:Boolean IsWebCrawler(System.Web.UI.Page)Stack Trace: at Infragistics.WebUI.WebControls.ClientMachine.IsWebCrawler(Page p) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Initialize() at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Control_Init() at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at System.Web.UI.UpdatePanel.CreateContents(Boolean recreate) at System.Web.UI.UpdatePanel.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Awesome, that did the trick .
I saw that you were using v7.2. I am using v7.3 and it is still an issue with that version, so that must not include the patch. I'll just have to use your suggestion for now.
Thanks for the help and the quick response!
Yes, finally I was told by Infragistics support team that the issue has been addressed and they will include the patch in next hotfix.
I was told that "the problem is being caused because no user-agent is being set by therequest and the grid is assuming that there always is one. They havemade the parts of the grid that use the user-agent check that it's notnull before trying to use it so it. You can get it running straight awayby setting a fake user-agent:
HttpWebRequest objRequest = (HttpWebRequest)HttpWebRequest.Create("whatever url");
objRequest.UserAgent = "my useragent";
Hello,
Were you ever able to resolve this problem. I am getting the exact same error. I created a test ASPX page and dropped an UltraWebGrid on it.
Through another application, I create an HttpWebReqest pointing the the ASPX page. When I attempt request.GetResponse, I receive the same exception seen above.
I have set the "EnableCrawlerDetection" property to both True and False, but I receive the excpetion in both cases.
Any help would be greatly appreciated.
This is something that would need to go to Developer Support. Preferably with a page that could recreate the issue, and if possible from your logs, which crawler it is.