I tired those steps again and still getting the same error, I tired it on a different site definition and it worked fine! So must be a problem with this one I'm working on, the site definition etc all looks OK.
I tried deleting the server behavior completely and starting again, but still get the same error as before..