Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
TeamCity
posted

We've set up a TeamCity integration server and installed the Infragistics controls into the server's GAC but we still have a problem where the build hangs.

One oddity that really shouldn't matter is that the references are incorrect in that we develop on XP (x86) but the server is built on Vista (x64). Looking at the log messages below that seems to be picked up okay.

I suspect the licensing is hanging. Any ideas?

[09:53:23]: Starting build process in C:\TeamCity\buildAgent\work\cc40425248cb0869
[09:53:27]: Project "PositionMonitor2.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_6247dd6bb489428fa34ac9f617789729 target(s)):
[09:53:28]:  [Project "PositionMonitor2.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_6247dd6bb489428fa34ac9f617789729 target(s)):] Project "PositionMonitor2.sln" (default targets):
[09:53:28]:   [Project "PositionMonitor2.sln" (default targets):] Building solution configuration "Debug|Any CPU".
[09:53:28]:   [Project "PositionMonitor2.sln" (default targets):] Project "PositionMonitor2.csproj" (default targets):
[09:53:28]:    [Project "PositionMonitor2.csproj" (default targets):] Processing 0 EDMX files.
[09:53:28]:    [Project "PositionMonitor2.csproj" (default targets):] Finished processing 0 EDMX files.
[09:53:29]:    [Project "PositionMonitor2.csproj" (default targets):] No resources are out of date with respect to their source files. Skipping resource generation.
[09:53:29]:    [Project "PositionMonitor2.csproj" (default targets):] C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\LC.exe /target:PositionMonitor2.exe /complist:Properties\licenses.licx /outdir:obj\Debug\ /i:"..\lib\Dot Net TLL.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Shared.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.Misc.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinChart.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinDataSource.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinDock.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinEditors.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinGrid.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTabbedMdi.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinToolbars.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTree.v8.3.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.v8.3.dll" /i:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /i:"c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinStatusBar.v8.3.dll" /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /i:"C:\Program Files (x86)\Infragistics\NetAdvantage for .NET 2008 Vol. 3 CLR 2.0\Windows Forms\Bin\Infragistics2.Win.UltraWinTabControl.v8.3.dll" /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Runtime.Serialization.Formatters.Soap.dll /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /i:C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.dll

The thread dump reveals the following:

3/3/2009 2:27:17 PM

Stack trace depth is set to show all frames

Thread id=5732 priority=11 state=Wait reason=UserRequest

Thread id=5896 priority=10 state=Wait reason=UserRequest
   at [Internal thisFrame, 'M-->U', System.Windows.Forms.SafeNativeMethods::MessageBox]
   at System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window owner, System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defaultButton, System.Windows.Forms.MessageBoxOptions options, System.Boolean showHelp)
   at System.Windows.Forms.MessageBox.Show(System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon)
   at Infragistics.Shared.UltraProductInfo.DisplayPrompt()
   at Infragistics.Shared.UltraLicenseProvider.GetDesignTimeLicense(System.Type type, System.Object instance, System.Boolean allowExceptions, Infragistics.Shared.UltraLicenseBaseAttribute licenseAttribute)
   at Infragistics.Shared.UltraLicenseProvider.GetLicense(System.ComponentModel.LicenseContext context, System.Type type, System.Object instance, System.Boolean allowExceptions)
   at System.ComponentModel.LicenseManager.ValidateInternalRecursive(System.ComponentModel.LicenseContext context, System.Type type, System.Object instance, System.Boolean allowExceptions, System.ComponentModel.License license, System.String licenseKey)
   at System.ComponentModel.LicenseManager.Validate(System.Type type, System.Object instance)
   at Infragistics.Win.UltraWinDataSource.UltraDataSource..ctor()
   at System.RuntimeType.CreateInstanceSlow(System.Boolean publicOnly, System.Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(System.Boolean publicOnly, System.Boolean skipVisibilityChecks, System.Boolean fillCache)
   at System.Activator.CreateInstance(System.Type type, System.Boolean nonPublic)
   at System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object args, System.Globalization.CultureInfo culture, System.Object activationAttributes)
   at System.SecurityUtils.SecureCreateInstance(System.Type type, System.Object args)
   at System.ComponentModel.LicenseManager.CreateWithContext(System.Type type, System.ComponentModel.LicenseContext creationContext, System.Object args)
   at System.Tools.LicenseCompiler.Main(System.String args)

It's not trying to throw up a licence box, is it?

Ah, yes, just checked with our SysAdmin and we don't have licences for Infragistics controls on the build server! There was a message in the Application Event Log:

A device or program has requested attention. Device or application: C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\x64\LC.exe. Message title: Infragistics NetAdvantage Win Client.

Parents
No Data
Reply
  • 50
    posted

    the problem is that you have your license.licx file included in your project and it's checked in with your source control.  Remove that and it should compile on TeamCity.

Children
No Data