Error: The language resource file could not be located

Dear all,

This is a follow-up to the question asked here: https://community.sdl.com/developers-more/developers/language-developers/f/61/t/14441 

I wonder if there is an alternative to putting my app in the Trados installation folder?

What's meant by the "language resource file" exactly? Can I remedy the error by copying any files over to my app's folder?

 

Thanks a lot for your help!

Parents
  • Hello Toby,

    Same as you, I have been trying for weeks to build a standalone app which uses Trados libraries and *.dll files. I'm using Microsoft Visual Studio 2017, and I got it to work by setting the "build" folder to the Trados folder (as was mentioned in the original answer you noted above).

    Just today, I had the idea to copy the files *from* the Trados folder *to* the app's folder (as you mentioned). I initially copied all the files in my "Trados Studio 5" folder into the app's folder, then I worked by trial-and-error--deleting a few files, seeing if the app would still run, deleting more files, seeing if the app would still run, etc.

    The app works now, and I only have a few dozen files left which I copied from the Trados folder. Since the app works, I decided to stop my paring efforts. These are the files I have in the folder now, (not ALL of them are necessary, probably):

    CompactEncodingDetector.dll
    EntityFramework.dll
    EntityFramework.SqlServer.dll
    EntityFramework.SqlServer.xml
    EntityFramework.xml
    ICSharpCode.SharpZipLib.dll
    icudt55.dll
    icuin55.dll
    icuuc55.dll
    ICUWrapper.dll
    log4net.dll
    ManagedCompactEncodingDetector.dll
    Microsoft.AspNetCore.JsonPatch.dll
    Newtonsoft.Json.dll
    Sdl.Core.Api.dll
    Sdl.Core.Bcm.BcmConverters.dll
    Sdl.Core.Bcm.BcmModel.dll
    Sdl.Core.FineGrainedAlignment.Core.dll
    Sdl.Core.FineGrainedAlignment.dll
    Sdl.Core.Globalization.dll
    Sdl.Core.LanguageProcessing.dll
    Sdl.Core.PluginFramework.dll
    Sdl.Core.PluginFramework.PackageSupport.dll
    Sdl.Core.Processing.Alignment.Api.dll
    Sdl.Core.Processing.Alignment.Api.xml
    Sdl.Core.Processing.Alignment.Common.dll
    Sdl.Core.Processing.Alignment.Common.xml
    Sdl.Core.Processing.Alignment.dll
    Sdl.Core.Processing.Processors.Storage.dll
    Sdl.Core.Settings.dll
    Sdl.Core.TM.ImportExport.dll
    Sdl.Core.Utilities.dll
    Sdl.Desktop.Platform.dll
    Sdl.DesktopEditor.Control.dll
    Sdl.Enterprise2.Platform.Contracts.dll
    Sdl.Enterprise2.Studio.Platform.Client.dll
    Sdl.FileTypeSupport.Framework.Core.dll
    Sdl.FileTypeSupport.Framework.Core.Settings.dll
    Sdl.FileTypeSupport.Framework.Core.Utilities.dll
    Sdl.FileTypeSupport.Framework.Core.Utilities.xml
    Sdl.FileTypeSupport.Framework.Core.xml
    Sdl.FileTypeSupport.Framework.Implementation.dll
    Sdl.LanguagePlatform.Core.dll
    Sdl.LanguagePlatform.Core.xml
    Sdl.LanguagePlatform.IO.dll
    Sdl.LanguagePlatform.Lingua.dll
    Sdl.LanguagePlatform.NLP.resources
    Sdl.LanguagePlatform.ServerBasedTranslationMemory.Client.dll
    Sdl.LanguagePlatform.ServerBasedTranslationMemory.Contracts.dll
    Sdl.LanguagePlatform.Stat.dll
    Sdl.LanguagePlatform.TranslationMemory.dll
    Sdl.LanguagePlatform.TranslationMemory.xml
    Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Sdl.LanguagePlatform.TranslationMemoryApi.xml
    Sdl.LanguagePlatform.TranslationMemoryImpl.dll
    Sdl.LanguagePlatform.TranslationMemoryTools.dll
    Sdl.MultiTerm.Kernel.Core.dll
    Sdl.MultiTerm.TMO.Interop.dll
    Sdl.ProjectApi.AutomaticTasks.PseudoTranslate.dll
    Sdl.TmService.Sdk.dll
    SnowballStemmers.dll
    SQLite.Interop.dll
    System.Data.SQLite.dll
    System.Data.SQLite.xml

    (note that some of these files were generated by my app during "build" from Microsoft Visual Studio).

    I'd recommend putting the above files into your app's folder, it should work without throwing a "language resources file cannot be located" error. Then, you can compile the whole thing into a *.exe installer using a program like Inno Setup.

    Best of luck! --
