Jump to content
Software FX Community

Problem using chart fx through other server, keyset does not exist


Roman

Recommended Posts

Hi, I made a c# web app that works fine on my development machine, however, when i publish out to another machine, and open the app through a browser,

when it first tries to create a chart using chart fx lite through a user control, i get this error:

 

Keyset does not exist

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Cryptography.CryptographicException: Keyset does not exist

Source Error:

Line 2:  <%@ Register Assembly="ChartFX.Lite.Internet" Namespace="SoftwareFX.ChartFX.Lite.Internet"Line 3:      TagPrefix="cc1" %>Line 5:  </cc1:Chart>

Source File: c:\................\CustomReportControls\SmallBarGraphControl.ascx Line: 4

Stack Trace:

[CryptographicException: Keyset does not exist]   System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) +33   System.Security.Cryptography.SafeProvHandle._FreeCSP(IntPtr pProvCtx) +0   System.Security.Cryptography.SafeProvHandle.ReleaseHandle() +9   System.Runtime.InteropServices.SafeHandle.InternalDispose() +0   System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing) +11   System.Runtime.InteropServices.SafeHandle.Dispose() +9   System.Security.Cryptography.RSACryptoServiceProvider.Dispose(Boolean disposing) +62   System.Security.Cryptography.AsymmetricAlgorithm.System.IDisposable.Dispose() +15   SoftwareFX.ChartFX.Lite.Internet.Base.1T.JW(Type 1PX, String 1PY, String& 1PZ, Boolean& 1Q0, 1P& 1Q1) +245   SoftwareFX.ChartFX.Lite.Internet.Base.1T.JX(Type 1Q2, 1S 1Q3, String& 1Q4, 1P& 1Q5, String 1Q6) +68   SoftwareFX.ChartFX.Lite.Internet.Base.1T.JS(LicenseContext 1PJ, Type 1PK, Object 1PL, Boolean 1PM, LicenseProvider 1PN) +81   SoftwareFX.ChartFX.Lite.Internet.Base.RegistryLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) +63   System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +259   System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41   System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +29   SoftwareFX.ChartFX.Lite.Internet.Chart..ctor() +349
...........

 

 

chart fx lite was installed on the server and the app published successfully to the virtual directory there. Any suggestions?

Link to comment
Share on other sites

Hmmm well, i found a temporary solution.

 I changed the application pool property identity that it was running under from Network Services to Local System, and disabled anoymous access to the directory.

I would keep it as Network Services but I don't know where to give it read permissions...

Any suggestions?

RSConfigFiles.zip

Link to comment
Share on other sites

The exception you are getting is due to a lack of permission to the registry required by .NET Cryptography provider. I do not know exactly what part of the registry they access and I couldn't find anywhere where they say it. So I can not tell you exactly what portion of the registry you need access to.

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.

Guest
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...