SDL Trados API question

Hi, 

Currently I am using SDL Trados Studio 2014. I am trying to develop a C# program like the sample projects in SDL Trados SDK to create new project, import files and save project. 

I have installed SDL Trados SDK and when I ran the sample program or myself program, I always got the license check error like on the line

FileBasedProject newProject = new FileBasedProject(SetProjectInfo(projectName, sourceLang, targetLang));

where I passed the projectInfo object into FileBasedProject function.

System.Exception.Message.get returned
"License check failed, with exception: Sdl.Core.PluginFramework.PluginFrameworkException: No Application specific plug-in directory found.\r\n
at Sdl.Core.PluginFramework.DefaultPluginLocator..ctor()\r\n at Sdl.Core.PluginFramework.PluginManager.get_DefaultPluginRegistry()\r\n
at Sdl.Common.Licensing.Provider.Core.LicensingProviderManager.get_LicensingProviderFactories()\r\n
at Sdl.Common.Licensing.Provider.Core.LicensingProviderManager.CreateProvider(ILicensingProviderConfiguration config)\r\n
at Sdl.Common.Licensing.Manager.ApplicationLicenseManager.GetCurrentLicensingProvider()\r\n
at Sdl.Common.Licensing.Manager.ApplicationLicenseManager.GetProduct()\r\n
at Sdl.Common.Licensing.Manager.ApplicationLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()\r\n
at Sdl.ProjectApi.Licensing.StudioLicense.GetLicenseWithoutConsumingSeatsOrUsages()\r\n
at Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_ProductLicense()\r\n
at Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()\r\n
at Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()" string

I have tried to use 

AssemblyResolver.Resolve() before this line. And AssemblyResolver.StudioPath returns: C:\Program Files <X86>\SDL\SDL Trados Studio\Studio3\

I have added the reference dll files in Studio3 folder too. I have read the similar post but have no idea how to solve this issue.

Any suggestion will be greatly helpful.

Thank!