[CLOSED] Ext is not defined

  1. #1

    [CLOSED] Ext is not defined

    Everything is fine, until I put an Ext.NET control into the logon page, the one that i have in the web.config tag:

    <forms name=".ASPXAUTH" loginUrl="/LogOn.aspx" protection="All" path="/" timeout="30" />
    When I do that i get a javascript error message saying: 'ext' is not defined. If i take off the LogOn.aspx page of the loginUrl tag it works perfect, whatever page that I put on that tag, if it has an Ext.NET control I get that error.

    I need to use Ext.NET controls into my logon page, How can I get it done?

    Thank you.
    Last edited by Daniil; Jul 24, 2012 at 4:03 PM. Reason: [CLOSED]
  2. #2

    I am unable to reproduce adding also:
      <deny users="?" />
    I see that JavaScript resources requests are getting "302 found" status and the files, actually, look to be not loaded correctly.

    Can you confirm you have the same on your side?
  3. #3
    Possible solutions:

    1. Setting up
    <ext:ResourceManager runat="server" CleanResourceUrl="false" />
    in the LogOn.aspx.

    It will prevent cleaning of the resources URLs.

    2. Preventing authentication for the resources setting up the following in Global.asax.
    protected void Application_AuthenticateRequest(object sender, EventArgs e)
        string url = HttpContext.Current.Request.FilePath;
        if (url.EndsWith("ext.axd"))
            HttpContext.Current.SkipAuthorization = true;
  4. #4


    With the code in Application_AuthenticateRequest.


Similar Threads

  1. Ext is not defined
    By cristianscotti in forum 2.x Help
    Replies: 4
    Last Post: Mar 30, 2012, 1:54 PM
  2. EXT is not defined! please help
    By wasseem78 in forum 1.x Help
    Replies: 2
    Last Post: May 16, 2011, 7:26 AM
  3. Ext is not defined
    By Yannis in forum 1.x Help
    Replies: 4
    Last Post: Mar 28, 2011, 3:06 PM
  4. Ext is not defined...
    By flaviodamaia in forum 1.x Help
    Replies: 3
    Last Post: Mar 11, 2010, 1:54 PM
  5. " " is not defined
    By vishnukamatam in forum 1.x Help
    Replies: 3
    Last Post: Mar 05, 2010, 1:42 PM

Tags for this Thread

Posting Permissions