. I have a windows service which runs every 5 minutes and queries SalesForce. It works most of the time but more and more often I am getting the above error throughout the day.Could not establish secure channel for SSL/TLS with authority 'login.salesforce.com'
Here is the stack trace:
Here is my connection string:at System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
at System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext context, ObjectParameterCollection parameterValues)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__6()
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
at System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
Thank you<add name="SalesForceConnection" connectionString="metadata=res://*/SalesForceDataModel.csdl
 |res://*/SalesForceDataModel.ssdl
 |res://*/SalesForceDataModel.msl;
 provider=Devart.Data.Salesforce;
 provider connection string="User Id=[email protected];Password=ssssss;Security Token=9999999999;Client Id=AFG.RemarketingService;Persist Security Info=True;Host=login.salesforce.com;Data Cache=1.db;Metadata Cache=1_metadata.db;"" providerName="System.Data.EntityClient"/>
Bruce