Error when using method "createShapeElement"

Hello!
I write application in C# in Visual Studio 2008. After change on Visual Studio 2010 my old code don't work :

shapeElem = msapp.CreateShapeElement1(null, ref points, fillMode);

error :
"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"

I try create line, shape and don't work but i can create text.
Anyone can help me?