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

Page 2 of 5 FirstFirst 1234 ... LastLast
  1. #11

    There is No Response of the Request when the Failure happen...

    When I look at the response with Firebug, there is nothing...

    Click image for larger version. 

Name:	There is No Response of the Request.GIF 
Views:	156 
Size:	70.1 KB 
ID:	4067

    Quote Originally Posted by Daniil View Post
    Please post a response of a request which causes a Failure Window.
  2. #12
    I guess that you investigate another request, Failure window shows that request has Status code 200 but you investigate request with status code 404
  3. #13
    Geoffrey,
    I just sent you the Credentials to our Development Region to your email...

    Maybe this can help you, help me better.

    Quote Originally Posted by Vladimir View Post
    I guess that you investigate another request, Failure window shows that request has Status code 200 but you investigate request with status code 404
  4. #14
    Quote Originally Posted by RonaldR View Post
    Geoffrey,
    I just sent you the Credentials to our Development Region to your email...

    Maybe this can help you, help me better.
    I took a quick look at your app and the 404 failures are requests for images.

    Whats causing the 200 Bad Response is unclear. The request is made properly, but something is causing the thread to terminate. Maybe jacking up the .Timeout property of the DirectEvent config could help.

    It appears all the Ext.NET scripts and css are loading properly. If Ext.NET was not loading properly, you would see nothing.

    Unfortunately I'm not sure what is causing the request failures. Maybe something in your network setup is blocking the requests. I'd start by creating a simple test, and slowly build it up until you find (or narrow down) the problem.

    I'm deleting your email which contained credentials to your system, and would prefer to keep all communication within the forums.
    Geoffrey McGill
    Founder
  5. #15
    Quote Originally Posted by geoffrey.mcgill View Post
    Maybe something in your network setup is blocking the requests.
    Recently, there was the thread with such problem.
    http://forums.ext.net/showthread.php?18046
  6. #16

    My Web.config

    <?xml version="1.0"?>
    <configuration>
      <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
              <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
        <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
          <section name="Web.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
      </configSections>
      
      <extnet cleanResourceUrl="false" idMode="Explicit" theme="Default" initScriptMode="Inline" scriptMode="Debug" licenseKey="*************"  />
      
      <connectionStrings>
        <add name="ConnectionString" connectionString="Data Source=**********;Initial Catalog=***;Persist Security Info=True;User ID=***;Password=***" providerName="System.Data.SqlClient"/>
      </connectionStrings>
    
      <appSettings>
        <add key="connectionStringName" value="ConnectionString"/>
        <add key="ApplicationName" value="Sara Lee Data Entry"/>
        <add key="PageSize" value="10"/>
        <add key="TrapErrors" value="false"/>
        <add key="Version" value="1.0.0"/>
        <add key="AdminEmailAddress" value="example@bbumail.com"/>
        <add key="FromEmailAddress" value="example@bbumail.com"/>
        
        <!--<add key="CrystalImageCleaner-AutoStart" value="true"/>
        <add key="CrystalImageCleaner-Sleep" value="60000"/>
        <add key="CrystalImageCleaner-Age" value="120000"/>
        <add key="ReportsPath" value=""/>
        <add key="MailServerAddress" value="127.0.0.1"/>
        <add key="ChartImageHandler" value="storage=file;timeout=3000;Url=~/resources/images/chart/;"/>-->
    
      </appSettings>
    
      <system.web>
        <trust level="Full"/>
    
        <webServices>
          <protocols>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
          </protocols>
        </webServices>
        <!-- 
                Set compilation debug="true" to insert debugging 
                symbols into the compiled page. Because this 
                affects performance, set this value to true only 
                during development.
            -->
        <compilation debug="true">
          <assemblies>
            <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
          </assemblies>
        </compilation>
        <!--
                The <authentication> section enables configuration 
                of the security authentication mode used by 
                ASP.NET to identify an incoming user. 
         -->
        <authentication mode="Windows"/>
        <identity impersonate="true"/>
        <globalization culture="auto" uiCulture="auto"/>
        <!--
                The <customErrors> section enables configuration 
                of what to do if/when an unhandled error occurs 
                during the execution of a request. Specifically, 
                it enables developers to configure html error pages 
                to be displayed in place of a error stack trace.
    
            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
        <pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="ext" namespace="Ext.Net" assembly="Ext.Net"/>
            <add tagPrefix="uc" tagName="tagRender" src="~/UserControls/RenderResourceTag.ascx"/>
          </controls>
        </pages>
        <httpHandlers>
          <remove verb="*" path="*.asmx"/>
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
          <add path="*/ext.axd" verb="*" type="Ext.Net.ResourceHandler" validate="false" />
        </httpHandlers>
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
        </httpModules>
      </system.web>
      <system.codedom>
        <compilers>
          <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
            <providerOption name="CompilerVersion" value="v3.5"/>
            <providerOption name="WarnAsError" value="false"/>
          </compiler>
        </compilers>
      </system.codedom>
      <!-- 
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="ScriptModule"/>
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
        </modules>
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <remove name="ScriptHandlerFactory"/>
          <remove name="ScriptHandlerFactoryAppServices"/>
          <remove name="ScriptResource"/>
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          <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="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>
    Quote Originally Posted by Daniil View Post
    Recently, there was the thread with such problem.
    http://forums.ext.net/showthread.php?18046
  7. #17
    I can try this, but how do I increase the .Timeout property of the DirectEvent if its wired up like this ??

    .cs
            [DirectMethod(Namespace = "Dashboard")]
            public void LoadPeriodStore(int? year, int? period, String bakery)
            {
                PeriodStore.DataSource = tPeriod.FilterAllPeriodsByBakeryPeriodYear(bakery, period.GetValueOrDefault(),
                                                                                    year.GetValueOrDefault());
                PeriodStore.DataBind();
            }
    .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();
            }
    
            var selectHomePageValue = function() {
                if (FormPanel1.isValid())
                { btnNext.setDisabled(false); }
                else
                { btnNext.setDisabled(true); }
                SelectBox1.clearInvalid();
                SelectBox2.clearInvalid();
                SelectBox3.clearInvalid();
                var year = SelectBox1.getValue().trim();
                var period = SelectBox2.getValue();
                var bakery = SelectBox3.getValue().trim();
                
                if(year != "" && period != "" && bakery != "")
                    Dashboard.LoadPeriodStore(year, period, bakery);
            }
    Quote Originally Posted by geoffrey.mcgill View Post
    Maybe jacking up the .Timeout property of the DirectEvent config could help.
  8. #18
    Hi,

    You can add the Timeout property directly to the [DirectMethod] config.

    Example

    [DirectMethod(Namespace = "Dashboard", Timeout = 90000)]
    I'll also tie this post to the DirectMethod Overview sample in the Examples Explorer. Most of the DirectMethod options and techniques are demonstrated in this sample,

    https://examples2.ext.net/#/Events/D...hods/Overview/

    Hope this helps.
    Geoffrey McGill
    Founder
  9. #19
    Seems like the Error is on this Line:
    o.conn.send(postData || null);

    .js
        // private
        function asyncRequest(method, uri, callback, postData) {
            var o = getConnectionObject() || null;
    
            if (o) {
                DanaMethodOpen("open",o.conn,method, uri, true);
    
                if (pub.useDefaultXhrHeader) {
                    initHeader('X-Requested-With', pub.defaultXhrHeader);
                }
    
                if(postData && pub.useDefaultHeader && (!pub.headers || !pub.headers[CONTENTTYPE])){
                    initHeader(CONTENTTYPE, pub.defaultPostHeader);
                }
    
                if (pub.defaultHeaders || pub.headers) {
                    setHeader(o);
                }
    
                handleReadyState(o, callback);
                o.conn.send(postData || null);
            }
            return o;
        }

    Click image for larger version. 

Name:	Error still exist.JPG 
Views:	91 
Size:	84.0 KB 
ID:	4087

    Quote Originally Posted by geoffrey.mcgill View Post
    Hi,

    You can add the Timeout property directly to the [DirectMethod] config.

    Example

    [DirectMethod(Namespace = "Dashboard", Timeout = 90000)]
    I'll also tie this post to the DirectMethod Overview sample in the Examples Explorer. Most of the DirectMethod options and techniques are demonstrated in this sample,

    https://examples2.ext.net/#/Events/D...hods/Overview/

    Hope this helps.
  10. #20
    Hi,

    I was not able to find the JavaScript o.conn.send anywhere in Ext.NET or ExtJS. If this line of code is throwing a JavaScript error, then you are going to have to step through your code and determine exactly what is causing the error.
    Geoffrey McGill
    Founder
Page 2 of 5 FirstFirst 1234 ... 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