We built an in-house application which runs alongside Trados and automates part of our work process, allowing our administration system to comprehend the Trados files/packages.
This application sits in the ~/SDL/SDL Trados Studio/Studio4 directory and has worked perfectly well.
However, we recently had to recompile the application in .NET 4.6 (due to shared satellite assemblies being upgraded) and although it still runs without problem on the developers' PCs, it won't run on non-developers' PCs: we double-click to run it, then after about 7 or 8 seconds a Windows dialog appears saying that an (unspecified) error has occurred. Behind this dialog is another which says Sdl.SDK.ProjectAutomation.Samples.BatchAna... [can't widen this dialog] has stopped running ("wird nicht funkioniert").
In the Windows Application log are two exceptions (ProjectAutomation.exe is the name of our in-house application):
-
Anwendung: ProjectAutomation.exeFrameworkversion: v4.0.30319Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.Ausnahmeinformationen: System.IO.FileLoadExceptionStapel:bei System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)bei System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[])bei System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[])bei System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object[], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef)bei System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)bei System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)bei System.Reflection.RuntimeAssembly.GetCustomAttributes(System.Type, Boolean)bei System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)bei System.AppDomain.GetTargetFrameworkName()
-
Name der fehlerhaften Anwendung: ProjectAutomation.exe, Version: 1.0.0.0, Zeitstempel: 0x5624bcbcName des fehlerhaften Moduls: KERNELBASE.dll, Version: 6.1.7601.19018, Zeitstempel: 0x5609fed4Ausnahmecode: 0xe0434352Fehleroffset: 0x0000c42dID des fehlerhaften Prozesses: 0x1314Startzeit der fehlerhaften Anwendung: 0x01d10a76b74119d9Pfad der fehlerhaften Anwendung: C:\Program Files (x86)\SDL\SDL Trados Studio\Studio4\ProjectAutomation.exePfad des fehlerhaften Moduls: C:\Windows\syswow64\KERNELBASE.dllBerichtskennung: f513babd-7669-11e5-b73e-cc52af46b9d1
The first exception occurs because a managed assembly cannot be found/loaded, though it doesn't say which assembly.
I've also ensured that the .NET Framework is installed and up-to-date (i.e., 4, 4.5.2 and 4.6) on the target PCs.
Furthermore, I am able to run the Sdl.SDK.ProjectAutomation.Samples.BatchAnalyze program found in the SDK 4.0 samples folder on a target PC.
Can anyone explain why this application runs on the developers' PCs but not others?