Page 1 of 1

Licensing issues on a build server (error LC0004)

Posted: Fri Apr 19, 2013 7:00 am
by 15664629
Hello,

we are experiencing problems with a .NET solution on our build server:

[msbuild] Properties\Licenses.licx(1): error LC0004: Exception occurred creating type 'Steema.TeeChart.WPF.TChart, TeeChart.WPF, Version=4.1.2012.1312, Culture=neutral, PublicKeyToken=98e8c3f289a4e286' System.NullReferenceException: Object reference not set to an instance of an object. [d:\Hudson\temp\workspace\7685_Akqui_FIT_Branch4\Akqui.Infrastructure.Charting\Akqui.Infrastructure.Charting\Akqui.Infrastructure.Charting.csproj]

The scenario is as follows
- we have packaged one DLL, TeeChart.WPF.dll with NuGet
- we have added a licenses.licx file to the project's properties. It contains the line "Steema.TeeChart.WPF.TChart, TeeChart.WPF, Version=4.1.2012.1312, Culture=neutral, PublicKeyToken=98e8c3f289a4e286"
- we have installed TeeChart on the build server. Apparently all directories, DLLs etc. are correctly installed in C:\Program Files (x86)\Steema Software\Steema TeeChart for .NET 2012 4.1.2012.01310\
- we have run TeeRegV2010.exe and executed the registration process via the website (the build server cannot access the internet directly)
- Visual Studio is not installed on the build server. We rely only on the installed Framework (4.5) and MSBuild for building, which works fine for all other code and some other external components (DevExpress, dotConnect for Oracle)
- building is possible on developer's machines, but not on the build server, where the process fails with the error message above

What can we do to fix this problem?

Re: Licensing issues on a build server (error LC0004)

Posted: Fri Apr 19, 2013 9:16 am
by 10050769
Hello Robert,
What can we do to fix this problem?
My first recommendation is that check if your license is correctly installed following the suggestions of next threads:
http://www.teechart.net/support/viewtopic.php?t=6711
http://www.teechart.net/support/viewtop ... f=4&t=7677

If your problem persist, could you please tell us which command is you using in msbuild?

Thanks,

Re: Licensing issues on a build server (error LC0004)

Posted: Mon Apr 22, 2013 3:12 pm
by 15664629
Hello Sandra,

thanks for your reply. This seems to be more complicated to setup than I thought, so I can't look into it right now. TChart is currently only used for a feature that is nowhere near production-ready.

We don't do anything special with MSBuild. This is what we invoke via NAnt for the relevant solution (referenced here via the property "solutionfile"):

<msbuild project="${solutionfile}" verbose="false">
<property name="Configuration" value="Debug"/>
</msbuild>

Which should be equivalent to "msbuild [SOLUTION].sln", which should be equivalent to "Rebuild solution" in VS 2012.

I'll get back to you once I've had the time to read all the articles and compare them to our build script, configuration etc.

Re: Licensing issues on a build server (error LC0004)

Posted: Tue Apr 23, 2013 10:59 am
by 10050769
Hello Robert,

Thanks for information. We wait your answer.

Thanks,