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

  • SEARCH
  • Home
  • 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 788393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:21:25+00:00 2026-05-14T21:21:25+00:00

I am moving and old asmx webservice to a new server with IIS7. This

  • 0

I am moving and old asmx webservice to a new server with IIS7.
This webservice basically sends a big dataset (10mb+) to a winform application.
The old solution was implemented using a custom soap extension which compressed the content before sending the stream to the client.
The client, of course, implemented the same custom soap extension, to decompressed the stream in a dataset.
Everything has worked pretty well for years.

My customer doesn’t want to change the code upgrading to WCF. They just want to put the old App on the new server and use the new dynamic content compression features.
We’re testing things on a test server (win serv 2008) and it seems that it’s working pretty well, even if it seems slow: we can’t see any difference in performance (speed) between the uncompressed and compressed stream.
Here’s the question. Where should I put the settings? Most people say I can’t put it in my web.config; others say it can be put there. I am a bit confused.
Are there any tricks or things I should know?
What about mimeTypes? Should I set some parameters, somewhere? … considering my stream is XML (dataset) ??

  • 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-14T21:21:25+00:00Added an answer on May 14, 2026 at 9:21 pm

    Assuming you can easily disable your compression code, then using the IIS7 compression features is pretty simple.

    You can enable and disable compression on a folder-folder level with web.config in IIS7.

    However, the configuration that controls which mimetypes are compressed and which are not are stored at the webserver level.

    To enable the dynamic compression on a given site/vdir/folder, assuming that the server has the Dynamic compression feature installed, just open up your site/folder in IIS manager, and then hit the ‘Compression’ icon. Here you can enable both static and dynamic compression.

    At this point, check to see if it has worked (i.e. that the traffic does get compressed). If so, then the default dynamic compression config is working and you can go and grab and early lunch 🙂

    If not, then you need to:

    • Click on the server node (at the root) in IIS manager. Then open the ‘Configuration Editor’ (on the bottom row, usually on the left).
    • In the dropdown on the form that appears, expand the system.webserver node, and then click on the ‘httpCompression’ leaf node.
    • Now you’ll see all the server-wide configuration options for compression – you’ll want to open up the ‘dynamicTypes’ setting.
    • In there you can add extra rules for the mimetypes you need to be compressing.

    One thing that’s a little bit annoying with this is that the mimetypes are matched exactly, and sometimes the default rules won’t match everything you want.

    I, for example, have added 4 extra rules to our servers:

    • application/json
    • application/xml

    And then:

    • application/json; charset=utf8
    • application/xml; charset=utf8

    Because, for some reason, I’ve found that the mimetype of my json/xml responses from .Net have had this extra ‘charset=’ bit at the end. If it does, and it’s not in the rules list, then IIS7 compression will not kick in. Took me ages (and a lot of use of Fiddler!) to figure this bit out!

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

Sidebar

Related Questions

I have an old asp app I am moving to a new server with
I am moving an old asp classic (sigh...) local website to a new IIS7.5
I am moving the old server to archive.example.com, and the new server will continue
I am moving data from an old table to a SQL server new version
I'm moving an application from one server to another and the new server returns
I'm moving a large wordpress mysql db (1.49gb) from an old server to a
I'm moving my ASP.NET website to a new provider. Only problem is, old host
I am moving an old ASP.net (C#) application from plain SQL queries to LINQ
I'm in the process of moving from an old laptop to a new one.
I've been tasked with moving an old dynamic website from a Windows server to

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.