Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    142

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

    Ciao a tutti
    ho caricato un sito su un server e quando provo ad accedere ad una pagina riservata che richiede il login, ricevo questo errore:
    [CODE]
    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: c:\windows\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\root\3cfe9c50\3d524bb8\App_Web_yyvcxog2.2.cs Line: 0

    Stack Trace:

    [SecurityException: Requested registry access is not allowed.]
    System.ThrowHelper.ThrowSecurityException(Exceptio nResource resource) +52
    Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +9637209
    System.Diagnostics.EventLogInternal.GetLogRegKey(S tring currentMachineName, Boolean writable) +102
    System.Diagnostics.EventLogInternal.ModifyOverflow Policy(OverflowAction action, Int32 retentionDays) +183
    System.Diagnostics.EventLog.ModifyOverflowPolicy(O verflowAction action, Int32 retentionDays) +16
    Simple.Providers.MySQL.MysqlMembershipProvider.Wri teToEventLog(Exception e, String action) +64
    Simple.Providers.MySQL.MysqlMembershipProvider.Val idateUser(String username, String password) +649
    Admin_login.LoginForm_Authenticate(Object sender, AuthenticateEventArgs e) +119
    System.Web.UI.WebControls.Login.OnAuthenticate(Aut henticateEventArgs e) +115
    System.Web.UI.WebControls.Login.AttemptLogin() +127
    System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs e) +101
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
    System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +125
    System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +167
    System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
    System.Web.UI.Page.ProcessRequest() +78
    System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +21
    System.Web.UI.Page.ProcessRequest(HttpContext context) +49
    ASP.admin_login_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\root\3cfe9c50\3d524bb8\App_Web_yyvcxog2.2.cs :0
    System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +100
    System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +75


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
    [CODE]

    Il problema dovrebbe essere causato da delle classi di mysql(mysqlmembershiprovider) per gestire i ruoli degli utenti ecc che provano a scrivere l'eventlog

    Il server ha come sistema operativo windows server 2008 r2, iis7 e framework 4.0

    ho provato a cercare nel file machine.config il tag 'trustlevel', ma non ho trovato nulla.
    ho provato a cambiare il registro di windows, ma niente.
    grazie mille

  2. #2
    Utente di HTML.it L'avatar di jet
    Registrato dal
    Dec 2002
    residenza
    Chieti
    Messaggi
    866

  3. #3
    Utente di HTML.it
    Registrato dal
    Sep 2006
    Messaggi
    142
    Ora, ricevo questo errore:

    Server Error in '/' Application.
    An exception occurred. Please check the Event Log.
    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.Configuration.Provider.ProviderException: An exception occurred. Please check the Event Log.

    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:

    [ProviderException: An exception occurred. Please check the Event Log.]
    Simple.Providers.MySQL.MysqlMembershipProvider.Val idateUser(String username, String password) +681
    Admin_login.LoginForm_Authenticate(Object sender, AuthenticateEventArgs e) +119
    System.Web.UI.WebControls.Login.OnAuthenticate(Aut henticateEventArgs e) +115
    System.Web.UI.WebControls.Login.AttemptLogin() +127
    System.Web.UI.WebControls.Login.OnBubbleEvent(Obje ct source, EventArgs e) +101
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
    System.Web.UI.WebControls.Button.OnCommand(Command EventArgs e) +125
    System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +167
    System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563


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

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.