I am getting an LicensingException when I try to open an existing sdlproj file:
C# code:
// Open the SDL project
string sdlProjectFile = @"c:\tmp\tmp.sdlproj";
if (!File.Exists(sdlProjectFile)) { return; }
FileBasedProject project = null;
try {
project = new FileBasedProject(sdlProjectFile);
}
catch (LicensingException le) {
Console.WriteLine(le);
return;
}
...
Here is the output from the exception:
"Sdl.ProjectAutomation.FileBased.LicensingException" wurde aufgefangen.
Message=License check failed, with exception: System.ArgumentException: Invalid filechck.dll
bei Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll)
bei Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
Source=Sdl.ProjectAutomation.FileBased
StackTrace:
bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
bei Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(String projectFilePath)
bei LucyLT.CommandLine.Program.Main(String[] args) in C:\...\Program.cs:Zeile 102.
InnerException: System.ArgumentException
Message=Invalid filechck.dll
Source=Sdl.Core.FileCheck
StackTrace:
bei Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll)
bei Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
InnerException:
We use a SDL Studio 2011 Professional network licence with a sufficient number of licenses and SDL Studio 2011 Professional is working fine.
Has anyone a good idea or an hint for me?!?!
Kind regards,
Harald
"Sdl.ProjectAutomation.FileBased.LicensingException" wurde aufgefangen.
Message=License check failed, with exception: System.ArgumentException: Invalid filechck.dll
bei Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll)
bei Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
Source=Sdl.ProjectAutomation.FileBased
StackTrace:
bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
bei Sdl.ProjectAutomation.FileBased.FileBasedProject..ctor(String projectFilePath)
bei LucyLT.CommandLine.Program.Main(String[] args) in C:\...\Program.cs:Zeile 102.
InnerException: System.ArgumentException
Message=Invalid filechck.dll
Source=Sdl.Core.FileCheck
StackTrace:
bei Sdl.Core.FileCheck.AbstractFileCheck..ctor(String fileCheckDll)
bei Sdl.Core.FileCheck.NodeLockFileCheck..ctor(String fileCheckDll)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.CreateProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.get_CurrentProduct()
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicense(Boolean checkOutLicense)
bei Sdl.DesktopLicensing.Core.CoreLicenseManager.GetLicenseWithoutConsumingSeatsOrUsages()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_License()
bei Sdl.ProjectApi.Licensing.LicenseCheckWithoutUsingNetworkSeat.get_IsProfessional()
bei Sdl.ProjectAutomation.FileBased.FileBasedProject.CheckLicense()
InnerException:
und die Stelle im c#-Code:...
// Open the SDL project
if (!File.Exists(sdlProjectFile)) { return; }
FileBasedProject project = null;
try
{
project = new FileBasedProject(sdlProjectFile);
}
catch (LicensingException le)
{
Console.WriteLine(le);
return;
}
...