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

giovedì 29 maggio 2014 - 09.56
Tag Elenco Tags  C#  |  .NET 4.0  |  MySQL 5.5

svipla Profilo | Senior Member

Ciao a tutti
ho trasferito un sito su un nuovo server. Questo sito è di qualche hanno fa e ho utilizzato un provider di mysql per la gestione degli utenti(ruoli ecc).

Quando provo ad accedere all'area riservata, ricevo questo messaggio di errore:

Server Error in '/' 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:


[No relevant source lines]


Source File: d:\tempasp.net.4.0\root\1425d50c\fce528c5\App_Web_03zcd3ml.3.cs Line: 0

Stack Trace:


[SecurityException: Requested registry access is not allowed.]
System.ThrowHelper.ThrowSecurityException(ExceptionResource resource) +52
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +10718549
System.Diagnostics.EventLogInternal.GetLogRegKey(String currentMachineName, Boolean writable) +94
System.Diagnostics.EventLogInternal.ModifyOverflowPolicy(OverflowAction action, Int32 retentionDays) +178
System.Diagnostics.EventLog.ModifyOverflowPolicy(OverflowAction action, Int32 retentionDays) +13
Simple.Providers.MySQL.MysqlMembershipProvider.WriteToEventLog(Exception e, String action) +62
Simple.Providers.MySQL.MysqlMembershipProvider.ValidateUser(String username, String password) +640
Administrator_login.lgAdmin_Authenticate(Object sender, AuthenticateEventArgs e) +227
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +9453290
System.Web.UI.WebControls.Login.AttemptLogin() +119
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +75
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +121
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +180
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
System.Web.UI.Page.ProcessRequest() +72
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +58
ASP.administrator_login_aspx.ProcessRequest(HttpContext context) in d:\tempasp.net.4.0\root\1425d50c\fce528c5\App_Web_03zcd3ml.3.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067


Ho cercato un pò, ma tutte le soluzioni richiedo un accesso al server e a iis, accessi che io non ho.

Ci sono soluzioni che non richiesto l'accesso al server?

Grazie mille
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5