function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfchesssfchess 

Request compression attemp

I copy pasted the code from sforceExplorer to compress my requests to SF. The service is running on dotnet Framework 2 and I have EnableDecompression in my SF proxy. I need to compress all requests as well as responses. The problem I am having, whenever there is an error I dont get the error code, but an unhandled Web exception while debugging but not when running the application. Has anyone had the same problem? Is there a way around this or a fix?

SuperfellSuperfell
The code in the tech note and in sforce explorer are for .NET 1.1, For .NET 2.0 you need to make the following changes (a) remove all the code related to response de-compression, this is handled by .NET now, (b) switch out the 3rdparty compression library for the built in .NET 2.0 compression library.

I'll try to post a sample of this sometime next week.