CODE using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Web; using System.Windows.Forms; using Sdl.Core.Globalization; using Sdl.Core.Settings; using Sdl.LanguagePlatform.TranslationMemoryApi; using Sdl.ProjectAutomation.Core; using Sdl.ProjectAutomation.FileBased; using Sdl.ProjectAutomation.Settings; using Sdl.Core.FileCheck; namespace TestAPIStudio2014 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { FileBasedTranslationMemory fileTm = new FileBasedTranslationMemory(@"Y:\Temp\MRA\Proj\Tm\fr-FR\JobNo5681EN-US_FR.sdltm"); string srcLocale = fileTm.LanguageDirection.SourceLanguage.ToString(); string trgLocale = fileTm.LanguageDirection.TargetLanguage.ToString(); MessageBox.Show(srcLocale); MessageBox.Show(trgLocale); ProjectPackageImport imp; FileBasedProject.CreateFromProjectPackage(@"Y:\Temp\MRA\srm_pub_article_add_column_to_report_1_090914_en-US_fr-FR_20140925.23344121.sdlppx",@"Y:\Temp\MRA\Test\",out imp); } } } *************************************************************************************** ERROR MESSAGE L'exception Sdl.ProjectAutomation.FileBased.LicensingException n'a pas été gérée HResult=-2146233088 Message=License check failed, with exception: System.ArgumentException: Invalid filechck.dll à Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll, Boolean validateCertificate) à Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll, Boolean validateCertificate) à Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll) à Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct() à Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct() à Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense) à Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages() à Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License() à Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.IsModuleActive(Int32 licenseModule) à Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicenseModuleActive(Int32 licenseModule, String errorMessage) Source=Sdl.ProjectAutomation.FileBased StackTrace: à Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicenseModuleActive(Int32 licenseModule, String errorMessage) à Sdl.ProjectAutomation.FileBased.FileBasedProject.CreateFromProjectPackage(String projectPackageFilePath, String projectFolder, EventHandler`1 statusEventHandler, EventHandler`1 messageEventHandler, ProjectPackageImport& result) à Sdl.ProjectAutomation.FileBased.FileBasedProject.CreateFromProjectPackage(String projectPackageFilePath, String projectFolder, ProjectPackageImport& result) à TestAPIStudio2014.Form1.Form1_Load(Object sender, EventArgs e) dans C:\Temp\Développement\Visual Studio 2010\TestAPIStudio2014\TestAPIStudio2014\Form1.cs:ligne 35 à System.Windows.Forms.Form.OnLoad(EventArgs e) à System.Windows.Forms.Form.OnCreateControl() à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) à System.Windows.Forms.Control.CreateControl() à System.Windows.Forms.Control.WmShowWindow(Message& m) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.ScrollableControl.WndProc(Message& m) à System.Windows.Forms.ContainerControl.WndProc(Message& m) à System.Windows.Forms.Form.WmShowWindow(Message& m) à System.Windows.Forms.Form.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) à System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) à System.Windows.Forms.Control.SetVisibleCore(Boolean value) à System.Windows.Forms.Form.SetVisibleCore(Boolean value) à System.Windows.Forms.Control.set_Visible(Boolean value) à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) à System.Windows.Forms.Application.Run(Form mainForm) à TestAPIStudio2014.Program.Main() dans C:\Temp\Développement\Visual Studio 2010\TestAPIStudio2014\TestAPIStudio2014\Program.cs:ligne 18 à System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() à System.Threading.ThreadHelper.ThreadStart_Context(Object state) à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) à System.Threading.ThreadHelper.ThreadStart() InnerException: System.ArgumentException HResult=-2147024809 Message=Invalid filechck.dll Source=Sdl.Core.FileCheck StackTrace: à Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll, Boolean validateCertificate) à Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll, Boolean validateCertificate) à Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll) à Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct() à Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct() à Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense) à Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages() à Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License() à Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.IsModuleActive(Int32 licenseModule) à Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicenseModuleActive(Int32 licenseModule, String errorMessage) InnerException: