an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > DotShoppingCart Suite > Key not valid for use in specified state
Last Post 8/16/2010 3:31:52 PM By lukezy. 1 replies.
8/16/2010 2:51:39 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Key not valid for use in specified state
Hey Luke,
 
I am getting this error on my test machine on the Orderpipeline service. Any Ideas please? It only shows up on the order pipeline.
 
Thanks
 
-D
 
Timestamp: 8/16/2010 9:52:48 PM
Message: Tracing to LogSource 'General' failed. Processing for other sources will continue. See summary information below for more information. Should this problem persist, stop the service and check the configuration file(s) for possible error(s) in the configuration of the categories and sinks.


Summary for Enterprise Library Distributor Service:
======================================
-->
Message:
Timestamp: 8/16/2010 9:52:45 PM
Message: HandlingInstanceID: 5bc41a14-e251-43a8-b84d-88caeb70f3d4
An exception of type 'System.Security.Cryptography.CryptographicException' occurred and was caught.
---------------------------------------------------------------------------------------------------
08/16/2010 17:52:45
Type : System.Security.Cryptography.CryptographicException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Key not valid for use in specified state.

Source : System.Security
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Byte[] Unprotect(Byte[], Byte[], System.Security.Cryptography.DataProtectionScope)
Stack Trace :    at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
   at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ProtectedKey.Unprotect()
   at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricCryptographer.Decrypt(Byte[] encryptedText)
   at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider.Decrypt(Byte[] ciphertext)
   at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext)
   at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64)
   at DotShoppingCart.Commercial.Core.CreditCard.LoadFromDataRow(DataRow row)
   at DotShoppingCart.Commercial.Base.RecordList`1..ctor(IEnumerable rows)
   at DotShoppingCart.Commercial.Base.RecordList`1..ctor(DataTable dt)
   at DotShoppingCart.Commercial.Core.CreditCard.Get(String host, Int32 creditCardId)
   at DotShoppingCart.Commercial.Core.CreditCard.CleanUp(String host, Int32 creditCardId)
   at DotShoppingCart.Commercial.Core.CreditCard.CleanUp(String host)
   at DotShoppingCart.Commercial.OrderPipeline.DailyCleanupTaskProvider.RunTask(String host, IConfigurationSource cfgSrc)
   at DotShoppingCart.Commercial.OrderPipeline.TaskProvider.Proccess(String host, IConfigurationSource cfgSrc)
   at DotShoppingCart.Commercial.OrderPipeline.ProcessorProvider.Run()
   at DotShoppingCart.Commercial.OrderPipeline.RunnableProvider.StartRun()

Additional Info:

MachineName : CDC-WEB1
TimeStamp : 8/16/2010 9:52:45 PM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
AppDomainName : DotShoppingCart.Commercial.OrderPipelineService.exe
ThreadIdentity :
WindowsIdentity : NT AUTHORITY\SYSTEM

Category: General
Priority: 0
EventId: 100
Severity: Error
Title:Enterprise Library Exception Handling
Machine: CDC-WEB1
App Domain: DotShoppingCart.Commercial.OrderPipelineService.exe
ProcessId: 1576
Process Name: C:\DSC\Install\OrderPipeline\DotShoppingCart.Commercial.OrderPipelineService.exe
Thread Name:
Win32 ThreadId:2408
Extended Properties: host - dsc

--> MachineName: CDC-WEB1
--> TimeStamp: 8/16/2010 9:52:48 PM
--> FullName: Microsoft.Practices.EnterpriseLibrary.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null
--> AppDomainName: DotShoppingCart.Commercial.OrderPipelineService.exe
--> WindowsIdentity: NT AUTHORITY\SYSTEM

Exception Information Details:
======================================
Exception Type: System.Net.Mail.SmtpException
StatusCode: MustIssueStartTlsFirst
Message: The SMTP server requires a secure connection or the client was not authenticated. The server response was: SMTP authentication is required.
Data: System.Collections.ListDictionaryInternal
TargetSite: Boolean CheckResponse(System.Net.Mail.SmtpStatusCode, System.String)
HelpLink: NULL
Source: System

StackTrace Information Details:
======================================
   at System.Net.Mail.RecipientCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.EmailMessage.SendMessage(MailMessage message)
   at Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.EmailMessage.Send()
   at Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.EmailTraceListener.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data)
   at Microsoft.Practices.EnterpriseLibrary.Logging.LogSource.TraceData(TraceEventType eventType, Int32 id, LogEntry logEntry, TraceListenerFilter traceListenerFilter)
   at Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter.ProcessLog(LogEntry log)
Category:
Priority: -1
EventId: 6352
Severity: Error
Title:
Machine: CDC-WEB1
Application Domain: DotShoppingCart.Commercial.OrderPipelineService.exe
Process Id: 1576
Process Name: C:\DSC\Install\OrderPipeline\DotShoppingCart.Commercial.OrderPipelineService.exe
Win32 Thread Id: 2408
Thread Name:
Extended Properties:
8/16/2010 3:31:52 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Key not valid for use in specified state
DotShoppingCart Staff