Error message in Studio 2015: Ein Aufrufziel hat einen Ausnahmefehler verursacht

My Studio shows an error message: "Ein Aufrufziel hat einen Ausnahmefehler verursacht", in English it should be: Exception has been thrown by the target of an invocation. In result I cannot edit any of my files anymore. (Pretty bad.) Any suggestion how to solve it? Even reinstalling both Studio and MS Office did not help.

  • Hi Aiga,

    Can you try a Studio reset, it's not the same as a reinstall as that can leave some files behind. Rename this folder (just add _old to the end or something, it's not important what you rename it to) and restart Studio:

    c:\Users\[USERNAME]\AppData\Roaming\SDL\SDL Trados Studio\12.0.0.0

    Regards

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • You can first try to reset the window layout from the View tab - this changes in different Studio views. The most important part to be retested is the Editor itself. If you are not able to access it, go for Pauls solution.
    Additionally you may also try to reset your user profile from File -> Setup -> Manage user profiles, if all means should not have helped.

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

  • Hello Paul,

    I would like to come back to this error because I got it in Studio 2017 yesterday.
    Fortunately, your suggestion worked and I was able to access the file I was supposed to deliver.
    But is there a way to find out what caused the error?
    After I finished the file and came back to it later, I just installed some plug-ins from the App Store.
    Could one of them be the reason.

    Below are the error message and the error file with details.
    Please have a look and advise how to avoid this in the future.

     

     

    <SDLErrorDetails time="24.11.2016 19:09:16">
      <ErrorMessage>Ein Aufrufziel hat einen Ausnahmefehler verursacht.</ErrorMessage>
      <Exception>
        <Type>System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>mscorlib</Source>
        <HResult>-2146232828</HResult>
        <StackTrace><![CDATA[   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
       bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       bei System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
       bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
       bei System.Activator.CreateInstance(Type type)
       bei Sdl.Core.PluginFramework.Implementation.Extension.CreateInstance()
       bei Sdl.Core.PluginFramework.ObjectRegistry`2.CreateObjects()
       bei Sdl.LanguagePlatform.TranslationMemoryApi.TranslationProviderManager.GetTranslationProviderWinFormsUIs()
       bei Sdl.TranslationStudio.Common.TranslationProvider.TranslationProviderService.GetTranslationProviderFactoryUI(Uri providerUri)
       bei Sdl.TranslationStudio.Common.TranslationProvider.TranslationProviderService.GetTranslationProviderFactoryUI(ITranslationProvider provider)
       bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl.UpdateMessageBar()
       bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl._searchResultsControl_CurrentTranslationUnitChanged(Object sender, EventArgs e)
       bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.OnCurrentTranslationUnitChanged()
       bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.HandleActiveRowChanged(ActiveRowChangedEventArgs e)
       bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.Source_ActiveRowChanged(Object sender, ActiveRowChangedEventArgs e)
       bei System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       bei AbstractFrameworkEditControl.raise_ActiveRowChanged(Object value0, ActiveRowChangedEventArgs value1)
       bei AbstractFrameworkEditControl.OnActiveRowChanged(Object sender, ActiveRowChangedEventArgs args)
       bei AbstractFrameworkEditControl.set_ActiveRow(IRowInfo activeRow)
       bei Sdl.DesktopEditor.Control.Support.RowInfo.set_Active(Boolean value)
       bei SideBySideEditor.set_ActiveRowNumber(Int32 rowNumber)
       bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.set_CurrentTranslationUnitIndex(Int32 value)
       bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.SideBySideEditor_AfterInitialUpdate(Object sender, AfterInitialUpdateEventArgs e)
       bei SideBySideEditor.raise_AfterInitialUpdate(Object value0, AfterInitialUpdateEventArgs value1)
       bei SideBySideEditor.OnAfterInitialUpdate(Object sender, AfterInitialUpdateEventArgs args)
       bei SideBySideEditor.Target_AfterInitialUpdate(Object sender, AfterInitialUpdateEventArgs args)
       bei AbstractFrameworkEditControl.raise_AfterInitialUpdate(Object value0, AfterInitialUpdateEventArgs value1)
       bei AbstractFrameworkEditControl.OnAfterInitialUpdate(Object sender, AfterInitialUpdateEventArgs args)
       bei FrameworkEditControlEventSource.AfterInitialUpdate(FrameworkEditControlEventSource* )
       bei Tree.DocumentControl.vl_WindowProc(DocumentControl* , HWND__* , UInt32 , UInt32 , Int32 )
       bei FrameworkDocumentControl.vl_WindowProc(FrameworkDocumentControl* , HWND__* h_wnd, UInt32 n_msg, UInt32 w_p, Int32 l_p)
       bei System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       bei System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       bei System.Windows.Forms.Control.DefWndProc(Message& m)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace>
        <InnerException>
          <Type>Sdl.Desktop.Platform.Services.ServiceNotAvailableException, Sdl.Desktop.Platform, Version=5.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
          <HelpLink />
          <Source>Sdl.Desktop.Platform</Source>
          <HResult>-2146233088</HResult>
          <StackTrace><![CDATA[   bei Sdl.Desktop.Platform.Implementation.Services.GlobalServiceContext.GetService[T]()
       bei Sdl.BestMatchService.MTProvider.BestMatchServiceTranslationProviderWinFormsUI..ctor()]]></StackTrace>
        </InnerException>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>14.0.0.0</ProductVersion>
        <EntryAssemblyFileVersion>14.0.5746.0</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1031</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>ARBEITS-PC\Stefan</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>ARBEITS-PC</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>12520452 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

     

    Thank you,

    Stefan

  • Hi Stefan,

    Your error may not be related at all... the error message quoted originally is a very generic one that doesn't provide enough information. Looking through the stack trace I don't think this is related to any of your apps. I wonder if you are using project templates created in an earlier version of Studio?

    What were you actually doing when this happened?

    Regards

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Yes, I realized that this a very common error message because it is mentioned often on the MSDN website.
    No, I used the common SDL Trados project template when I created this project in Studio 2017. But at the end of the setup process, I renamed the template to make it unique.
    During the morning I translated the file, and during the afternoon I changed some options and installed some apps from the App Store. I know this information is not of much use and I am afraid I cannot pinpoint to any particular action I did.
    Then at the end of day I wanted to proofread and deliver. So, I went to the Files view, selected the file I wanted to review and clicked on Open for Review (Zur Überprüfung öffnen). At this point I got the error.

    When I read through the error file, these lines make me wonder: What is the Best Match Service?
    <StackTrace><![CDATA[ bei Sdl.Desktop.Platform.Implementation.Services.GlobalServiceContext.GetService[T]()
    bei Sdl.BestMatchService.MTProvider.BestMatchServiceTranslationProviderWinFormsUI..ctor()]]></StackTrace>

    I hope this information gets us a bit further.

    Thank you,
    Stefan
  • Hi Stefan,

    From your description and the error message you provided, I suspect you are using a machine translation plug-in.
    Would you be able to let us know which machine translation plug-ins you have set to use in the project that caused the error?
  • Hello Jesse,

    I am using the SDL Language Cloud plug-in to access my Adaptive MT engine.

    And I just found out that when I try to change this setting, another error is displayed, ie. I cannot get to the setting to remove the MT engine.

     

     

     

    All this is so strange because once I use the C:\Users\Stefan\AppData\Roaming\SDL\SDL Trados Studio\14.0.0.0 that was created after I renamed the folder to 14.0.0.0_bad following Paul´s suggestion, Studio works fine and I can access all settings.
    To clarify, right now I have the folders "14.0.0.0" and "14.0.0.0_bad" in order to be able to reproduce the errors.

    All clear, I hope. Anything else I can provide?

    Thank you,
    Stefan 

     

     

  • Hi Stefan,

    If you open up the "14.0.0.0" folder, you will see a file named
    "TranslationProviderCredentialStore.bin"

    This file contains your sign-in information (user id and password) for the language cloud.
    For whatever reason this became corrupt I believe as your error message also says "ILanguageCloudIdentityService" (note the "Identity" part).

    Now, when you renamed the folder to "14.0.0.0_bad", Trados Studio created a new file for you (and I guess that you needed to sign in again).

    So now the question is how the file became corrupt. This could happen for many reasons, for example when you force close an application or when an application crashes in the middle of saving.

  • Hello Jesse,

    both 14.0.0.0 folders do not contain a file named "TranslationProviderCredentialStore.bin".
    However, my 11.0.0.0 folder contains one file with that name (created on 21.11.2016), the other is named "TranslationProviderCredentialStore.bin2" (created in January 2016).

    So, did Studio 2017 create this file in the wrong Studio version/folder?
    Can I just move that file to the 14.0.0.0 folder?

    Please advise on how to proceed.
  • Hi Stefan,

    I don't think you need to change anything. Jesse is just pointing out what might have become corrupt. How this happened we may never know, but hopefully now that you have reset the folder it will not happen again.

    Regards

    Paul

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub