I converted our app from 11.1 to 12.1. Upon running locally through VS2010 the page with the WHDG works perfectly. Upon deployment to IIS, we get the following JS error. The grid only appears as a narrow white line.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Fri, 11 May 2012 13:25:13 UTC
Message: 'this._grid._elements.header' is null or not an object
Line: 1
Char: 73608
Code: 0
URI: http://[removed]/ScriptResource.axd?d=U2hvSQqVP46ur9rxyMfXLijisyKPOnhRRVfu-k7zXPCvrmqI5wauXBcJ2NzIns5ij4mDxagFqTMqmQO-XA8Ixs0oKwXpPU-B-kTrhXz5WZkoNG-O3-dQSVZse2W3VbU4M57g2O95sZaVwG9FhvGw0sRSzMOtbXT0VxCRs6H2x-JnUyRETh-1RqhefAWHigp89Z_bKW2VyOWuJXqjqllxCA2&t=1dfd34aa
I've tried multiple redeploys, including completely from scratch, but none of them corrects the issue. Any thoughts on this? For background this page is very simple, all it has is a WebExplorerBar and a WHDG. The WHDG is bound to a dataset.
Thanks.
Hi slasher016,
Do you have a stack trace of the javascript exception (a picture would rock)? I'd like to see where it is happening.
regards,
David Young
Since this only occurs on deployed and not while running through the code, I cannot provide a stack trace. As you can see at the very top, the white line is all the is rendering from the grid.
Thanks!
I've made a little progress with this. When you manually define the bands (auto-generate set to false and <bands .... > tag present, the described error occurs on deployed only. Still works perfectly fine on localhost through VSS. Also works on deployed when we reverted to 11.1.
I actually have the same problem when converting.
If I leave out
<ig:BoundDataField ... >
in the band -> columns it will work fine and auto generate the headers. However, as soon is I put in the
<ig:BoundDataField ... > tag, the page is blank and javascript throws an error.
When I debug the javascript it comes back with a null or undefined object 'header' and I traced it to this._findHeaderElement(this._grid._elements <- this part is undefined...
Hope this helps...
Hello,
Does both of you followed the procedure of Server deployment shown here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.1/CLR4.0/html/Web_Deploying_a_Web_Application_that_Uses_NetAdvantage_for_ASP_NET_Controls.html ?
Also do you have our 12.1 controls installed on the Server machine and controls styles updated to point to this version also?
There is known issue in version 12.1 under Windows Server 2008 and IIS 7 that can block the normal display of controls images. The workaround is shown here - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.1/CLR4.0/html/Known_Isues_and_Limitations_ASP.NET_12.1.html#_Ref321744863
I did the top one just now to verify and still get the same error. Again, when I remove all the ig:bounddatafields in Bands -> columns tag the error goes away and it will auto generate the bands just fine which displays child tables just fine (I leave the bands tag in there).
Just a FYI, I am using infragisitics CDN....
Also, there is no web.config blocking anything...
My deployment appears fine as well, but this problem continues to occur.
hi slasher016, i have two questions, 1. did you do the actualization of the version 11.1 to 12.1 with Version Utility tool? 2. could solve the issue?
Thank you. This issue was fixed in version 12.1.20121.2020
Hi Trung,
The latest service release is 12.1.20121.2020. You can download it from our website. The fix should be included in this build.
Feel free to contact us if you have any further questions.
Please let me know when we have the latest Service Release for 12.1 with this issue resolved ?
Version that I am using 12.1.20121.1005 and this issue occurs exactly.
Thank you,
Trung
The issue should be resolved with the latest Service Release for 11.1, 11.2 and 12.1.
Thank you for choosing Infragistics.