Installation fails with a "Cannot connect to IIS with http and https!" error

  • 7002911
  • 03-Apr-2012
  • 25-Jul-2017

Environment

PlateSpin Migrate 9 .x, 11.x. 12.x

Situation

When attempting to install the PlateSpin Migrate server, the following error is seen:

Cannot connect to IIS with http and https!

A pop-up window also appears that points to the Migrate_CustomActions.log file.  Investigation of that file will show an error similar to the following:

Error: System.ApplicationException: Cannot connect to IIS with http and https! ---> System.Net.WebException: The request failed with HTTP status 403: Forbidden.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at PlateSpin.Soap.HttpClientWrapper.SoapHttpClientWrapper.Invoke(IExceptionHandler exceptionHandler, String methodName, Object[] parameters)
   at PlateSpin.Soap.HttpClientWrapper.SoapHttpClientWrapper.Invoke(String methodName, Object[] parameters)
   at PlateSpin.OperationsFramework.Sdk.Server.TestConnectionWebService.ConnectionSuccessful()
   at (Object , Object[] )
   at Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments)
   at Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint()
   at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
   at PlateSpin.OperationsFramework.RetryActionAdapter`2.DoWork()
   at PlateSpin.OperationsFramework.Sdk.Proxy.RetryOnSqlTimeout.Invoke(IMethodInvocation invocation)
   at Spring.Aop.Framework.AbstractMethodInvocation.Proceed()
   at Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors)
   at CompositionAopProxy_5d285ce1df4e458bae3151ecd7a039f8.ConnectionSuccessful()
   at PlateSpin.OperationsFramework.Sdk.WebServerHelpers.<.cctor>b__0(UriBuilder uri, CertificateWarnings certificateWarning1)
   at PlateSpin.OperationsFramework.Sdk.WebServerHelpers.tryConnection(TestConnectionHandler testHandler, Protocol prot, String serverAddress, String webDirectoryName, CertificateWarnings certificateWarning)
   at PlateSpin.OperationsFramework.Sdk.WebServerHelpers.OptimizerForDiscoverConnectionURL.discoverAndTestConnectionURL(String webDirectoryName, CertificateWarnings certificateWarning, String serverAddress)
   --- End of inner exception stack trace ---
   at PlateSpin.OperationsFramework.Sdk.WebServerHelpers.OptimizerForDiscoverConnectionURL.discoverAndTestConnectionURL(String webDirectoryName, CertificateWarnings certificateWarning, String serverAddress)
   at PlateSpin.OperationsFramework.Sdk.WebServerHelpers.OptimizerForDiscoverConnectionURL.get_URL()
   at PlateSpin.OperationsFramework.Install.ProjectInstaller.Install(IDictionary state)
Error: Cannot connect to IIS with http and https!

Resolution

To resolve this issue, make sure the NTFS permissions are set as per the recommendation in TID 7920718

Cause

This issue is caused by NETWORK SERVICE not having the appropriate access to the locations listed above, stopping it from seeing or modifying files as necessary