Remoting in 2.4 is broken. You need Mono fromn SVN... :-( I hope thy release 2.5 soon...
regards, Daniel 2009/6/1 Symon Rottem <[email protected]>: > Thanks. > > I've updated to 2.4 but now I get another exception: > >> [CCNet Server:ERROR] INTERNAL ERROR: Configuration file >> '/srv/data/downloads/ccnet/server/ccnet.exe.config' could not be loaded: An >> exception was thrown by the type initializer for System.Net.Sockets.Socket >> ---------- >> System.Runtime.Remoting.RemotingException: Configuration file >> '/srv/data/downloads/ccnet/server/ccnet.exe.config' could not be loaded: An >> exception was thrown by the type initializer for System.Net.Sockets.Socket >> ---> System.TypeInitializationException: An exception was thrown by the type >> initializer for System.Net.Sockets.Socket ---> System.InvalidCastException: >> Cannot cast from source type to destination type. >> at System.Net.Sockets.Socket.CheckProtocolSupport () [0x00000] >> at System.Net.Sockets.Socket..cctor () [0x00000] >> --- End of inner exception stack trace --- >> at (wrapper managed-to-native) System.Net.Dns:GetHostByName_internal >> (string,string&,string[]&,string[]&) >> at System.Net.Dns.GetHostByName (System.String hostName) [0x00000] >> at System.Net.Dns.Resolve (System.String hostName) [0x00000] >> at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.Init >> (IServerChannelSinkProvider serverSinkProvider) [0x00000] >> at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor >> (IDictionary properties, IServerChannelSinkProvider sinkProvider) [0x00000] >> at System.Runtime.Remoting.Channels.Tcp.TcpChannel.Init (IDictionary >> properties, IClientChannelSinkProvider clientSink, >> IServerChannelSinkProvider serverSink) [0x00000] >> at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor (IDictionary >> properties, IClientChannelSinkProvider clientSinkProvider, >> IServerChannelSinkProvider serverSinkProvider) [0x00000] >> at (wrapper managed-to-native) >> System.Reflection.MonoCMethod:InternalInvoke >> (object,object[],System.Exception&) >> at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags >> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, >> System.Globalization.CultureInfo culture) [0x00000] >> --- End of inner exception stack trace --- >> at System.Runtime.Remoting.RemotingConfiguration.ReadConfigFile >> (System.String filename) [0x00000] >> at System.Runtime.Remoting.RemotingConfiguration.Configure >> (System.String filename, Boolean ensureSecurity) [0x00000] >> at ThoughtWorks.CruiseControl.Core.RemoteCruiseServer..ctor >> (ICruiseServer server, System.String remotingConfigurationFile) [0x00000] >> at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote >> (System.String configFile) [0x00000] >> at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create (Boolean >> remote, System.String configFile) [0x00000] >> at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer () >> [0x00000] >> at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run () [0x00000] >> at ThoughtWorks.CruiseControl.Console.AppRunner.Run (System.String[] >> args) [0x00000] >> ---------- > > Any further thoughts? It looks like it's remoting related, but again I'm a > but lost. > > Cheers, > > Symon. > > Symon Rottem > http://blog.symbiotic-development.com > > > On Mon, Jun 1, 2009 at 9:27 AM, Leszek Ciesielski <[email protected]> wrote: >> >> Mono 2.0 is most likely your problem. Try 2.4. >> >> On Mon, Jun 1, 2009 at 7:50 AM, Ruben Willems <[email protected]> >> wrote: >> > Hi >> > >> > this must indeed be a MONO item, because the same config runs fine on >> > windows. >> > so, this will be for Dna I guess .... >> > >> > with kind regards >> > Ruben Willems >> > >> > On Mon, Jun 1, 2009 at 12:19 AM, Symon Rottem <[email protected]> >> > wrote: >> >> >> >> I've been trying to get up an running under Ubuntu 8.04 and have been >> >> having some trouble. I've installed Mono 2.0 and can get ccnet.exe to >> >> run with a super-basic config (<project name="test"/>) but it seems to >> >> choke when I add anything more sophisticated. >> >> >> >> For example, I added the following labeller block: >> >> >> >> <labeller type="defaultlabeller"> >> >> <prefix>1.0.</prefix> >> >> <labelFormat>000</labelFormat> >> >> </labeller> >> >> >> >> This causes the executable to fail with the following stack trace: >> >> >> >> [CCNet Server:ERROR] Exception: >> >> Unable to instantiate CruiseControl projects from configuration >> >> document. >> >> Configuration document is likely missing Xml nodes required for >> >> properly populating CruiseControl configuration. >> >> Type with NetReflector name "" does not exist. The name may be >> >> incorrect or the assembly containing the type might not be loaded. >> >> Xml: <labeller type=""><prefix></prefix><labelFormat></labelFormat></ >> >> labeller> >> >> Conflicting project data : <project >> >> name=""><triggers><intervalTrigger></intervalTrigger></ >> >> triggers><sourcecontrol type=""><trunkUrl></trunkUrl></ >> >> sourcecontrol><labeller type=""><prefix></prefix><labelFormat></ >> >> labelFormat></labeller><nant></nant></project> >> >> ---------- >> >> ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: >> >> Unable to instantiate CruiseControl projects from configuration >> >> document. >> >> Configuration document is likely missing Xml nodes required for >> >> properly populating CruiseControl configuration. >> >> Type with NetReflector name "" does not exist. The name may be >> >> incorrect or the assembly containing the type might not be loaded. >> >> Xml: <labeller type=""><prefix></prefix><labelFormat></labelFormat></ >> >> labeller> >> >> Conflicting project data : <project >> >> name=""><triggers><intervalTrigger></intervalTrigger></ >> >> triggers><sourcecontrol type=""><trunkUrl></trunkUrl></ >> >> sourcecontrol><labeller type=""><prefix></prefix><labelFormat></ >> >> labelFormat></labeller><nant></nant></project> ---> >> >> Exortech.NetReflector.NetReflectorException: Type with NetReflector >> >> name "" does not exist. The name may be incorrect or the assembly >> >> containing the type might not be loaded. >> >> Xml: <labeller type=""><prefix></prefix><labelFormat></labelFormat></ >> >> labeller> >> >> at Exortech.NetReflector.XmlMemberSerialiser.GetTargetType >> >> (System.Xml.XmlNode childNode, >> >> Exortech.NetReflector.NetReflectorTypeTable table) [0x00000] >> >> at Exortech.NetReflector.XmlMemberSerialiser.Read >> >> (System.Xml.XmlNode node, Exortech.NetReflector.NetReflectorTypeTable >> >> table) [0x00000] >> >> at Exortech.NetReflector.XmlTypeSerialiser.ReadMembers >> >> (System.Xml.XmlNode node, System.Object instance, >> >> Exortech.NetReflector.NetReflectorTypeTable table) [0x00000] >> >> at Exortech.NetReflector.XmlTypeSerialiser.Read (System.Xml.XmlNode >> >> node, Exortech.NetReflector.NetReflectorTypeTable table) [0x00000] >> >> at Exortech.NetReflector.NetReflectorReader.Read (System.Xml.XmlNode >> >> node) [0x00000] >> >> at >> >> >> >> >> >> ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader.Read >> >> (System.Xml.XmlDocument document) [0x00000] --- End of inner exception >> >> stack trace --- >> >> >> >> at >> >> >> >> >> >> ThoughtWorks.CruiseControl.Core.Config.NetReflectorConfigurationReader.Read >> >> (System.Xml.XmlDocument document) [0x00000] >> >> at >> >> >> >> >> >> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.PopulateProjectsFromXml >> >> (System.Xml.XmlDocument configXml) [0x00000] >> >> at >> >> >> >> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Load >> >> (System.IO.FileInfo configFile) [0x00000] >> >> at >> >> ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService.Load >> >> () [0x00000] >> >> at >> >> >> >> >> >> ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.Load >> >> () [0x00000] >> >> at >> >> ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService.Load >> >> () [0x00000] >> >> at ThoughtWorks.CruiseControl.Core.CruiseServer..ctor >> >> (IConfigurationService configurationService, >> >> IProjectIntegratorListFactory projectIntegratorListFactory, >> >> IProjectSerializer projectSerializer, IProjectStateManager >> >> stateManager, System.Collections.Generic.List`1 extensionList) >> >> [0x00000] >> >> at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateLocal >> >> (System.String configFile) [0x00000] >> >> at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote >> >> (System.String configFile) [0x00000] >> >> at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create >> >> (Boolean remote, System.String configFile) [0x00000] >> >> at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer () >> >> [0x00000] >> >> at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run () [0x00000] >> >> at ThoughtWorks.CruiseControl.Console.AppRunner.Run (System.String[] >> >> args) [0x00000] >> >> ---------- >> >> >> >> An unexpected error has caused the console to crash, please press any >> >> key to continue... >> >> >> >> The same problem happens if I remove the labeller block and add a >> >> sourcecontrol block with type="svn". I'm guessing something is going >> >> wrong with NetReflector during validation, but I'm stumped as to how >> >> to address it. >> >> >> >> Little help? >> >> >> >> Cheers, >> >> >> >> Symon. >> >> >> >> >> >> >> > >> > > >