Reply
  • Hello Toby,

    Same as you, I have been trying for weeks to build a standalone app which uses Trados libraries and *.dll files. I'm using Microsoft Visual Studio 2017, and I got it to work by setting the "build" folder to the Trados folder (as was mentioned in the original answer you noted above).

    Just today, I had the idea to copy the files *from* the Trados folder *to* the app's folder (as you mentioned). I initially copied all the files in my "Trados Studio 5" folder into the app's folder, then I worked by trial-and-error--deleting a few files, seeing if the app would still run, deleting more files, seeing if the app would still run, etc.

    The app works now, and I only have a few dozen files left which I copied from the Trados folder. Since the app works, I decided to stop my paring efforts. These are the files I have in the folder now, (not ALL of them are necessary, probably):

    CompactEncodingDetector.dll
    EntityFramework.dll
    EntityFramework.SqlServer.dll
    EntityFramework.SqlServer.xml
    EntityFramework.xml
    ICSharpCode.SharpZipLib.dll
    icudt55.dll
    icuin55.dll
    icuuc55.dll
    ICUWrapper.dll
    log4net.dll
    ManagedCompactEncodingDetector.dll
    Microsoft.AspNetCore.JsonPatch.dll
    Newtonsoft.Json.dll
    Sdl.Core.Api.dll
    Sdl.Core.Bcm.BcmConverters.dll
    Sdl.Core.Bcm.BcmModel.dll
    Sdl.Core.FineGrainedAlignment.Core.dll
    Sdl.Core.FineGrainedAlignment.dll
    Sdl.Core.Globalization.dll
    Sdl.Core.LanguageProcessing.dll
    Sdl.Core.PluginFramework.dll
    Sdl.Core.PluginFramework.PackageSupport.dll
    Sdl.Core.Processing.Alignment.Api.dll
    Sdl.Core.Processing.Alignment.Api.xml
    Sdl.Core.Processing.Alignment.Common.dll
    Sdl.Core.Processing.Alignment.Common.xml
    Sdl.Core.Processing.Alignment.dll
    Sdl.Core.Processing.Processors.Storage.dll
    Sdl.Core.Settings.dll
    Sdl.Core.TM.ImportExport.dll
    Sdl.Core.Utilities.dll
    Sdl.Desktop.Platform.dll
    Sdl.DesktopEditor.Control.dll
    Sdl.Enterprise2.Platform.Contracts.dll
    Sdl.Enterprise2.Studio.Platform.Client.dll
    Sdl.FileTypeSupport.Framework.Core.dll
    Sdl.FileTypeSupport.Framework.Core.Settings.dll
    Sdl.FileTypeSupport.Framework.Core.Utilities.dll
    Sdl.FileTypeSupport.Framework.Core.Utilities.xml
    Sdl.FileTypeSupport.Framework.Core.xml
    Sdl.FileTypeSupport.Framework.Implementation.dll
    Sdl.LanguagePlatform.Core.dll
    Sdl.LanguagePlatform.Core.xml
    Sdl.LanguagePlatform.IO.dll
    Sdl.LanguagePlatform.Lingua.dll
    Sdl.LanguagePlatform.NLP.resources
    Sdl.LanguagePlatform.ServerBasedTranslationMemory.Client.dll
    Sdl.LanguagePlatform.ServerBasedTranslationMemory.Contracts.dll
    Sdl.LanguagePlatform.Stat.dll
    Sdl.LanguagePlatform.TranslationMemory.dll
    Sdl.LanguagePlatform.TranslationMemory.xml
    Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Sdl.LanguagePlatform.TranslationMemoryApi.xml
    Sdl.LanguagePlatform.TranslationMemoryImpl.dll
    Sdl.LanguagePlatform.TranslationMemoryTools.dll
    Sdl.MultiTerm.Kernel.Core.dll
    Sdl.MultiTerm.TMO.Interop.dll
    Sdl.ProjectApi.AutomaticTasks.PseudoTranslate.dll
    Sdl.TmService.Sdk.dll
    SnowballStemmers.dll
    SQLite.Interop.dll
    System.Data.SQLite.dll
    System.Data.SQLite.xml

    (note that some of these files were generated by my app during "build" from Microsoft Visual Studio).

    I'd recommend putting the above files into your app's folder, it should work without throwing a "language resources file cannot be located" error. Then, you can compile the whole thing into a *.exe installer using a program like Inno Setup.

    Best of luck! --
Children