Invalid filechck.dll

Hi everyone

I am currently developing a simple WPF program using the ProjectAutomation API. However, when running unit tests, I run into the following exception on calling the "FileBasedProject" constructor:

Sdl.ProjectAutomation.FileBased.LicensingException was unhandled by user code
  Message=License check failed, with exception: System.ArgumentException: Invalid filechck.dll
   bei Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll)
   bei Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll)
   bei Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct()
   bei Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct()
   bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense)
   bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
   bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License()
   bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
   bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
  Source=Sdl.ProjectAutomation.FileBased
  StackTrace:
       bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
       bei Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(ProjectInfo projectInfo, ProjectTemplateReference templateReference)
       bei Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(ProjectInfo projectInfo)
       bei ch.diction.projectcreator.factory.SdlTradosStudioProjectFactory.createProject(ProjectSettings projectSettings) in C:\Users\pkesseli\Software\C#\project-creator\project-creator\src\ch\diction\projectcreator\factory\SdlTradosStudioProjectFactory.cs:Zeile 54.
       bei ch.diction.projectcreator.test.factory.SdlTradosStudioProjectFactoryTest.testCreateSingleSourceLanguageSingleTranslationTask() in C:\Users\pkesseli\Software\C#\project-creator\project-creator-test\src\ch\diction\projectcreator\test\factory\SdlTradosStudioProjectFactoryTest.cs:Zeile 31.
  InnerException: System.ArgumentException
       Message=Invalid filechck.dll
       Source=Sdl.Core.FileCheck
       StackTrace:
            bei Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll)
            bei Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll)
            bei Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct()
            bei Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct()
            bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense)
            bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
            bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License()
            bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
            bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
       InnerException:

The innermost exception seems to be an ArgumentException proclaiming "Invalid filechck.dll". Since I've connected my machine to our license server and Studio starts without issues, I am unsure where this error might result from. There is only one "filechck.dll" in the Studio program folder, and copying it to the program location has no effect.

Thanks for any suggestions and best regards

Pascal

Parents
  • Hi!

    We faced the same issue. It is obviously related to the location of SDL Trados DLLs that your application is referencing to or its dependences. One of the workarounds should be to put your EXE file into the SDL Trados installation folder or to copy all dependent files from SDL Trados installation folder into your application folder (not only filechck.dll file).

    We found quite hard to understand which DLLs and resource files to include with our application. It will be nice to hear from someone else how to manage this more "elegantly" or to have possibility to get some more information about this from SDL team. In fact we found this part of API quite "confused".

    Thank you,

    Radivoj

Reply
  • Hi!

    We faced the same issue. It is obviously related to the location of SDL Trados DLLs that your application is referencing to or its dependences. One of the workarounds should be to put your EXE file into the SDL Trados installation folder or to copy all dependent files from SDL Trados installation folder into your application folder (not only filechck.dll file).

    We found quite hard to understand which DLLs and resource files to include with our application. It will be nice to hear from someone else how to manage this more "elegantly" or to have possibility to get some more information about this from SDL team. In fact we found this part of API quite "confused".

    Thank you,

    Radivoj

Children