Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Padding is invalid and cannot be removed.

emails

We have recently moved our installation of Gemini to a new server and are now encoutering some serious issues with the SchedulerService. We are running CounterSoftGeminiSchedulerv304 and CounterSoftGeminiv30_4.

Here is the returning error message:

Padding is invalid and cannot be removed. SOURCE: mscorlib TARGETSITE: Int32 DecryptData(Byte[], Int32, Int32, Byte[] ByRef, Int32, System.Security.Cryptography.PaddingMode, Boolean) STACKTRACE: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) at RssToolkit.Rss.RssHttpHandlerHelper.ParseChannelQueryString(HttpRequest request, String& channelName, String& userName, DocumentType& outputType) at R

If I click the Test-button from the SMTP Configuration section the log is populated with the following error messages:

IOException occurred. InnerException message follows: The device is not ready.

SOURCE: CounterSoft.Gemini.Commons TARGETSITE: Boolean SendEmail(CounterSoft.Gemini.Commons.GeminiConfigurationEN, CounterSoft.Gemini.Commons.EmailAlert, CounterSoft.Gemini.Commons.IssueWatcherEN) STACKTRACE: at CounterSoft.Gemini.Commons.Emailer.SendEmail(GeminiConfigurationEN config, EmailAlert alertMessage, IssueWatcherEN recipient) at CounterSoft.Gemini.Commons.Emailer.SendEmail(GeminiConfigurationEN config, String strTo, String strBody, String strSubject, Boolean bHTML)

The device is not ready.

SOURCE: mscorlib TARGETSITE: Void WinIOError(Int32, System.String) STACKTRACE: at System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITYATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) at MailBee.Logger.a(Boolean A_0)

The scheduler service is running and does send messages when restarted, but it doesn't seem to persist.

Any idea on how to fix this?

Can I install version 3.1.0 of the scheduler with version 3.0.4 of Gemini?

mch
· 1
mch
Replies (8)
helpful
0
not helpful

Is this the error from the scheduler?

(

Padding is invalid and cannot be removed.
SOURCE: mscorlib TARGETSITE: Int32 DecryptData(Byte....

)

 


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Event code: 3005 Event message: An unhandled exception has occurred. Event time: 03-06-2009 14:16:43 Event time (UTC): 03-06-2009 12:16:43 Event ID: a4fd953d38de4ce3800bedd70adafb52 Event sequence: 1353 Event occurrence: 111 Event detail code: 0

Application information: Application domain: /LM/W3SVC/3/ROOT-2-128884527716358545 Trust level: Full Application Virtual Path: / Application Path: E:\wwwroot\Gemini Web Application\ Machine name: DK-WEB

Process information: Process ID: 3516 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE

Exception information: Exception type: CryptographicException Exception message: Padding is invalid and cannot be removed.

Request information: Request URL: http://support.codehouse.dk/rss/Issues.ashx?t=65D5B690D77137C52A10442EE83F208F49DC495AE7E22F4BC193836328BC2CEACE61E4AFA11CC4B3123B0DAC21EC06DAC8D032191FD7300FA3044A00FA35911C6183A08D3DCA60360DDEA2525123E2A4CBC7A18858A37579B10033AFCF3B7E971A6340F28A7B3C54AACEBE9E3BD9D357&p=-2 Request path: /rss/Issues.ashx User host address: 172.16.20.50 User: mch@codehouse.dk Is authenticated: True Authentication Type: Forms Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information: Thread ID: 61 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast) at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, IVType ivType, Boolean useValidationSymAlgo) at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) at RssToolkit.Rss.RssHttpHandlerHelper.ParseChannelQueryString(HttpRequest request, String& channelName, String& userName, DocumentType& outputType) at RssToolkit.Rss.RssHttpHandlerBase`1.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Custom event details:


mch
· 1
mch
helpful
0
not helpful

This exception has nothing to do with the scheduler service. It is someone trying to use RSS with wrong URL / credentials.

 


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

No, not the scheduler. But the issues must somehow be related, as no mails are being sent.

We found that the IIS didn't allow 32bit applications. This has been changed, but still nothing.

Is there a signature that is established upon first communication between scheduler and Gemini, which might break when the solution is moved??


mch
· 1
mch
helpful
0
not helpful

Okay, I have tried removing RSS feeds - pretty sure i'm the only one who is using them.

But the Scheduler service still doesn't send out email every 5 mins.

When I run a test form the SMTP Configuration section I first get this error:

IOException occurred. InnerException message follows: The device is not ready

SOURCE: CounterSoft.Gemini.Commons TARGETSITE: Boolean SendEmail(CounterSoft.Gemini.Commons.GeminiConfigurationEN, CounterSoft.Gemini.Commons.EmailAlert, CounterSoft.Gemini.Commons.IssueWatcherEN) STACKTRACE: at CounterSoft.Gemini.Commons.Emailer.SendEmail(GeminiConfigurationEN config, EmailAlert alertMessage, IssueWatcherEN recipient) at CounterSoft.Gemini.Commons.Emailer.SendEmail(GeminiConfigurationEN config, String strTo, String strBody, String strSubject, Boolean bHTML)

The device is not ready

SOURCE: mscorlib TARGETSITE: Void WinIOError(Int32, System.String) STACKTRACE: at System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITYATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) at MailBee.Logger.a(Boolean A_0)

The strange thing is that when we restart the service, it sends out a couple of mails and then stop working.

Any suggestions? Can we update the scheduler without problems?


mch
· 1
mch
helpful
0
not helpful

Are there any records in the gemini_issuealerts table?

Can it be that you have another scheduler installed?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

The table is populated with issue alerts. When the scheduler runs, the table is cleaned, but the scheduler doesn't send or find anything. We can see from the log that the scheduler runs without problems, but it doesn't find any alerts.


mch
· 1
mch
helpful
0
not helpful

If the table is cleared that means that the scheduler "thinks" that the email was sent successfully.

Can you check if the emails are blocked?


Mark Wing
· 9108
Mark Wing