Seems like I get a Javascript error when accessing the Website externally...

Page 1 of 5 123 ... LastLast
  1. #1

    Seems like I get a Javascript error when accessing the Website externally...

    Hi,
    I attached a screen shot which shows the error I receive when I try to access application externally coming through VPN into our intranet network., even when I close the "Request Failure" window and I click on the radio button which calls a javascript then calls a Direct Method as below:

    .aspx
                <ext:Container ID="Container1" runat="server" LabelAlign="Top" Layout="Form">
                    <Items>
                        <ext:RadioGroup ID="RadioGroup1" runat="server" AnchorHorizontal="40%">
                            <Items>
                                <ext:Radio ID="rdWeek" runat="server" BoxLabel="<b><font size=3>Week</b>" Checked="true"
                                    GroupName="Time">
                                    <Listeners>
                                        <Check Fn="radioSelect" />
                                    </Listeners>
                                </ext:Radio>
                                <ext:Radio ID="rdPeriod" runat="server" BoxLabel="<b><font size=3>Period</b>" Checked="false"
                                    GroupName="Time">
                                </ext:Radio>
                            </Items>
                        </ext:RadioGroup>
                    </Items>
                </ext:Container>

    .js
            var radioSelect = function() {
                if (rdPeriod.getValue()) {
                    SelectBox2.setFieldLabel("<b>Calendar Period</b>");
                    SelectBox2.emptyText = "Select a Period";
                    SelectBox2.clearValue();
                    chkWeek.setValue(false);
                    Dashboard.LoadCalendarStore("Period");
                }
                else {
                    SelectBox2.setFieldLabel("<b>Calendar Week</b>");
                    SelectBox2.emptyText = "Select a Week";
                    SelectBox2.clearValue();
                    chkWeek.setValue(true);
                    Dashboard.LoadCalendarStore("Week");
                }
                selectHomePageValue();
            }
    .vb
            [DirectMethod(Namespace = "Dashboard")]
            public void LoadCalendarStore(string weekOrPeriod)
            {
                Home.LoadCalendarPeriodOrWeekStore(weekOrPeriod); 
            }
    The application runs fine when it's access inside our intranet, so I have no idea why I get this error and I can't debug it.

    Any help here. I'm Ext.NET v1.1.0.21129

    Click image for larger version. 

Name:	Error Message with SaraLee.png 
Views:	134 
Size:	56.1 KB 
ID:	3991
  2. #2
    It's difficult to tell what is going wrong here. Obviously something is causing the Request-Response process to fail.

    Can you inspect the requests using a tool such as Firefox+Firebug, or Fiddler? That might help narrow down what's going wrong.
    Last edited by geoffrey.mcgill; Mar 24, 2012 at 6:31 PM.
    Geoffrey McGill
    Founder
  3. #3

    I installed FireBug and re-run the application outside the network, errors attached in screen shot.

    Hi,
    I have no idea what is this error in the attached screen shot.

    I can send you over my Credentials for our Dev. environment to you personal email if you would like to look at it yourself. Please let me know.

    Click image for larger version. 

Name:	Error when accessing through VPN externally.jpg 
Views:	135 
Size:	90.3 KB 
ID:	3995
  4. #4

    Found a post on your site, but I can't find the property needed, screen shot attached..

    Hi,
    I found some help on your site below:
    http://forums.ext.net/showthread.php...urce-not-found

    I imported:
    .cs
    using System.Web.Routing;
    Click image for larger version. 

Name:	Cannot see property IgnoreRoute.png 
Views:	162 
Size:	59.4 KB 
ID:	3996
  5. #5

    I added this dll (using System.Web.Mvc;), issue still exist...

    .cs
            public static void RegisterRoutes(RouteCollection routes)
            {
                routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
                routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");
    
                routes.MapRoute("Default",                                     // Route name                 
                    "{controller}/{action}/{id}",                              // URL with parameters                 
                    new { controller = "Home", action = "Index", id = "" });   // Parameter defaults             
    
                routes.MapRoute("Default2",
                    "{controller}.mvc/{action}/{id}",
                    new { action = "Index", id = "" });
    
                routes.MapRoute("Root",
                    "",
                    new { controller = "Home", action = "Index", id = "" });
            }
    
            public void Application_Start(object sender, EventArgs e)
            {
                RegisterRoutes(RouteTable.Routes);
            }
    
            protected void Application_AuthenticateRequest(object sender, EventArgs e)
            {
                var url = HttpContext.Current.Request.FilePath;
                if (url.EndsWith("ext.axd"))
                {
                    HttpContext.Current.SkipAuthorization = true;
                }
                else if (url.Contains("returnurl=/default.aspx") || url.Contains("returnurl=%2fdefault.aspx"))
                {
                    Response.Redirect(url.Replace("returnurl=/default.aspx", "r=/").Replace("returnurl=%2fdefault.aspx", "r=/"));
                }
            }
  6. #6
    Hi,

    What server is the Web Application deployed on?

    Is your project Web Forms Application or MVC Application?
  7. #7
    System
    Microsoft Windows Server 2003
    Web Edition
    Service Pack 2
    IIS V6.0


    My project is a MVC Application !
    Image attached with my Project Design Pattern.

    Click image for larger version. 

Name:	MVC Application (Saralee).GIF 
Views:	117 
Size:	20.7 KB 
ID:	4063


    Quote Originally Posted by Daniil View Post
    Hi,

    What server is the Web Application deployed on?

    Is your project Web Forms Application or MVC Application?
  8. #8
    Please try to set up
    <extnet cleanResourceUrl="false" />
    in Web.config.
  9. #9

    Same Error after adding cleanResourceUrl="false"

    I added as per below in the Web.config
    <extnet cleanResourceUrl="false" idMode="Explicit" theme="Default" initScriptMode="Inline" scriptMode="Debug" licenseKey="***********"  />
    Click image for larger version. 

Name:	Same Error after adding tag.GIF 
Views:	132 
Size:	52.0 KB 
ID:	4066


    Quote Originally Posted by Daniil View Post
    Please try to set up
    <extnet cleanResourceUrl="false" />
    in Web.config.
  10. #10
    Please post a response of a request which causes a Failure Window.
Page 1 of 5 123 ... LastLast

Similar Threads

  1. [CLOSED] error accessing Model object from a modal window
    By RCM in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 20, 2012, 10:01 PM
  2. Replies: 6
    Last Post: Apr 09, 2012, 11:33 PM
  3. Build new MVC 3 website
    By nilibek in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2012, 2:50 PM
  4. Error when accessing from IE
    By omeszar in forum 1.x Help
    Replies: 2
    Last Post: Jul 27, 2011, 6:59 PM
  5. I want to Use Ext in my website
    By chakravarthios in forum Licensing
    Replies: 10
    Last Post: Nov 10, 2010, 7:59 AM

Tags for this Thread

Posting Permissions