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.




System.Security.SecurityException: Requested registry access is not allowed.

web-app

Hi,

I get a "System.Security.SecurityException: Requested registry access is not allowed" message when I try to access the Gemini Web App for the first time.  I've tried setting various permissions in the registry as suggested in some posts I found while googling, to no avail.  Has anyone else come across this error.  The complete stack trace is below.

Thanks,

Ken

Server Error in '/Gemini' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[SecurityException: Requested registry access is not allowed.]
System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +48
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +2781385
System.Security.Cryptography.Utils.get_FipsAlgorithmPolicy() +99
System.Security.Cryptography.RijndaelManaged..ctor() +10
System.Web.Configuration.MachineKeySection.ConfigureEncryptionObject() +388
System.Web.Configuration.MachineKeySection.EnsureConfig() +363
System.Web.Configuration.MachineKeySection.HashData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length) +36
System.Web.Security.CookieProtectionHelper.Encode(CookieProtection cookieProtection, Byte[] buf, Int32 count) +34
System.Web.Security.AnonymousIdentificationModule.GetEncodedValue(AnonymousIdData data) +240
System.Web.Security.AnonymousIdentificationModule.OnEnter(Object source, EventArgs eventArgs) +1329
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

kengineer
· 1
kengineer
Replies (3)
helpful
0
not helpful

We have not seen this before, looks like google is the best option.

Some things to try / check:

  • The user under which the site is running on, try giving permissions to it
  • Try reregistering asp.net (aspnet_regiis -i)


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Hi Ken,

Can you please tell me how you did you resolve this security exception issue?I am also facing the same problem for my own application.

 

Regards,

Sabs

[quote user="kengineer"]Hi,

I get a "System.Security.SecurityException: Requested registry access is not allowed" message when I try to access the Gemini Web App for the first time.  I've tried setting various permissions in the registry as suggested in some posts I found while googling, to no avail.  Has anyone else come across this error.  The complete stack trace is below.

Thanks,

Ken

Server Error in '/Gemini' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Requested registry access is not allowed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[SecurityException: Requested registry access is not allowed.]
System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +48
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +2781385
System.Security.Cryptography.Utils.get_FipsAlgorithmPolicy() +99
System.Security.Cryptography.RijndaelManaged..ctor() +10
System.Web.Configuration.MachineKeySection.ConfigureEncryptionObject() +388
System.Web.Configuration.MachineKeySection.EnsureConfig() +363
System.Web.Configuration.MachineKeySection.HashData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length) +36
System.Web.Security.CookieProtectionHelper.Encode(CookieProtection cookieProtection, Byte[] buf, Int32 count) +34
System.Web.Security.AnonymousIdentificationModule.GetEncodedValue(AnonymousIdData data) +240
System.Web.Security.AnonymousIdentificationModule.OnEnter(Object source, EventArgs eventArgs) +1329
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
[/quote]


Cool_Sabs
· 1
Cool_Sabs
helpful
0
not helpful

Mark Wing
· 9108
Mark Wing