IIS with Authentication causing issues....

I have a webservice that is using Digest Authentication. There is a function in the webservice that takes a string - the string is compressed XML. In the function I am decompressing the XML and doing some database manipulation.

Here's the issue:

This scenario works GREAT when the XML is is ~5MB or so uncompressed. I catch every error that could be thrown, and nothing ever occurs. However, as soon as the XML is ~24 MB uncompressed (compresses down to ~2MB), I get 401 Unauthorized Accessed errors everytime I call the webservice.

When I turn off Digest Authentication and enable 'Anonymous' access everything works great. I have tried Basic Authentication (eww) just for testing and it does the same thing as the Digest.

The first thing the webservice function does is write a text file just saying "HERE!". When the XML string is ~2MB in size and Digest is turned on, the text file is never written. As soon as I disable Digest it works everytime.

Anyone have ideas? I can set up a test bed for anyone who wants to give this a test.
Thanks,

Tyler

[1077 byte] By [TylerFrugia] at [2008-3-6]
# 1
Issue is resolved now... For anyone having this same issue, just turn off "http keep-alives". This will send the authentication information with every call, and seemed to have fixed my issue (although not the best solution).
TylerFrugia at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified