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

Rispondi quotando