Hi,
I have a Kentico based website. For this website I have set up self-generated development SSL certificate. And now after each website update on my test server the Kentico Scheduler can't run (I use Kentico Scheduled tasks - http://devnet.kentico.com/docs/devguide/index.html?scheduling_a_custom_code.htm . I didn't set up any additional service. It's just out of box Kentico application functionality). I see the following error in the
Event log:
Message: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Stack Trace:
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadData(Uri address)
at CMS.Scheduler.SchedulingHelper.RunSchedulerRequest(String url)
at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.ConnectStream.WriteHeaders(Boolean async)
REQUESTED URL: https://mywebsite.com/CMSPages/scheduler.aspx
Sometimes it's fixed by iisreset. But sometimes not. And it's interesting that I don't have this problem on my local machine - it works fine with self-generated development certificate.
The website is accessable from that server.
Could you please advice how I can fix this issue?
Also I see this warning in the Event log, maybe it could be helpful:
Event code: FULLTRUSTREQUEST
Event URL: /CMSModules/EventLog/EventLog.aspx
URL referrer: https://mywebsite.com/CMSSiteManager/administration/leftmenu.aspx
Description: Web farm notify watcher wasn't initialized. It is available only under full trust level.