Windows server 2003x64 and Deployment Manager Agent
oleg_sh
Posts: 4
Hello, Dear colleagues, help to deal with a problem.
I downloaded the last Deployment Manager version.
I installed the Agent on Windows 2003 x64. The service after start stops. Windows Management Framework, .NET Framework 4.0, PowerShell 2.0 and IIS 6.0 was installed.
Event Viewer:
After start service:
At Agent Tools start
At Deployment Manager Tools.exe start
I downloaded the last Deployment Manager version.
I installed the Agent on Windows 2003 x64. The service after start stops. Windows Management Framework, .NET Framework 4.0, PowerShell 2.0 and IIS 6.0 was installed.
Event Viewer:
After start service:
2014-03-03 16:41:42,390 [5] WARN RedGate.Deploy.Startup [(null)] - Tried to load C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll as potential plugin, but failed. System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll' or one of its dependencies. The module was expected to contain an assembly manifest. File name: 'file:///C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at RedGate.Deploy.Agent.Plugins.PluginsModule.GetPotentialPluginAssemblies() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 2014-03-03 16:41:45,656 [9] ERROR RedGate.Deploy.Shared.Startup.Host [(null)] - System.Security.Cryptography.CryptographicException: Object already exists. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._ExportCertificatesToBlob(SafeCertStoreHandle safeCertStoreHandle, X509ContentType contentType, IntPtr password) at System.Security.Cryptography.X509Certificates.X509Certificate.ExportHelper(X509ContentType contentType, Object password) at System.Security.Cryptography.X509Certificates.X509Certificate.Export(X509ContentType contentType) at RedGate.Deploy.Shared.Security.CertificateEncoder.ToBase64String(X509Certificate2 certificate, X509ContentType exportType) at RedGate.Deploy.Shared.Configuration.AgentConfiguration.set_AgentCertificate(X509Certificate2 value) at RedGate.Deploy.Shared.Configuration.AgentConfiguration.GenerateNewCertificate() at RedGate.Deploy.Shared.Configuration.AgentConfiguration.get_AgentCertificate() at RedGate.Deploy.Agent.Services.AgentServiceHostStarter.SetupCredentials(ServiceHost host) at RedGate.Deploy.Shared.Services.ServiceHostStarter.LaunchServiceHost(Uri address, ServiceMetadata service) at RedGate.Deploy.Shared.Services.ServiceHostStarter.Start() at RedGate.Deploy.Agent.Commands.RunAgentCommand.Start() at RedGate.Deploy.Shared.Startup.WindowsServiceHost.RunService() For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. EventType clr20r3, P1 redgate.deploy.agent.exe, P2 2.4.4.5, P3 530e1475, P4 mscorlib, P5 4.0.0.0, P6 517a1c71, P7 5b3f, P8 6, P9 udta330idobh2roz2ayvlcelag5agtls, P10 NIL. Application: RedGate.Deploy.Agent.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Security.Cryptography.CryptographicException Stack: at RedGate.Deploy.Shared.Startup.WindowsServiceHost.RunService() at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
At Agent Tools start
2014-03-03 16:49:03,562 [1] FATAL RedGate.Deploy.Tools.Infrastructure.UnhandledErrorTrapper [(null)] - Could not start Deployment Manager tools. Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(RedGate.Deploy.Shared.Configuration.IMutableAgentConfiguration)' on type 'SecurityTabViewModel'. ---> System.Security.Cryptography.CryptographicException: Object already exists. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.X509Certificates.X509Utils._ExportCertificatesToBlob(SafeCertStoreHandle safeCertStoreHandle, X509ContentType contentType, IntPtr password) at System.Security.Cryptography.X509Certificates.X509Certificate.ExportHelper(X509ContentType contentType, Object password) at RedGate.Deploy.Shared.Security.CertificateEncoder.ToBase64String(X509Certificate2 certificate, X509ContentType exportType) at RedGate.Deploy.Shared.Configuration.AgentConfiguration.set_AgentCertificate(X509Certificate2 value) at RedGate.Deploy.Shared.Configuration.AgentConfiguration.GenerateNewCertificate() at RedGate.Deploy.Shared.Configuration.AgentConfiguration.get_AgentCertificate() at RedGate.Deploy.Tools.Views.AgentTabs.SecurityTabViewModel..ctor(IMutableAgentConfiguration agentConfiguration) at lambda_method(Closure , Object[] ) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() --- End of inner exception stack trace --- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at RedGate.Deploy.Tools.Views.AgentModule.CreateShell(IComponentContext container) at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p) at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters) at RedGate.Deploy.Tools.App.OnStartup(StartupEventArgs e) at System.Windows.Application.<.ctor>b__1(Object unused) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
At Deployment Manager Tools.exe start
2014-03-03 16:49:56,671 [5] WARN RedGate.Deploy.Startup [(null)] - Tried to load C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll as potential plugin, but failed. System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll' or one of its dependencies. The module was expected to contain an assembly manifest. File name: 'file:///C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at RedGate.Deploy.Agent.Plugins.PluginsModule.GetPotentialPluginAssemblies() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Comments
Can you check the agent account has full control to “Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\ Machine Keysâ€
Redgate Software
Redgate Software
Our DM server is still on 2.4.8.34 (8 April 2014). If yesterday's patch had an agent update, then we're not on the *very* latest version, but it's certainly close. (The agent installer was freshly downloaded from the DM server before installing.)
Redgate Software
That worked OK, and they could add the agent. Once done, they could upgrade to the latest release OK.
I'll let the development team know this still seems to be a problem in the meantime.
Redgate Software
1) Install the old Agent MSI.
2) Run the Agent Tools to add the DM server key, and get the agent key.
3) Upgrade the Agent to the newest version via MSI.
(Upgrading from the DM web failed: "System.ServiceModel.Security.SecurityNegotiationException: The remote agent 'XXX' rejected a connection from this Deployment Manager server. This happens when the Agent does not have the key of this Deployment Manager in its trusted Deployment Manager list. Please run the Programs->Agent Tools application on the remote machine, and verify that an entry for 'XXX' exists in the list of Trusted Deployment Manager Servers.")
4) Add the Agent to DM and deploy as normal.
Thanks again for your assistance!
Post back if you continue to have trouble.
Redgate Software
Just to let you know, we have stumbled upon this problem as well at Skyscanner.
It didn't keep us from doing successful deployments so we just ignored it but it would be nice to have a better understanding of this so we know the implications and how to fix it.
I'll get back once I did some investigation on this and may have some questions about it.
Cheers,
Balint
If that's not the case for you, post back though!
Redgate Software
We are using Windows 2008 for the RGDM server and still seem to have this problem.
Updating can be an option as we might be behind by several releases.
I will come back to you in a week or so to let you know what are the results of my investigation.
Cheers,
Balint
Redgate Software
I have just had the same problem on a 2k3 64bit machine.
Unfortunately it is a production box with restricted access so it's not a great place for for guessing or finger crossing.
We would really appreciate some help.
Can you confirm the version of the agent installed on the machine in question? You can find that by looking in Control Panel/Uninstall or change a program for the version of Deployment Agent (publisher Red Gate Software Ltd.), or by looking at the file properties of C:\Program Files (x86)\Red Gate\Deployment Agent\Agent\RedGate.Deploy.Agent.exe).
If you have version 2.4.12.1 installed and you're still having problems, please could you restart the service Red Gate Deployment Agent, and then look in the Windows Event Viewer for any errors or warnings from the Deployment Agent.
Redgate Software
The deployment agent version is 2.4.10.68 so I believe this is the problem. How can I upgrade?
You would then normally be able to automatically update the agents from the Deployment Manager web interface, but unfortunately that doesn't work when the Agent service isn't running. Instead, you'll need to perform a manual upgrade of the agent. You can simply get the agent installer .msi from the Tools page of your own Deployment Manager server (http://{your_deployment_manager_server_address}:{port}/downloads/agentinstaller) and run it on the machine in question.
I hope that helps.
Redgate Software
Thanks very much.
We fixed this bug in version 2.4.12.1, so fresh installations will now work correctly.
Redgate Software
I'm sorry to say that it doesn't seem to be resolved. I'm having the same problem on a 2003 x86. And I'm using version 2.4.12.1 also tried a few earlier versions.
Any tips on how to get it working? I have two 2003 x86 I need to deploy something on using Deployment Manager
Redgate Software
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1026
Date: 03-07-2014
Time: 10:16:39
User: N/A
Description:
Application: RedGate.Deploy.Agent.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Security.Cryptography.CryptographicException
Stack:
at RedGate.Deploy.Shared.Startup.WindowsServiceHost.RunService()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Event Type: Warning
Event Source: Red Gate Deployment Agent
Event Category: None
Event ID: 0
Date: 03-07-2014
Time: 10:15:52
User: N/A
Description:
2014-07-03 10:15:40,921 [5] WARN RedGate.Deploy.Startup [(null)] - Tried to load C:\Program Files\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll as potential plugin, but failed.
System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
File name: 'file:///C:\Program Files\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at RedGate.Deploy.Agent.Plugins.PluginsModule.GetPotentialPluginAssemblies()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Using the local administrator account - no change
When I start Agent Tools, I get the following error:
Could not start Deployment Manager tools: An exception was thrown while invoking the constructore 'Void .ctor(RedGate.Deploy.Shared.IMutableAgentConfiguration)' on type 'Security TabViewModel'
Could you run the following from an administrative command prompt, and post the output here?
Thanks
Redgate Software
eploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll as potential plugin, but
failed.
System.BadImageFormatException: Could not load file or assembly 'file:///C:\Prog
ram Files\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPack
age.AgentPlugin\SQLite.Interop.dll' or one of its dependencies. The module was e
xpected to contain an assembly manifest.
File name: 'file:///C:\Program Files\Red Gate\Deployment Agent\Agent\Plugins\Red
Gate.Deploy.SqlServerDbPackage.AgentPlugin\SQLite.Interop.dll'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod
eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppre
ssSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String code
Base, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& s
tackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppres
sSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as
semblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntr
ospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Ev
idence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm,
Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackM
ark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at RedGate.Deploy.Agent.Plugins.PluginsModule.GetPotentialPluginAssemblies()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].
Deployment Agent version 2.4.8.34
- RedGate.Deploy.Agent
Detected plugin IConvention RedGate.Deploy.SqlServerDbPackage.AgentPlugin.DbPack
ageConvention, RedGate.Deploy.SqlServerDbPackage.AgentPlugin, Version=0.0.2.1816
, Culture=neutral, PublicKeyToken=7f465a1c156d4d57 (loaded from C:\Program Files
\Red Gate\Deployment Agent\Agent\Plugins\RedGate.Deploy.SqlServerDbPackage.Agent
Plugin\RedGate.Deploy.SqlServerDbPackage.AgentPlugin.dll)
Started job queue
System.Security.Cryptography.CryptographicException: Object already exists.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicExce
ption(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils._ExportCertificate
sToBlob(SafeCertStoreHandle safeCertStoreHandle, X509ContentType contentType, In
tPtr password)
at System.Security.Cryptography.X509Certificates.X509Certificate.ExportHelper
(X509ContentType contentType, Object password)
at System.Security.Cryptography.X509Certificates.X509Certificate.Export(X509C
ontentType contentType)
at RedGate.Deploy.Shared.Security.CertificateEncoder.ToBase64String(X509Certi
ficate2 certificate, X509ContentType exportType)
at RedGate.Deploy.Shared.Configuration.AgentConfiguration.set_AgentCertificat
e(X509Certificate2 value)
at RedGate.Deploy.Shared.Configuration.AgentConfiguration.GenerateNewCertific
ate()
at RedGate.Deploy.Shared.Configuration.AgentConfiguration.get_AgentCertificat
e()
at RedGate.Deploy.Agent.Services.AgentServiceHostStarter.SetupCredentials(Ser
viceHost host)
at RedGate.Deploy.Shared.Services.ServiceHostStarter.LaunchServiceHost(Uri ad
dress, ServiceMetadata service)
at RedGate.Deploy.Shared.Services.ServiceHostStarter.Start()
at RedGate.Deploy.Agent.Commands.RunAgentCommand.Start()
at RedGate.Deploy.Shared.Startup.Host.InternalRunConsole(Action execute, Acti
on shutdown)
Command RedGate.Deploy.Agent.Commands.RunAgentCommand failed
System.Security.Cryptography.CryptographicException: Object already exists.
Server stack trace:
at System.Security.Cryptography.CryptographicException.ThrowCryptographicExce
ption(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils._ExportCertificate
sToBlob(SafeCertStoreHandle safeCertStoreHandle, X509ContentType contentType, In
tPtr password)
at System.Security.Cryptography.X509Certificates.X509Certificate.ExportHelper
(X509ContentType contentType, Object password)
at System.Security.Cryptography.X509Certificates.X509Certificate.Export(X509C
ontentType contentType)
at RedGate.Deploy.Shared.Security.CertificateEncoder.ToBase64String(X509Certi
ficate2 certificate, X509ContentType exportType)
at RedGate.Deploy.Shared.Configuration.AgentConfiguration.set_AgentCertificat
e(X509Certificate2 value)
at RedGate.Deploy.Shared.Configuration.AgentConfiguration.GenerateNewCertific
ate()
at RedGate.Deploy.Shared.Configuration.AgentConfiguration.get_AgentCertificat
e()
at RedGate.Deploy.Agent.Services.AgentServiceHostStarter.SetupCredentials(Ser
viceHost host)
at RedGate.Deploy.Shared.Services.ServiceHostStarter.LaunchServiceHost(Uri ad
dress, ServiceMetadata service)
at RedGate.Deploy.Shared.Services.ServiceHostStarter.Start()
at RedGate.Deploy.Agent.Commands.RunAgentCommand.Start()
at RedGate.Deploy.Shared.Startup.Host.InternalRunConsole(Action execute, Acti
on shutdown)
Exception rethrown at [0]:
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at RedGate.Deploy.Shared.Startup.CommandProcessor.<ProcessAsync>d__4.MoveNext
()
Scheduler disposed.
Exited job queue