Studio crashes every time opened - msg "Exception has been thrown by the target of an invocation"

Hi, Everyone, all of a sudden, while working on a project in Studio 2015, that had been fine for hours, I received this message: Exception has been thrown by the target of an invocation. I had been "reviewing" (editing) a file in a package from an agency client that used track changes. I have found some explanations of problems that can arise on older versions of Studio when using track changes, but I have the most updated version/updates of Studio 2015. 

The worst part is, I have rebooted twice, but now, Studio won't even OPEN (not just the file, the entire program)! It starts to open and then when I can see the interface for a second, and then it quits and throws this error. 

HELP!

Thanks! Eve 

Parents Reply Children
  • Thanks for that idea. I have just done that and it is in XML format. I am pasting the actual XML below. I could also post the actual XML file, but am not sure how to do that in this forum. 

    Here are the contents of the XML file pasted below: 

    <SDLErrorDetails time="11/15/2016 5:49:39 AM">
    <ErrorMessage>Exception has been thrown by the target of an invocation.</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[ at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
    at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
    at Sdl.Desktop.Common.DataListRow.Data.get_Item(String dataMember)
    at Sdl.Desktop.Common.DataList.<>c__DisplayClassc.<QuickSortUsingLinq>b__4(DataListRow x)
    at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
    at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
    at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    at Sdl.Desktop.Common.DataList.QuickSort(DataListRowCollection rows, DataListColumn groupColumn, DataListColumn sortColumn, SortOrder sortOrder)
    at Sdl.Desktop.Common.DataList.SortHierarchical()
    at Sdl.Desktop.Common.DataList.Sort()
    at Sdl.Desktop.Common.DataList.DataBind()
    at Sdl.Desktop.Common.DataList.DataBindBindingList()
    at Sdl.Desktop.Common.DataList.set_DataSource(Object value)
    at Sdl.TranslationStudio.Common.Files.FileListControl.SetProjectFiles(IProjectFile[] projectFiles)
    at Sdl.TranslationStudio.Common.Files.FileListControl.set_ProjectFiles(IProjectFile[] value)
    at Sdl.TranslationStudio.Common.Files.FileDataController.SetFileListContents(Folder selectedFolder)
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FilesViewService.MyFileDataController.SetFileListContents(Folder selectedFolder)
    at Sdl.TranslationStudio.Common.Files.FileDataController.RefreshFileList()
    at Sdl.TranslationStudio.Common.Files.FileDataController.TryLoadData()
    at Sdl.TranslationStudio.Common.Files.FileDataController.set_FileData(IFileData value)
    at Sdl.TranslationStudio.Common.Files.ProjectFileDataController.set_FileData(ProjectFileData value)
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FilesViewService.UpdateDetails()
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FilesViewService.Refresh()
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FilesView.Refresh()
    at Sdl.Desktop.Platform.AbstractView.Application_Idle(Object sender, EventArgs e)
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at Sdl.Desktop.Platform.Implementation.Studio.Run()
    at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
    <InnerException>
    <Type>System.FormatException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>mscorlib</Source>
    <HResult>-2146233033</HResult>
    <StackTrace><![CDATA[ at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
    at System.String.Format(IFormatProvider provider, String format, Object[] args)
    at System.String.Format(String format, Object[] args)
    at Sdl.ProjectApi.Helpers.AbstractConfirmationStatistics.ComputeCombinedConfirmationLevel()
    at Sdl.ProjectApi.Helpers.AbstractConfirmationStatistics.get_PercentComplete()
    at Sdl.TranslationStudio.Common.Files.FileListItem.get_PercentComplete()]]></StackTrace>
    </InnerException>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>12.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>12.2.5195.7</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 8.1 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>EVE-SURFACE-WK\Eve</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.34209</DotNetFrameWork>
    <ComputerName>EVE-SURFACE-WK</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>8291400 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

  • Hi Eve,

    It appears one of the settings files (xml files) got corrupted.
    Please delete the *.xml files under the following path:
    C:\Users\[USER NAME]\AppData\Roaming\SDL\SDL Trados Studio\12.0.0.0
    * Note that you need to replace [USER NAME] with your own user name

    By deleting these xml files, your personal settings will be gone.
    You could delete one at a time to determine which xml file is the problem.

    Let me know if that helps.

    Jesse
  • Thanks for that suggestion (which I would have NEVER found on my own and I appreciate your input very much!). I deleted them all, one by one, and it was apparently the last one - "usersettings.xml" or something like that (I thought it would regenerate it like the other files as I deleted them, but it didn't, and don't recall the exact name since I deleted it).

    Everything seems okay now (thank goodness), with some setting changes (which makes sense), but it is fine and I can just reset any preferences I had (considering the alternative, this is only a small inconvenience).

    I will add more info if it acts up again, but it seems to be resolved. Thank you SO MUCH! Have a great day!
  • Hi Jesse,

    I am having the same problem with my SDL Trados 2017, updated from 2015. I have deleted the xml files as suggested, but the problem still persists and Trados won't even open.

    Can you help me?

    Thank you,

    Sam
  • Hi ,

    It helps to see the full message in case the issue is caused by something else. But please already try renaming 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\14.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

  • Open Plugin Manager (same program group as Studio) and uninstall the plugins listed there.
    If no help, delete the projects.xml from your Studio folder within your Documents library.
    If still no joy, delete the whole Studio folder in AppData. This article should help gateway.sdl.com/.../communityknowledge

    _________________________________________________________

    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.