Error since adding DownloadLatestServerVersion method to my plugin

Hi,

We are curently trying to include Server project into our existing plugin.

From the documentation I added the following references to our project : 

Screenshot of Visual Studio Solution Explorer showing expanded References node with various assemblies like DocuWriteAPI, Sdl.Core.Settings, and Sdl.ProjectApi.

Once done, I created a method that Retrieve the project from the server (as explained in the documentation.

At this point, everything is fine and working well.

Now, I want to download the files (again with the explanation found in the documentation)

And the once I added this line : project.DownloadLatestServerVersion(file.Id, null, false);

Trados doesn't want to be run with my plugin and gives me the following error when launched in debug: 

Error dialog box stating 'An unexpected error has occurred while loading the application plug-ins. Cross-thread operation not valid: Control 'SplashScreenForm' accessed from a thread other than the thread it was created on.'

This error when launched manually : 

Error dialog box stating 'Cannot load the plug-in defined in 'GSStudioWizard.plugin.xml'. The plug-in contains references to assemblies that have not been validated for use with third-party plug-ins.' with an assembly named 'Sdl.ProjectApi' version 17.0.0.0 and a validation error 'Assembly reference is not public.'

Did i do something wrong ?

Thanks for your help,

Regards,

Jean-François.



Generated Image Alt-Text
[edited by: RWS Community AI at 1:44 PM (GMT 1) on 5 Aug 2024]