What is the easiest way to add compression to WCF in Silverlight?

后端 未结 4 1434
孤独总比滥情好
孤独总比滥情好 2020-12-23 17:52

I have a silverlight 2 beta 2 application that accesses a WCF web service. Because of this, it currently can only use basicHttp binding. The webservice will return fairly

4条回答
  •  难免孤独
    2020-12-23 18:02

    It should also be noted that you may need to add the mime type to applicationHost.config under section in addition to enabling compression for the site:

    
    

    If certain dynamic responses are not being compressed (and some are) it could be a mime type issue. Use Fiddler to get the specifics associated with the request. Failed request tracing may be useful in determining whether or not IIS is even attempting to compression the response. If compression is correctly configured you will see a NO_MATCHING_CONTENT_TYPE in the complete trace section of the trace output.

提交回复
热议问题