Fixed return type from invoke

Fixed return type from invoke call to WFC
Updated to .NET 4.0