Problem with Ajax.Net 2.0

Jul 10, 2009 at 5:04 PM
Edited Jul 13, 2009 at 8:21 AM

Hi,

 I tested using from your samples when trying press button with inside UpdatePanel very strange problem appeared, when using latest 3.5 ajax and .NET Framewok 3.5 compression for post process works, when trying use 2.0 Framework with older Ajax doesn't work compression why? I can't use latest Framework becouse by hosting plans problem. Can any body answer why doesn't work MbCompression with Microsoft Ajax in 2.0 Framework.

Response Headers after Post content using Ajax.Net 2.0 (version 1.0.61025.0)

Server: ASP.NET Development Server/8.0.0.0
Date: Fri, 10 Jul 2009 15:53:56 GMT
X-AspNet-Version: 2.0.50727
Transfer-Encoding: chunked
Cache-Control: private
Content-Type: text/plain; charset=utf-8
Connection: Close

Response Headers after Post content using Ajax.Net 3.5 (version 3.5.0.0)

Server: ASP.NET Development Server/8.0.0.0
Date: Fri, 10 Jul 2009 16:03:25 GMT
X-AspNet-Version: 2.0.50727
Content-Encoding: gzip
Cache-Control: private
Content-Type: text/plain; charset=utf-8
Content-Length: 1430
Connection: Close

Waiting for answer.

I used latest MbCompression source code, mbcompression-23926.zip.

When I change settings.MSAjaxVersion < 3.5 to settings.MSAjaxVersion < 0.9 then after post response server an ajax error message that can't parse response.write() and etc.., but if I change to settings.MSAjaxVersion < 1.0 response was with both Content-Encoding: gzip and Transfer-Encoding: chunked, why?

Thanks

Jul 15, 2009 at 3:10 PM

It is impossible to compress MS-Ajax calls made by MS-Ajax framework prior to version 3.5

The framework throw an exception on any try to manipulate the response.

Jul 30, 2009 at 4:50 PM

Hi,

I am very interesting by your library, but my project use .NET 2.0 so i can't use it :(. It's very strange that MS-AJAX doesn't support compress "PostBack".

I think you should write on the readme.txt that your Library works only on .NET 3.5.

All the best,
Alexandre (French Developer)

Jul 30, 2009 at 5:06 PM

The library is working just fine on .NET 2.0

It compress css, js, pages and webresources.axd. Actually, the only thing it is NOT doing when running on .NET 2.0 is to compress the ajax async calls.

 

Jul 31, 2009 at 9:11 AM
Edited Jul 31, 2009 at 9:11 AM

Thank you for your quick reply.

Sorry, i am not very "understanding" on my previous post, i was just interesting by the compress of "ajax async call" for my project.

I however keep your project in my bookmark :)