# Management Service - Can't establish connection

**URL:** https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078
**Category:** Bugs
**Created:** [March 17, 2009, 7:26am UTC](https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078 "2009-03-17T07:26:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [March 17, 2009, 7:26am UTC](https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078/1 "2009-03-17T07:26:04Z")

</div>

I just installed a new build of FinalBuilder Server 6.2.0.651. I first uninstalled the previous version. During installation I opted to not install the management service since I was using the remoting to connect to a service on another machine. I have tried to apply the hostname of the management server on the remoting tab, but I’m still getting the follow error. (Looks like it’s still trying to connect locally.)   
  
 Additional Information:   
  
 Exception: SocketException   
 Source: mscorlib   
 Message:   
 No connection could be made because the target machine actively refused it 127.0.0.1:58006   
  
 Stacktrace:   
  
 Server stack trace:   
 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)   
 at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)   
 at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint)   
 at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()   
 at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)   
 at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)   
 at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)   
 at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)   
  
 Exception rethrown at [0]:   
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   
 at VSoftTechnologies.FinalBuilderServer.Management.Remoting.IUsersRemotingObj.HasExceededLicenseLimit()   
 at VSoftTechnologies.FinalBuilderServer.Web.MasterPage.CreateLicenseBanner()   
 at VSoftTechnologies.FinalBuilderServer.Web.MasterPage.Page\_Load(Object sender, EventArgs e)   
 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)   
 at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)   
 at System.Web.UI.Control.OnLoad(EventArgs e)   
 at System.Web.UI.Control.LoadRecursive()   
 at System.Web.UI.Control.LoadRecursive()   
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [March 18, 2009, 1:13am UTC](https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078/2 "2009-03-18T01:13:48Z")

</div>

Ok very bizarre, it seems to have fixed itself. I haven’t even rebooted the machine and it seems to be connecting properly now. That is really bizarre.

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [March 18, 2009, 1:15am UTC](https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078/3 "2009-03-18T01:15:18Z")

</div>

Hmm, seems to be another error now though:   
  
 FinalBuilder Server Application Error   
  
 Send Bug Report Save Bug Report   
 Unhandled Exception   
  
 Error: Could not load file or assembly ‘FinalBuilderServer.Management.Core, Version=6.2.0.651, Culture=neutral, PublicKeyToken=967c9e56c317d990’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)   
  
 Hide Stack Trace   
  
 Server stack trace:   
 at System.Reflection.Assembly.\_nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)   
 at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)   
 at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)   
 at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)   
 at System.Reflection.Assembly.Load(String assemblyString)   
 at System.UnitySerializationHolder.GetRealObject(StreamingContext context)   
 at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder)   
 at System.Runtime.Serialization.ObjectManager.DoFixups()   
 at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, \_\_BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)   
 at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)   
 at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)   
 at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)   
  
 Exception rethrown at [0]:   
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   
 at VSoftTechnologies.FinalBuilderServer.Management.Remoting.IAuthorizationRemotingObj.HasPermission(ClientAuthentication authentication, Permission[] permissions)   
 at VSoftTechnologies.FinalBuilderServer.Web.Classes.CommonPage.OnLoad(EventArgs e)   
 at VSoftTechnologies.FinalBuilderServer.Web.Classes.ProjectPage.OnLoad(EventArgs e)   
 at System.Web.UI.Control.LoadRecursive()   
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [March 18, 2009, 1:29am UTC](https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078/4 "2009-03-18T01:29:08Z")

</div>

Hi Nelson,   
  
 Make sure that you have the same version of FinalBuilder Server on both machines, that is the machine hosting the build service & website and the machine hosting the management service. You’ll also need to run ‘iisreset’ on the build machine once you’ve updated the management service.   
  
 Regards,   
 Paul.

---

<div class="post-metadata">

### Author: ![nelsonwolf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/b9e5f3/32.png) [@nelsonwolf](https://www.finalbuilder.com/forums/u/nelsonwolf)
#### Post date: [March 18, 2009, 1:36am UTC](https://www.finalbuilder.com/forums/t/management-service-cant-establish-connection/3078/5 "2009-03-18T01:36:17Z")

</div>

I see. I guess I’ll have to install the management server on this machine. We have an increasing number of build servers (thanks in part to the ubiquity of virtual machines) and I would prefer to test out new builds before rolling them out to all servers.
