There is one more parameter to send with the request.
So this is my code so far:
$.post(url + "/SaveProfile", { xml: XML, configName: name}, function() {
alert("Saved");
});
I got this error :
A potentially dangerous Request.Form value was detected from the client