Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6061195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:54:39+00:00 2026-05-23T08:54:39+00:00

I am trying to debug a weird issue I am experiencing with a MVC2

  • 0

I am trying to debug a weird issue I am experiencing with a MVC2 solution I inherited from previous developers.

The issue is that if, for instance, I remove a necessary semi-colon from Site.Master, I do not see the appropriate “Server Error” page when I attempt to run the site. Instead, I am seeing a full screen of garbage characters. IE prompts to open/save the file instead of rendering garbage text by default — but if you open, you see the same junk.

I’ve poked around a bit using Firebug, but I haven’t seen anything super useful. I can only assume that a piece of code is expecting valid mark-up, receiving invalid mark-up, and issuing a response that is encoded differently due to this invalid mark-up.

This does not happen on a sample project, though, only on this development app. I have no idea what is going on when invalid mark-up is ran. Any advice on how to trace this issue further?

Example

EDIT:

  • Custom Error Handling is not enabled.
  • There is an “Error.aspx” page in under /Views/Shared, excluding it does not seem to do anything to the project.
  • There are no OnException controller extensions.
  • I’ve tried commenting all the content out of the Master Page and then throwing a server error — still generates garbage.
  • Looked at the Global.asax and did not see anything out of the ordinary.
  • Skimmed the web config. It’s rather large. I looked for things regarding errors, didn’t see anything other than noting that custom error handling was not enabled.

EDIT2: Here is the code causing issues. I am not sure why yet, but I thought I’d post it for science.

public class CompressionFilterAttribute : ActionFilterAttribute
{
    //public override void OnActionExecuting(ActionExecutingContext context)
    //{
    //    HttpRequestBase request = context.HttpContext.Request;

    //    string acceptEncoding = request.Headers["Accept-Encoding"];

    //    if (string.IsNullOrEmpty(acceptEncoding))
    //        return;

    //    acceptEncoding = acceptEncoding.ToUpperInvariant();

    //    HttpResponseBase response = context.HttpContext.Response;

    //    if (acceptEncoding.Contains("GZIP"))
    //    {
    //        response.AppendHeader("Content-encoding", "gzip");
    //        response.Filter = new GZipStream(response.Filter, CompressionMode.Compress);
    //    }
    //    else if (acceptEncoding.Contains("DEFLATE"))
    //    {
    //        response.AppendHeader("Content-encoding", "deflate");
    //        response.Filter = new DeflateStream(response.Filter, CompressionMode.Compress);
    //    }
    //}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:54:40+00:00Added an answer on May 23, 2026 at 8:54 am

    Are you compressing your pages (ie. gzip)? Make sure that your page isn’t compressed…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to debug a strange issue with users that have LogMeIn installed.
Trying to debug an issue with a server and my only log file is
I'm currently trying to debug a customer's issue with an FTP upload feature in
I am trying to debug an ActiveResource call that is not working. What's the
I'm trying to debug into a C dll that is invoked on a Windows
I'm using .live() , and I'm trying to debug a weird error where jQuery
I'm trying to debug a deadlock in a multi-threaded Python application after it has
I'm trying to debug an application (under PostgreSQL) and came across the following error:
I'm trying to debug an MSBuild task, and I know there is some way
I’m trying to debug a memory leak problem. I’m using mtrace() to get a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.