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.
Hello,
The issue is logged with our Development team and has ID - 112817.
I have tested the proposed by you modification (debug=“false”) and it appears that this may be the cause for the exception.
I have tested the same sample in development mode also (without deploying) on Windows 7 and setting debug=“false” causes the same exception. That is why I think that this exception is not caused by the deployment itself.
Also tested same sample with “WebDataGrid” instead of hierarchical grid and this exception is not present.
I have created the following cases for this issue:
slasher016 – CAS-91439-J94CVF
jbirzer - CAS-92543-T0477X
I will update you through these cases what further actions will be taken regarding this issue.
Well I believe I figured out the problem....
If you have it set to debug="true" in web.config file everything works like a charm...
Obviously we don't want that, so what can we do to correct this? Your file does not work when debug is to false for me but does when set to true... same goes for my own application...
We also put your code on our server, and we had the same problem with your code that we are having with ours.
Also, the other thing that might be very relevant is your project was probably created from scratch with 12.1, whereas mine was a conversion from 11.1. Perhaps something is missing in the conversion process?