[CLOSED] Problem with Google Chrome.

Page 1 of 4 123 ... LastLast
  1. #1

    [CLOSED] Problem with Google Chrome.

    below is my Store:
    <Proxy>
      <ext:HttpProxy  DisableCaching="true" Json="true" Method="Post" Url="http://localhost:65000/UtilitiesWebService.asmx/strGetDelearProspecting"></ext:HttpProxy>
      </Proxy>
      <AutoLoadParams>
      <ext:Parameter Name="delarLocationID" Value="1"></ext:Parameter>
      </AutoLoadParams>
       <Reader>
         <ext:JsonReader Root="d.Data" TotalProperty="d.TotalRecords">
                                <Fields>
                                    <ext:RecordField Name="PublishDate" Type="Date"/>
                                    <ext:RecordField Name="ProfileImage" />
                                    <ext:RecordField Name="AuthorName" />
                                    <ext:RecordField Name="Content" />
                                    <ext:RecordField Name="AuthorScreenName" />
                                    <ext:RecordField Name="ProspectID" />
                                </Fields>
                            </ext:JsonReader>
         </Reader>
               <SortInfo Field="publishDate" Direction="ASC" />
             <Listeners>
                <LoadException Handler="var e = e || {message: response.responseText}; alert('Load failed: ' + e.message);" />
             </Listeners>
      </ext:Store>
    i was face problems with IE where it always prompt me with EXT is undefined and i fix it using http://forums.ext.net/showthread.php...pls-help/page2 , but i face problems with gooogle chrome where it keeps prompt me with load faild, communication failure.

    this request is urgent.
    Last edited by geoffrey.mcgill; Jan 05, 2011 at 8:09 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Unfortunately, the information is not enough to determine the problem. Please use Fiddler and see response for failed requests
  3. #3

    it is really strnage.

    with IE the XML returned perfectly , but with chrome it is returned :
    HTTP/1.1 500 Internal Server Error
    Server: ASP.NET Development Server/10.0.0.0
    Date: Thu, 16 Dec 2010 21:14:21 GMT
    X-AspNet-Version: 2.0.50727
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 4500
    Connection: Close
    
    <html>
        <head>
            <title>Request format is unrecognized for URL unexpectedly ending in '/strGetDelearProspecting'.</title>
            <style>
             body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
             p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
             b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
             H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
             H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
             pre {font-family:"Lucida Console";font-size: .9em}
             .marker {font-weight: bold; color: black;text-decoration: none;}
             .version {color: gray;}
             .error {margin-bottom: 10px;}
             .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
            </style>
        </head>
    
        <body bgcolor="white">
    
                <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
    
                <h2> <i>Request format is unrecognized for URL unexpectedly ending in '/strGetDelearProspecting'.</i> </h2></span>
    
                <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
    
                <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    
                <br><br>
    
                <b> Exception Details: </b>System.InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/strGetDelearProspecting'.<br><br>
    
                <b>Source Error:</b> <br><br>
    
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code>
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code>
    
                      </td>
                   </tr>
                </table>
    
                <br>
    
                <b>Stack Trace:</b> <br><br>
    
                <table width=100% bgcolor="#ffffcc">
                   <tr>
                      <td>
                          <code><pre>
    
    [InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/strGetDelearProspecting'.]
       System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +405913
       System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +212
       System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47
       System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
       System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155
    </pre></code>
    
                      </td>
                   </tr>
                </table>
    
                <br>
    
                <hr width=100% size=1 color=silver>
    
                <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
    
                </font>
    
        </body>
    </html>
    <!-- 
    [InvalidOperationException]: Request format is unrecognized for URL unexpectedly ending in '/strGetDelearProspecting'.
       at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
       at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
       at System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
       at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    -->
  4. #4
    Hi,

    with IE the XML returned perfectly
    hmm... I thought that you use JSON web service because you set Json="true" for proxy and use 'd' prefix in the reader (Root="d.Data" TotalProperty="d.TotalRecords")

    Please post web service code
  5. #5

    Here is my web service Code.

    
        using System;
        using System.Web;
        using System.Collections;
        using System.Web.Services;
        using System.Web.Services.Protocols;
        using System.Data;
        using System.Data.Odbc;
        using System.Web.Script.Serialization;
        using System.Web.Script.Services; 
        using SocialDealer.Data;
        using System.Linq;
        using System.Collections.Generic ;
        using SocialNetworksUtility;
        using Newtonsoft.Json.Linq;
        using Newtonsoft.Json;
    
    using Ext.Net ;
    
    namespace UtilitiesWebService
    {
        /// <summary>
        /// Summary description for Service1
        /// </summary>
        [WebService(Namespace = "http://tempuri.org/",Description = "Web service contains utilities methods of Social dealers.")]
        [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
        [ScriptService] 
        // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
        // [System.Web.Script.Services.ScriptService]
        public class UtilitiesWebService : System.Web.Services.WebService
        {
            [WebMethod]
            [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
            public Paging<TwitterProspecting> strGetDelearProspecting(string delarLocationID)
            {
    
                Paging<TwitterProspecting> JsonObject =null ;
                try
                {
                    SocialDealerDB oDb = new SocialDealerDB();
                    DataSet dsProspecting = oDb.spGetProspectingInfoByDealerLocationID("Twitter",int.Parse(delarLocationID)).ExecuteDataSet();
                    if (dsProspecting.Tables[0].Rows.Count > 0)
                    {
                        List<TwitterProspecting> results=new List<TwitterProspecting>();
                        foreach (DataRow row in dsProspecting.Tables[0].Rows)
                        {
                            results.Add(new TwitterProspecting() { ProfileImage = row["ProfileImage"] as string, AuthorName = row["AuthorName"] as string, AuthorScreenName = row["AuthorScreenName"] as string, Content = row["Content"] as string, Link = row["Link"] as string, PublishDate = Convert.ToDateTime(row["PublishDate"]), ProspectID = row["ProspectID"] as string, Title = row["Title"] as string, FacebookDateTimeStyle = row["FacebookDateTimeStyle"] as string  });
                        }
                        JsonObject = new Paging<TwitterProspecting>(results, results.Count);
                    } 
                }
                catch (Exception ex)
                {
                    JsonObject = null;
                  
                }
    
                return JsonObject;
            }
            [WebMethod]
            [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
            public Paging<Recalls> strGetDelearServiceRecalls(string delearLocationID)
            {
                Paging<Recalls> JsonObject = null;
                try
                {
                    SocialDealerDB oDb = new SocialDealerDB();
                    DataSet dsCustomersRecall = oDb.spGetDealerMakeRecallsCount(int.Parse(delearLocationID)).ExecuteDataSet();
                    if (dsCustomersRecall.Tables[0].Rows.Count > 0)
                    {
                        List<Recalls> results = new List<Recalls>();
                        foreach (DataRow row in dsCustomersRecall.Tables[0].Rows)
                        {
                            results.Add(new Recalls(row[0].ToString(), int.Parse(row[1].ToString())));
                        }
    
                        JsonObject = new Paging<Recalls>(results, results.Count);
                    }
                }
                catch (Exception ex)
                {
                    JsonObject = null;
                }
                return JsonObject;
            }
            /// <summary>
            /// Retrieve Delear Location facebook Stored Statiscs.
            /// </summary>
            /// <param name="strUniqueid">unique id of social location id</param>
            /// <param name="strquerytype">query type: d=day,m=month,y=yearly</param>
            /// <returns>paging of list Facebook statiscs</returns>
            [WebMethod]
            [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
            public Paging<FacebookStatiscs> strGetDelearLocationFaceBookStiscs(string strUniqueid,string strquerytype)
            {
                Paging<FacebookStatiscs> JsonObject = null;
                try
                {
                    List<FacebookStatiscs> results = SocialNetworksUtility.FacebookUtility.RetrievStoredInsights(strUniqueid, strquerytype);
                    JsonObject = new Paging<FacebookStatiscs>(results, results.Count);
                }
                catch(Exception ex)
                {
                    JsonObject = null;
                }
                return JsonObject;
            }
            /// <summary>
            /// Retrieve Delar Location Twitter Insights.
            /// </summary>
            /// <param name="struniqueid">unique id of delear location.</param>
            /// <param name="strquerytype">d:daily,m:monthly,y:yearly</param>
            /// <param name="strscreenname">Screen name of the Twitter Account</param>
            /// <returns></returns>
            [WebMethod]
            [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
            public Paging<TwitterStatiscs> strGetDelearLocationTwitterInsights(string struniqueid, string strquerytype,string strscreenname)
            {
                Paging<TwitterStatiscs> JsonObject = null;
                try
                {
                    List<TwitterStatiscs> results = SocialNetworksUtility.TwitterUtility.RetrievStoredInsights(struniqueid, strscreenname, strquerytype);
                    JsonObject = new Paging<TwitterStatiscs>(results, results.Count);
                }
                catch (Exception ex)
                {
                    JsonObject = null;
                }
                return JsonObject;
            }
        }
    
    }
  6. #6
    Hi,

    Are you sure that web service returns XML? Can you post response for IE?
    Why do you use delarLocationID parameter inside AutoLoadParams, it must be passed with each request (use BaseParams collection).
    In any way the problem with your web service (not toolkit), try to debug, if you set breakpoint to the webservice method then are you able to see that execution is passed inside the method?
  7. #7

    The problem with the toolkit or settings over chrome and firefox.

    im sure the problem with the toolkit or gooogle chrome , since i attach .NET debugger to my web service and i notice following:

    1. when i run my project with IE a hits reached to my web service and debugger detect it and its going perfectly.
    2.when i run my project with Google chrome , no hits reached my web service .
    2.when i run my project with Mozilla Firefox , no hits reached my web service .

    so this indicated the toolkit have a problem with Google chrome and Mozilla firefox or im missed something in toolkit using or there a settings i have to make sure of existence over chrome and Firefox.
  8. #8
    Hi,

    1. Are you able to create test project which demonstrates the problem?
    2. Or do you able to create online sample?
    3. Are you able to post the request information (method(GET/POST), posted variables, url and etc)

    I guess that web service cannot determine what method should be called because (one of the possible problems)

    1. You have to enable GET and POST protocols (http://support.microsoft.com/kb/819267)
    2. You have to use GET protocol because json web service can be denied via POST (set Method="Get" for HttpProxy)
    3. Please ensure that delarLocationID argument is passed with each request (move it from AutoLoadParams to BaseParams)
  9. #9

    i think the problem form firfox and chrome or with my web service

    Hi,
    1. You have to enable GET and POST protocols (http://support.microsoft.com/kb/819267)
    I enabled Get and Post Request at my webservice.

    2.You have to use GET protocol because json web service can be denied via POST (set Method="Get" for HttpProxy).
    I set the request type to be Get request.

    3. Please ensure that delarLocationID argument is passed with each request (move it from AutoLoadParams to BaseParams).
    i ensure that.

    the result was that chrome and Firefox keep requests to my web service with communication failure , i fiddler my web pages and the result was it keeps log these requests with red line and the server return the same error , and when i just copy the loged url and paste them at firefox it reurns correct result which lead me to feel crazy.

    the request are with format :

    http://localhost:65000/UtilitiesWebS...arLocationID=1

    and dont knw why chrome and Firefox add _dc parameter.


    are you advise to replace .asmx with .ashx.
  10. #10
    Hi,

    Please create test project which demonstrates the problem and post it.

    when i just copy the loged url and paste them at firefox it reurns correct result which lead me to feel crazy.
    In this case XML serialization is used (not json)

    If you add the following sample to your project then do you have the same problem?
    https://examples1.ext.net/#/GridPane...ON_WebService/
Page 1 of 4 123 ... LastLast

Similar Threads

  1. [CLOSED] Tab Panel Not Rendering In Google Chrome
    By garrisrd in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 11, 2010, 8:23 AM
  2. google chrome help
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Oct 02, 2009, 4:27 AM
  3. Replies: 4
    Last Post: Aug 31, 2009, 12:10 PM
  4. Google Chrome ignores key mapping?
    By dbassett74 in forum 1.x Help
    Replies: 0
    Last Post: May 29, 2009, 6:56 PM
  5. Google Chrome ComboBox Render
    By davidhoyt in forum Bugs
    Replies: 3
    Last Post: Dec 18, 2008, 9:48 PM

Posting Permissions