[Mono-bugs] [Bug 562043] New: Web services request returns 'invalid length' if kernel-mode auth is not enabled on IIS 7.0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 9 19:55:29 EST 2009



           Summary: Web services request returns 'invalid length' if
                    kernel-mode auth is not enabled on IIS 7.0
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: pbowden at microsoft.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=331869)
 --> (http://bugzilla.novell.com/attachment.cgi?id=331869)
Sample MonoTouch code that reproduces the bug

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us)
AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10

Microsoft-based server applications such as Microsoft Exchange install web
service components in IIS and set kernel mode authentication to 'false' (this
is a setting on the Windows auth module of the IIS virtual directory). However,
with this default value, attempts from Mono to retrieve data through web
services result in an 'invalid length' exception. If the server administrator
sets kernel mode auth to 'true' web service requests from Mono then succeed.

A sample MonoTouch app is provided where this behavior can be seen. The app
makes a call to an IIS host called janeksbox.com which is an Exchange Server
hosted on my machine.

Reproducible: Always

Steps to Reproduce:
1. Run the attached MonoTouch code sample in MonoDevelop
2. Click the 'Works' button and look at the web request behavior in the
Application Output window. The request will succeed as expected.
3. Click the 'Doesn't Work' button, and again look at the Application Output
window. Mono is throwing an invalid length exception.

Both URLs resolve to the same web services application. The only difference is
that the server-side IIS virtual directories are configured differently (one
has kernel-mode set, the other doesn't).
Actual Results:  
Invalid length error is thrown unexpectedly.

Expected Results:  
Web services request should succeed.

Feel free to send me mail at pbowden at microsoft.com if you need more info. FYI
-I'm part of the Exchange product development team here at Microsoft.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list