Possible to run OData on a shared host in mixed auth mode?
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?
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>
精彩评论