Tuesday, June 28, 2011

Error "405 Method Not Allowed" when performing a PUT on IIS7

To fix this error, go to the root of your site in IIS, find the Modules button and double click it. Scroll down to WebDAV and hit Remove on the right. Back out and open up the WebDAV feature options. Make sure it's disabled (you'll have the option to enable it on the right). You might want to clear out any Authoring settings you have in there as well, just to be sure.

SBJson null

To test if a value parsed by SBJson in a NSDictionary is null  do this:

if ((CFNullRef)[participant valueForKey:kIndex] == kCFNull) {
   // do something
}