Worked just the way it shd at my end.

Just changed the createobject to server.createobject