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 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.
Hello,
I have setup a Virtual Machine with Windows Server 2008 and IIS 7 and deployed test site with “WebHierarchicalGridControl” (bound fields in parent and child bands included).
On my setup the grid is displayed properly after deployment:
I am also attaching the project used for testing so you can download and deploy it on your Server to see if grid is displayed (add “ig_res” folder first).
Interesting result here. I deployed your example on a separate site on the problem server, and it worked perfectly. I then added your code to my existing project and it no longer works (gets the same js error listed in original post). Perhaps it's a web.config issue? Here's my web.config
<configuration>
<configSections>
<section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="SAInsight_II.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<infragistics.web styleSetName="Default" styleSetPath="~/ig_res" />
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="Infragistics4.Web.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
<add assembly="Infragistics4.WebUI.Documents.Reports.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
<add assembly="Infragistics4.WebUI.Documents.Excel.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
<add assembly="Infragistics4.WebUI.Shared.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
<add assembly="Infragistics4.WebUI.WebDataInput.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
<add assembly="Infragistics4.WebUI.WebHtmlEditor.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
<add assembly="Infragistics4.WebUI.Documents.Core.v12.1, Version=12.1.20121.1005, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
</assemblies>
</compilation>
<authentication mode="Windows" />
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
<profile>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
</profile>
<roleManager enabled="false">
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
</roleManager>
<customErrors defaultRedirect="Error.aspx" mode="RemoteOnly">
<!--<error statusCode="404" redirect="filenotfound.htm" />-->
</customErrors>
<sessionState timeout="240">
</sessionState>
<httpRuntime requestValidationMode="2.0" />
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
<applicationSettings>
<SAInsight_II.Properties.Settings>
<setting name="Environment" serializeAs="String">
<value>Production</value>
</setting>
</SAInsight_II.Properties.Settings>
</applicationSettings>
</configuration>
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?
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.