1

Resolved

Plugin prevents ccnet starting: Unable to load types from assembly CCNet.Conditional.Plugin

description

After copying the plugin to the server directory it is not possible to start ccnet. See trace below.
 
2010-04-22 09:38:43,795 [10:INFO] CruiseControl.NET Server 1.5.6804.1 -- .NET Continuous Integration Server
2010-04-22 09:38:43,795 [10:INFO] Copyright © 2003 - 2010 ThoughtWorks Inc. All Rights Reserved.
2010-04-22 09:38:43,795 [10:INFO] .NET Runtime Version: 2.0.50727.3603 Image Runtime Version: v2.0.50727
2010-04-22 09:38:43,795 [10:INFO] OS Version: Microsoft Windows NT 6.0.6001 Service Pack 1 Server locale: English (United States)
2010-04-22 09:38:43,795 [10:INFO] Reason: File change delay finished
2010-04-22 09:38:44,623 [10:ERROR] A fatal error occurred while starting the CruiseControl.NET server
2010-04-22 09:38:44,749 [10:ERROR] INTERNAL ERROR: Unable to load types from assembly CCNet.Conditional.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null:
Failed to load 1 of the 17 types defined in the assembly.
Exceptions:
  • Unable to load type: CCNet.Conditional.Plugin.GeneralTaskResult

Exception: System.TypeLoadException: Method 'CheckIfSuccess' in type 'CCNet.Conditional.Plugin.GeneralTaskResult' from assembly 'CCNet.Conditional.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Exortech.NetReflector.NetReflectorTypeLoadException: Unable to load types from assembly CCNet.Conditional.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null:
Failed to load 1 of the 17 types defined in the assembly.
Exceptions:
  • Unable to load type: CCNet.Conditional.Plugin.GeneralTaskResult
    Exception: System.TypeLoadException: Method 'CheckIfSuccess' in type 'CCNet.Conditional.Plugin.GeneralTaskResult' from assembly 'CCNet.Conditional.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
    at Exortech.NetReflector.NetReflectorTypeTable.GetTypes(Assembly assembly)
    at Exortech.NetReflector.NetReflectorTypeTable.Add(Assembly assembly)
    at Exortech.NetReflector.NetReflectorTypeTable.Add(String assemblyFilename)
    at Exortech.NetReflector.NetReflectorTypeTable.Add(String path, String searchPattern)
    at ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader..ctor()
    at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.NewConfigurationService(String configFile)
    at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateLocal(String configFile)
    at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote(String configFile)
    at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean remote, String configFile)
    at ThoughtWorks.CruiseControl.Service.AppRunner.CreateAndStartCruiseServer()

at ThoughtWorks.CruiseControl.Service.AppRunner.Run(String action, Boolean usesShadowCopying)

 
2010-04-22 09:44:28,887 [13:INFO] Stopping service: Service is stopped

comments

LasseSjorup wrote May 4, 2010 at 11:30 AM

Working on compiling the component to run against ccnet 1.5

wrote May 16, 2010 at 10:10 PM

zette wrote May 26, 2010 at 1:55 PM

Hi,
i tried the last version of the plug'in but I got always the same error than Beakster. The version of dll is "1.0.0.0" and I use CCNET version "1.5.7256.1".

smileyofoz wrote Jun 29, 2010 at 6:46 PM

Hello Lasse, it seems the May 16 download contains a file that is older than the date on which this was identified as an issue - back in 2009. Can you please provide a download zip that contains the fix? Thanks!

wrote Feb 13, 2013 at 6:17 PM

wrote May 15, 2013 at 3:17 AM

wrote May 15, 2013 at 3:17 AM

wrote Jun 14, 2013 at 6:54 AM