InicioArticulos y noticiasBases de datosProgramaciónForosInternetServiciosContratacionEmail
SQL
  Tutorial SQL
SQL Server
  Tutorial de Transact-SQL
ORACLE
  Tutorial PL/SQL
.NET
  Introducción a.NET
  Conceptos generales .NET
  Tutorial C#
  LinQ
  WCF
Reina Roja
  Humor
  Bibliografia
  Acerca de ...

Afiliados
La Web del programador
MundoProgramacion

Error al instlar aplicación - SecurityException: Acceso denegado al Registro solicitado.]
tema iniciado poroxanet en ASP.NET
Mensaje recibido el [01/03/2006 12:34:23]


Saludos, gracias por la ayuda.

Tengo una aplicación en VS .Net 2003 con ASP.Net y CSharp. Al Instalar la aplicación el el servidor web, tengo el siguiente error.

Server Error in '/MinaPresentacion' 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.]

   Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473

   System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) +295

   System.Diagnostics.EventLog.SourceExists(String source, String machineName) +77

   System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +178

   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) +68

   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category) +21

   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID) +15

   System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type) +11

   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionUtility.LogHandlingException(String policyName, Exception offendingException, Exception chainException, Exception originalException)

   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.ExecuteHandlerChain(Exception ex, Guid handlingInstanceID)

   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyEntry.Handle(Exception ex)

   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception ex)

   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception ex, String policyName, ConfigurationContext configurationContext)

   Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception ex, String policyName)

   Mina.MinaNegocio.Catalogos.ObtenerUsuario(String vUsuario) in C:\Documents and Settings\Joseph\Mis documentos\Visual Studio Projects\Mina\MinaNegocio\Catalogos.cs:162

   Mina.MinaPresentacion.LoginTmp.btnEntrar_Click(Object sender, EventArgs e) in c:\documents and settings\joseph\mis documentos\visual studio projects\mina\minapresentacion\logintmp.aspx.cs:59

   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18

   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33

   System.Web.UI.Page.ProcessRequestMain() +2106

   System.Web.UI.Page.ProcessRequest() +217

   System.Web.UI.Page.ProcessRequest(HttpContext context) +18

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

 

Aparentemente, el ususario que es de tipo anonimo, no tiene permisos, si es asi?, como le doy lso permisos sobre la aplicacion?

Soy Novato en esto, agradezco la ayuda.

 

Joseph Buttgembach

Peru

 



 
RE: Error al instlar aplicación - SecurityException: Acceso denegado al Registro solicitado.] por Aldeamedia
Respuesta recibida el [01/03/2006 12:39:40]

Aparentemente te está dando un error de permisos de codigo

 ¿en que servidor estás intentando instalar la aplicación? ¿es tuyo? lo digo por si tienes permiso de admin.

Y por que estas "instalando"?

 los ASP.net se "instalan" simplemente copiando los ficheros .ASPX .ASCX y las DLL

Aldeamedia.


 
RE: Error al instlar aplicación - SecurityException: Acceso denegado al Registro solicitado.] por oxanet
Respuesta recibida el [01/03/2006 12:47:36]

Graicas por la respuesta.

 

El servidor es mio, y carga esta página  ( www.minerahuallanca.com.pe) , luego para cargar la página aspx hay un boton en la parte superior derecha q dice intranet. Al hacer click sobre IntraNet carga una página aspx sin ningun problema, el problema es al ingresar el ususrio y el password. Ahi da el error.

Te agradeceria mucho la ayuda.....

Atentamnete

 

Joseph Buttgembach.

Lima - Peru

 


 
RE: Error al instlar aplicación - SecurityException: Acceso denegado al Registro solicitado.] por aldeamedia
Respuesta recibida el [02/03/2006 02:05:06]

Que hace exactamente la linea en la que te falla?

Parece como si intentaras escribir algo en el registro de windows con el usuario ASPNET.

Prueba a impersonar un usuario

(en el web.config <identity impersonate="true"> y mira en la documentación para asegurarte las mayusculas y minusculas )

y comprueba si así te funciona pero ten cuidado que entonces estas dando a todo el mundo acceso a tu equipo.


 
RE: Error al instlar aplicación - SecurityException: Acceso denegado al Registro solicitado.] por Devjoker
Respuesta recibida el [02/03/2006 04:52:43]

Creo que estas escribiendo en el registro de windows o en el Event Log ...

Estas no acciones no pueden realizarse con el usuario ASP.NET, salvo que le concedas permisos o modifiques el usuario de ejecución, lo que te desaconsejo.

Si quieres guardar un log, usa una base de datos o un fichero.

Saludos,

DJK



 

Email:*
Alias:*
Título:*
Respuesta:*
Notificar:
(Indica si queremos recibir emails)

 
 

devjoker  Te recomendamos además ...
22/10/2005 Componentes del lenguaje SQL    forma parte de...Tutorial SQL
27/10/2006 Eventos    forma parte de...Tutorial C#
03/10/2006 Instrucciones    forma parte de...Tutorial C#
06/05/2007 Introducción a Transact SQL    forma parte de...Tutorial de Transact SQL
24/05/2006 Cursores Explicitos en PL/SQL    forma parte de...Tutorial PL/SQL
22/10/2005 Consultas combinadas. JOINS    forma parte de...Tutorial SQL
22/10/2005 Vistas    forma parte de...Tutorial SQL
12/01/2006 Introducción a PLSQL    forma parte de...Tutorial PL/SQL
28/06/2006 Triggers en PL/SQL    forma parte de...Tutorial PL/SQL
22/10/2005 Insertar datos. INSERT    forma parte de...Tutorial SQL

Encuesta
Si trabajas con .NET ¿Que entorno utilizas?
[Ver] [Votar]