views:

147

answers:

2

My host has been pretty good about helping to tweak things to get my various .NET peices working, but they are unwilling to change the IIS authorization settings. Presently my OData service whines about that. Have I got any options?

A: 

What error message are you getting from your OData service?

Here's the error: *IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.*
Malachi
A: 

Assuming you are hosting under IIS 7 you can add the following to your config file to disable an authentication method (basic, integrated, etc.). I just went through this when hosting a WCF Data Service on a shared host and it was driving me crazy because they would let me turn it off, but any change to my site would cause it to enable again and I would start getting the error.

Hope this helps...

<system.webServer> 
     <security> 
            <authentication> 
                <windowsAuthentication enabled="false" />
            </authentication> 
     </security> 
</system.webServer>
Brian ONeil
I am going to give this a shot and I will post my results! thank you
Malachi
Alas, this results in an error 500. I bet they are running IIS6
Malachi
Word is in, it's IIS7. That was unexpected..
Malachi
For the record the error 500 appears no matter which page is browsed to, so it's not an exception within the service itself
Malachi