Creating new Trados Studio 2024 project using Powershell (or other) script

Hello

I'm trying to create a Sample Trados Studio 2024 project using automation
When I using SDLTradosStudio.exe, the Wizard open a new project only.

The "Trados PowerShell Toolkit" the script not happy with error:
Exception calling "CallEnsurePluginRegistryIsCreated" with "1" argument(s): "The registered delegate for type IUrlsConfig threw an exception.
Application is not configured for BestMatchServiceUrlsConfig."
At C:\Users\devopsadmin\Documents\WindowsPowerShell\Modules\ProjectHelper\ProjectHelper.psm1:876 char:2
+ [DependencyResolver.ReflectionHelper]::CallEnsurePluginRegistryIs ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ActivationException

Any suggestions?

emoji
Parents
  • Hi  , for standalone automation, you might need to add this reference in the app.config of yr project, example:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <section name="BestMatchServiceUrlsConfig" type="Sdl.BestMatchServiceStudioIntegration.Common.UrlsConfig, Sdl.BestMatchServiceStudioIntegration.Common" />
      </configSections>
      <BestMatchServiceUrlsConfig GlobalApi="https://api.cloud.trados.com" auth0="https://sdl-prod.eu.auth0.com">
        <LanguageConfig>
          <Lang Code="en" />
          <Lang Code="de" />
          <Lang Code="fr" />
          <Lang Code="es" />
          <Lang Code="ja" />
          <Lang Code="it" />
          <Lang Code="zh-CN" />
        </LanguageConfig>
        <HavingTroubleSigningIn url="https://gateway.sdl.com/apex/communityknowledge?articleName=000001399" />
      </BestMatchServiceUrlsConfig>  
      <runtime>
        <NetFx40_PInvokeStackResilience enabled="1" />
        <legacyCorruptedStateExceptionsPolicy enabled="true" />
        <ThrowUnobservedTaskException enabled="true" />
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Extensions.DependencyModel" publicKeyToken="adb9793829ddae60" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
          </dependentAssembly>    
        </assemblyBinding>
      </runtime>
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
      </startup>  
    </configuration>

    can you try this an let me know how it goes?

Reply
  • Hi  , for standalone automation, you might need to add this reference in the app.config of yr project, example:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <section name="BestMatchServiceUrlsConfig" type="Sdl.BestMatchServiceStudioIntegration.Common.UrlsConfig, Sdl.BestMatchServiceStudioIntegration.Common" />
      </configSections>
      <BestMatchServiceUrlsConfig GlobalApi="https://api.cloud.trados.com" auth0="https://sdl-prod.eu.auth0.com">
        <LanguageConfig>
          <Lang Code="en" />
          <Lang Code="de" />
          <Lang Code="fr" />
          <Lang Code="es" />
          <Lang Code="ja" />
          <Lang Code="it" />
          <Lang Code="zh-CN" />
        </LanguageConfig>
        <HavingTroubleSigningIn url="https://gateway.sdl.com/apex/communityknowledge?articleName=000001399" />
      </BestMatchServiceUrlsConfig>  
      <runtime>
        <NetFx40_PInvokeStackResilience enabled="1" />
        <legacyCorruptedStateExceptionsPolicy enabled="true" />
        <ThrowUnobservedTaskException enabled="true" />
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Extensions.DependencyModel" publicKeyToken="adb9793829ddae60" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
          </dependentAssembly>    
        </assemblyBinding>
      </runtime>
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
      </startup>  
    </configuration>

    can you try this an let me know how it goes?

Children