Столкнувшись с проблемой настройки cruiesecontrol.net с использованием .NET FW
I am facing problem to configure CruieseControl.Net with .Net FW using SVN
CruiseControl.NET Server 1.8.5.0 -- .NET Continuous Integration Server Copyright c 2003 - 2014 ThoughtWorks Inc. All Rights Reserved. .NET Runtime Version: 2.0.50727.8762 Image Runtime Version: v2.0.50727 OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1 Server locale: en-US [1:DEBUG] The trace level is currently set to debug. This will cause CCNet to log at the most verbose level, which is useful for setting up or debugging the server. Once your server is running smoothly, we recommend changing this setting in C:\Program Files (x86)\CruiseControl.NET\server\ccnet.exe.Config to a lower level. [1:WARN] ! ! Tracing is enabled ! !It allows you to sent the developpers of CCNet very detailed information of the program flow. This setting should only be enabled if you want to report a bug with the extra information. When bug reporting is done, it is advised to set the trace setting off. Adjust the setting in C:\Program Files (x86)\CruiseControl.NET\server\ccnet.exe.Config [1:DEBUG] [FileChangedWatcher] Add config file 'ccnet.config' to file change watcher collection. [CCNet Server:INFO] Reading configuration file "C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config" [CCNet Server:DEBUG] [FileChangedWatcher] Add config file 'C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config' to file change watcher collection. [CCNet Server:WARN] Configuration does not have any version information - assuming the configuration is for version 1.8 [CCNet Server:DEBUG] MergeFilesTask: Add 'C:\CCNet\Test.xml' to 'Merge' file list. [CCNet Server:INFO] Log cache time set to 5 minutes [CCNet Server:ERROR] INTERNAL ERROR: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse) at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data) at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback) at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'. ---------- System.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permit ted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at System.Runtime.Remoting.Channels.ExclusiveTcpListener.Start(Boolean exclusiveAddressUse) at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data) at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(IDictionary properties, IServerChannelSinkProvider sinkProvider, IAuthorizeRemotingConnection authorizeCallback) at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData, Boolean ensureSecurity) at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity)'. at System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData, Boolean ensureSecurity) at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename, Boolean ensureSecurity) at ThoughtWorks.CruiseControl.Core.RemoteCruiseServer..ctor(ICruiseServer server, String remotingConfigurationFile, Boolean disableRemoting) at ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean remote, String configFile) at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer() at ThoughtWorks.CruiseControl.Console.AppRunner.Run(String[] args, Boolean usesShadowCopying) ---------- An unexpected error has caused the console to crash, please press any key to continue...
Что я уже пробовал:
Конфигурационный файл CCNet...
<cruisecontrol xmlns:cb="urn:ccnet.config.builder"> <project name="EbixEncryptionPOC"> <!--Mention you name of project directory location here --> <workingDirectory>C:\CCNet\BuildArtifacts\EbixEncryptionPOC\</workingDirectory> <!--for reports and logs--> <artifactDirectory>C:\CCNet\BuildArtifacts</artifactDirectory> <!--Url for the web dashboard of cruise control--> <webURL>http://localhost:81/ccnet</webURL> <triggers> <!-- Give trigger sepcification when the build should kick off --> <intervalTrigger name="continuous" seconds="300" buildCondition="IfModificationExists" /> </triggers> <!-- Incremental label for your each build--> <labeller type="defaultlabeller"> <prefix>1.0.</prefix> <incrementOnFailure>false</incrementOnFailure> <labelFormat>0000</labelFormat> </labeller> <!-- configure your svn details--> <sourcecontrol type="svn"> <trunkUrl>http://192.168.1.20/svn/code_repos/01_ThePlacingPlatform/placing/branches/India/EbixEncryptionPOC/EbixEncryptionPOC</trunkUrl> <workingDirectory>C:\CCNet\BuildArtifacts\EbixEncryptionPOC\</workingDirectory> <executable>C:\Program Files\TortoiseSVN\bin\svn.exe</executable> <username>yraj0riya</username> <password>*******</password> <autoGetSource>true</autoGetSource> <tagOnSuccess>false</tagOnSuccess> <tagBaseUrl></tagBaseUrl> </sourcecontrol> <!-- setting up tasks for build your project--> <tasks> <msbuild> <executable>C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe</executable> <workingDirectory>C:\CCNet\BuildArtifacts\EbixEncryptionPOC\</workingDirectory> <projectFile>EbixEncryptionPOC.sln</projectFile> <buildArgs>/noconsolelogger /p:Configuration=Release /p:Platform="Any CPU" /v:diag </buildArgs> <targets>Build</targets> <timeout>600</timeout> <!-- Make sure to change the path based on your platform architecture (x86) or 64--> <logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger> </msbuild> <!-- <nunit> <path>C:\Program Files\NUnit 2.5.7\bin\net-2.0\nunit-console.exe</path> <assemblies> <assembly>D:\Compil\src\net-3.5\MyProject\trunk\Tester\Tester.exe</assembly> </assemblies> </nunit> --> </tasks> <!-- This is something you would only required if you want to merge multiple generated reports into one for e.g. your unit test reports--> <publishers> <merge> <files> <file>C:\CCNet\Test.xml</file> </files> </merge> <xmllogger /> <statistics/> </publishers> </project> </cruisecontrol>
Richard Deeming
Соответствующая часть сообщения об ошибке выглядит следующим образом:
Обычно разрешается только одно использование каждого адреса сокета (протокол/сетевой адрес/порт).
На первый взгляд, что-то еще уже использует порт 81 на вашем компьютере:
<webURL>http://localhost:81/ccnet</webURL>