Silverlight / WPF - How to compress webservice result?

Asked By Mostafa Ehsani on 30-Jul-12 05:20 PM
Peter Bromberg replied to Mostafa Ehsani on 30-Jul-12 09:25 PM
Just go into your IIS config file and add:
<add mimeType="application/json" enabled="true" />
or whatever mimeType your service is sending out. 
Usually the application host config file should be located here: %windir%\System32\inetsrv\config 
DL M replied to Mostafa Ehsani on 31-Jul-12 06:24 AM
Add the following lines to C:\Windows\System32\inetsrv\config\applicationHost.config:

  <dynamicTypes>
     ...
     <add mimeType="application/json" enabled="true" />
     <add mimeType="application/json; charset=utf-8" enabled="true" />
     ...
  </dynamicTypes>