Since SP1 of Studio 2014 I get a very strange error when creating a new file based translation memory.

Hi there, 

this must be a bug, because this code worked for years now and all of a sudden it throws errors when debugging:

Private Function CreateTM()

        Dim srcLang As String = "de-DE"

        Dim trgLang As String = "en-US"

        If FileExists(TMPath) = True Then

            Console.WriteLine("TM already exists and will get overwritten.")

            System.IO.File.Delete(TMPath)

        End If

        Console.WriteLine("Creating TM: " & TMPath)

        Dim FileBasedTM As New Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemory(TMPath, "", CultureInfo.GetCultureInfo(srcLang),_ 
        CultureInfo.GetCultureInfo(trgLang), FuzzyIndexes.SourceWordBased, BuiltinRecognizers.RecognizeAll)

        Return 0

    End Function

The startup element in the .exe.config file is set to <startup useLegacyV2RuntimeActivationPolicy="true">

The error that is thrown is this one:

Can you please look into this urgently? 

Thanks a lot in advance.

Tom

Parents
  • Hi,

    I've just installed Studio, patched it (cu6).

    Installed the SDK.

    Fired up visual studio and copied your code into a project and got it to compile.

    It seems to be working correctly here.

    Are you isolating your dependencies or something? I dropped sdl.languageplatform.translationmemory.Impl.dll into ildasm and it does have a dependency on ODAC at that version, but it is in the studio folder and is the right version.

    I am using VS2013 premium but it shouldnt make a difference I think.

    Ahha, on a hunch I unchecked the "prefer 32 bit" checkbox in the project settings and got the same error.

    We are still in our slow migration process to be properly 64bit, so you need to compile to 32bit at the moment.

    Dave

    David Watson
    Trados Development Team

Reply
  • Hi,

    I've just installed Studio, patched it (cu6).

    Installed the SDK.

    Fired up visual studio and copied your code into a project and got it to compile.

    It seems to be working correctly here.

    Are you isolating your dependencies or something? I dropped sdl.languageplatform.translationmemory.Impl.dll into ildasm and it does have a dependency on ODAC at that version, but it is in the studio folder and is the right version.

    I am using VS2013 premium but it shouldnt make a difference I think.

    Ahha, on a hunch I unchecked the "prefer 32 bit" checkbox in the project settings and got the same error.

    We are still in our slow migration process to be properly 64bit, so you need to compile to 32bit at the moment.

    Dave

    David Watson
    Trados Development Team

Children