Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Issue with DevExpress Controls

Hello COT team,
I am trying use DevExpress ASP.NET Web Forms control in my current project which is built using COT v8.7.2.0.
But application stops working, it throws following error

Home.aspx:1 Failed to load resource: net::ERR_CONTENT_DECODING_FAILED

If I removed this setting from Web.config, application works but my page with DevExpress controls fail to load

<httpModules>
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v19.1, Version=19.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" name="ASPxHttpHandlerModule" />
</httpModules>


Thanks,
SPP
1 person has
this question
+1
Reply
  • Are you usinf spa or aspx project type from COT ? If you are on SPA then DEVExpress controls cannot be used.
    baa
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • SPP,

    I use Devexpress components with COT (aspx), altough I have to comment out some code lines in file App_code\services\ApplicationServices.cs in method CompressOutput. Please see below the code lines that I have comented:

    public static void CompressOutput(HttpContext context, string data)
    {
    HttpRequest request = context.Request;
    HttpResponse response = context.Response;
    string acceptEncoding = request.Headers["Accept-Encoding"];
    //if (!(String.IsNullOrEmpty(acceptEncoding)))
    // if (acceptEncoding.Contains("gzip"))
    // {
    // response.Filter = new GZipStream(response.Filter, CompressionMode.Compress);
    // response.AppendHeader("Content-Encoding", "gzip");
    // }
    // else
    // if (acceptEncoding.Contains("deflate"))
    // {
    // response.Filter = new DeflateStream(response.Filter, CompressionMode.Compress);
    // response.AppendHeader("Content-Encoding", "deflate");
    // }
    byte[] output = Encoding.UTF8.GetBytes(data);
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Thanks William,
    With the changes you suggested my application is working now

    Thanks
    SPP
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated