PDA

View Full Version : Ext.axd icons sometimes not displayed



idsonline
Dec 09, 2020, 4:15 PM
Hi,

I've a question concerning an application running with Ext.Net 5.2

In general the icons of our navigation menu are displayed correctly (see Attachment "Icon-OK").
But sometimes, these icons are not displayed at all (see Attachment "Icon-Missing").
In this case, the URL of the icon seems to be damaged (see Attachment "Icon-Missing"), so that the file "ext.axd" can't be found anymore.

We've found out, that restarting the application pool on IIS fixes the problem for some time (the icons are then displayed again, but hide again after some days).

Do you know a way that these icons are always displayed, without needing to restart the application pool?

Thanks,
Arthur

fabricio.murta
Dec 09, 2020, 5:20 PM
Hello @idsonline!

This sounds like a misconfiguration in IIS that is "de-registering" Ext.NET resources handler for some reason. Maybe a session expiring or something like that?

Something that will probably avoid this issue (and probably trigger other issues as Ext.NET resources or its own handler may stop working once the IIS request handler stops serving Ext.NET requests!) is using CDN resources instead of embedded ones.

Try setting this in your Web.Config's <extnet /> block:



renderScripts="CDN" renderStyles="CDN"


The same settings can be set also individual pages' <ext:ResourceManager /> block (or Html.X().ResourceManager()) if you want to test the approach only for a specific page or set of pages.

But back to the actual issue, I'm not sure what could make IIS stop honoring the "*/ext.axd" http handler setting in Web.config. Could it be there's some code in your website that dynamically adjust this kind of setting and may be overriding what's in your Web.config? You could probably find clues as to why IIS is stopping the handled by inspecting the Windows Server's Event Logs, but that might take a good skilled server admin to interpret these logs.

Hope this helps!

idsonline
Dec 14, 2020, 7:59 AM
Hi,

thank you for the response. We've adapted the web.config as you have suggested - since the change in web.config the ext.axd icons have not been hidden.

Concerning your response, what do you mean be "Could it be there's some code in your website that dynamically adjust this kind of setting and may be overriding what's in your Web.config?" What kind of code do you mean?

Can the bug of not shown ext.axd icons also have to do with the error in the console: "Uncaught No URL specified" (see attached files).

Thanks,
Arthur

fabricio.murta
Dec 14, 2020, 4:42 PM
Concerning your response, what do you mean be "Could it be there's some code in your website that dynamically adjust this kind of setting and may be overriding what's in your Web.config?" What kind of code do you mean?

Just a chance, you may have in your project some code that changes webserver settings after it is run, and something may unwillingly be de-registering Ext.NET resources on the fly. It can be anything, so hard to point to any specific direction. Could be C# code in global.asax or even in specific pages, or some time routine run by the server. This is strange though that just icons are affected, and actual Ext.NET resources like javascript and CSS styles are not affected.


Can the bug of not shown ext.axd icons also have to do with the error in the console: "Uncaught No URL specified" (see attached files).

Really hard to tell just by the screenshots, can't fathom what's leading to that message just by then. Happens in any page?