Tool Sweep

Hello all,

I would like to create a solid with a sweeping of section on profile. I'm not able to obtain the good result easily. There are some deviation on sharp angle. I think "Tool Sweep" function could be the good tool, but I don't know how to use it in my case. I always have some errors. Do you have any suggestions ?

Profile :

Curve used as guide (it's a 3D curve) :

Result with sweep (not with tool sweep) :