Ext.NET controls will not rended in IE

  1. #1

    Ext.NET controls will not render in IE9

    Hey guys,

    I have an issue with IE9 (did not check with older versions). The ext.net controls will not render at all.
    After doing some basic debugging I found out that all the ext.axd scripts are rendered with weird characters in IE (something to do with the encoding I guess?).

    Here is the configuration i have on the page resource manager

    <ext:ResourceManager runat="server" RenderScripts="Embedded"  RenderStyles="Embedded" ClientIDMode="Static" InitScriptMode="Inline" ScriptMode="Release"/>

    and here are the relevant parts on my web.config file
    <extnet theme="Gray" locale="el-GR" directMethodNamespace="PF.Direct"/>
    
    ...
    
    <pages enableSessionState="true" validateRequest="true" >
    .....
          <controls>
            <add assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" />
          </controls>
    ....
        </pages>
        
        <httpHandlers>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
    ....
    </httpHandlers>
        
        <httpModules>
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
    ...
        </httpModules>
    
     <system.webServer>
        <modules>
    ....
          <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net"/>      
        </modules>
    
        <handlers>
    ...
          <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
    ..
        </handlers>
    ...  
      </system.webServer>    
    
      <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
            <bindingRedirect oldVersion="1.0.0.0-4.5.9" newVersion="4.5.10" />
          </dependentAssembly></assemblyBinding>
      </runtime>
    Last edited by infotex; Mar 13, 2013 at 11:24 AM.
  2. #2
    Hello,

    Does the page render correctly if you remove the .locale setting from the Web.config?

    locale="el-GR" <-- remove this
    There was some encoding issues with the Locale .js files, but I believe we have fixed and will be available with the next release (2.2.0).
    Geoffrey McGill
    Founder
  3. #3
    Hey Geoffrey,

    Removing the locale setting as well as the <globalization> setting did not seem to fix the problem.

    However, I played with the resource manager settings and I found out that settings the renderer to CacheFly CDN works ok.

    <ext:ResourceManager runat="server" RenderScripts="CDN"  RenderStyles="CDN" ClientIDMode="Static" InitScriptMode="Inline" criptMode="Release"/>
    Any ideas why this could be happening?
  4. #4
    Hello!

    Can you check does IE9 work in compatibility mode because ExtJS doesn't support compatibility mode? http://www.sevenforums.com/browsers-...ml#post1235105 Also, can you check in other browsers?
  5. #5
    Quote Originally Posted by Baidaly View Post
    Hello!

    Can you check does IE9 work in compatibility mode because ExtJS doesn't support compatibility mode? http://www.sevenforums.com/browsers-...ml#post1235105 Also, can you check in other browsers?
    Hello Baidaly,

    Yes i have already checked a about compatibility mode in IE9 and the problem still remains. I have checked in firefox, chrome and safari and all three seem to be rendering ext.net controls properly.

    I have managed to get the controls to render in IE9 (i.e. get the .axd scripts to be delivered correctly) by changing the renderer from "embedded" or "file" to CDN (see previous post).

    I also checked if gzip compression had something to do with it, but turning gzip off didn't help either...
  6. #6
    Did you define Ext.Net http handler in web.config
    Please check ext.axd requests in Fiddler to ensure that reponse is valid (just remove CacheFly mode)
  7. #7
    Quote Originally Posted by Vladimir View Post
    Did you define Ext.Net http handler in web.config
    Please check ext.axd requests in Fiddler to ensure that reponse is valid (just remove CacheFly mode)
    Hey Vladimir,

    Yes i think I do define an ext.net http handler in my web.config correctly. Here it is:

    <httpHandlers>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
        ...
    </httpHandlers>
    Here is the fiddler resutls. The highlighted sessions are from IE9 and the response seems to be valid but not parsed by IE correctly (see IE Developer Tools screenshot)

    Click image for larger version. 

Name:	Fiddler_Check.jpg 
Views:	48 
Size:	93.8 KB 
ID:	5832

    Click image for larger version. 

Name:	IE_DeveloperTools.png 
Views:	42 
Size:	93.4 KB 
ID:	5833
  8. #8
    If you set CleanResourceUrl=false in ResourceManager then does it work?
  9. #9
    Quote Originally Posted by Vladimir View Post
    If you set CleanResourceUrl=false in ResourceManager then does it work?
    That worked great Vladimir, thanks. If you have time can you please elaborate a bit on this? what was going on?

    Thanx again, Yiannis

Similar Threads

  1. Replies: 1
    Last Post: Jul 20, 2012, 9:08 AM
  2. [CLOSED] How should I nested ext.net.controls with user controls?
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 04, 2012, 12:14 PM
  3. Replies: 5
    Last Post: Nov 03, 2011, 3:39 AM
  4. Replies: 2
    Last Post: Feb 16, 2011, 10:10 AM
  5. Replies: 0
    Last Post: Jan 05, 2011, 7:48 AM

Tags for this Thread

Posting Permissions