Hi,
on a client PC we get an error message when trying to create a new Studio project through the API. However, creating a project in Studio (2009) itself does work.
the Exception is as follows:
Project creation has been simplified to the following snippet, but the error still exists:
var pi = new Sdl.ProjectAutomation.Core.ProjectInfo();
pi.Name = "Test_" + Guid.NewGuid();
pi.Description = "";
pi.DueDate = DateTime.Now.AddMonths(1);
pi.LocalProjectFolder = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), Guid.NewGuid().ToString());
pi.SourceLanguage = new Sdl.Core.Globalization.Language(new System.Globalization.CultureInfo("de-AT"));
pi.TargetLanguages = new[] { new Sdl.Core.Globalization.Language(new System.Globalization.CultureInfo("en-US")) };
var tpl = System.Configuration.ConfigurationManager.AppSettings["StudioTemplate"];
var project = new Sdl.ProjectAutomation.FileBased.FileBasedProject(pi, new Sdl.ProjectAutomation.Core.ProjectTemplateReference(tpl));
Does anyone have an idea what could cause this? On other PCs the same code works. The installed studio is the latest one available.
Thanks in advance,
Tamas