Jump to content
Software FX Community

CryptographicException Error


Recommended Posts

Chart FX was working fine for us up until today where it has now for some reason stopped working on our production server. Over this past weekend a Windows Update was installed (and now uninstalled) to the server. When we try to create a Chart FX control, nothing is generated on our webpage and we get the following error in our Event Viewer (Any Ideas??):


Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 7/21/2008 3:24:39 PM

Event time (UTC): 7/21/2008 7:24:39 PM

Event ID: 508bdc433b50461287af571058d8cfa2

Event sequence: 10

Event occurrence: 3

Event detail code: 0


Application information:

  Application domain: /LM/W3SVC/1/Root/ChartFX70/PSS-2-128611417976752930

  Trust level: Full

  Application Virtual Path: /ChartFX70/PSS

  Application Path: D:\Program Files\Chart FX 7\ChartFX70\PSS\

  Machine name: SAXAMDC2


Process information:

  Process ID: 220

  Process name: w3wp.exe



Exception information:

  Exception type: CryptographicException

  Exception message: Padding is invalid and cannot be removed.


Request information:

  Request URL: http://saxamdc2/chartfx70/pss/ChartFX.aspx?id=0-072115244&type=js&mime=applicationAn unhandled exception has occurred.fx-javascript

  Request path: /chartfx70/pss/ChartFX.aspx

  User host address:


  Is authenticated: False

  Authentication Type: 



Thread information:

  Thread ID: 5


  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, Boolean useValidationSymAlgo)

at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)

at ChartFX.Pss.HttpHandler.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:


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.





Link to comment
Share on other sites

I fond the following in relation to this error:


As you can see from the stack, the error is coming from Forms Authentication:

at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)

Are you using forms authentication?

If so, take a look at the following KB article:

Q7621009. How to use Chart FX and Forms Authentication to secure your charts

URL: http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/762/1/009.htm?_r=1


Link to comment
Share on other sites

After a few days of trying to fix my problem, the solution was very simple. To get ChartFX working again, all i needed to do was STOP the ChartFX service from running as a windows service (under Administrative Tool/Services) .

Apparently, when the windows updates were installed and the server was rebooted, the ChartFX application service did not automatically start as observed by our server team. So since our server guy noticed this, decided to start the service manually.  With this running as an application service, apparently it was causing some sort of conflict/problems to our PSS running from IIS.

Why this caused us problems though, I have no clue... Anyone have any thoughts on why we experienced these issues??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...