ayuda por favor con un error
Publicado por alejandro (107 intervenciones) el 12/10/2005 19:50:44
hola como estan espero que bien lo que pasa es que cuando realizo o ejecuto una accion que tenga coneccion con oldb me sale el siguiente error
Excepción de seguridad
Descripción: La aplicación intentó realizar una operación no permitida por la directiva de seguridad. Para otorgar a esta aplicación los permisos necesarios, póngase en contacto con el administrador del sistema o cambie el nivel de confianza de la aplicación en el archivo de configuración.
Detalles de la excepción: System.Security.SecurityException: Acceso denegado al Registro solicitado.
Error de código fuente:
LÃnea 87: Private Sub txtAceptar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAceptar.Click
LÃnea 88:
LÃnea 89: Dim CON As New OleDbConnection("provider=SQLOLEDB.1;User ID=sa;persist Security Info=False;initial catalog=basededatos1;data source=(local)")
LÃnea 90: Try
LÃnea 91: CON.Open()
Archivo de origen: C:\Inetpub\wwwroot\superbicyproyect\REGISTRO.aspx.vb LÃnea: 89
Seguimiento de la pila:
[SecurityException: Acceso denegado al Registro solicitado.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Data.Common.ADP.ClassesRootRegistryValue(String subkey, String queryvalue)
System.Data.OleDb.OleDbConnectionString.ValidateParse()
System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl)
System.Data.OleDb.OleDbConnectionString..ctor(String connectionString)
System.Data.OleDb.OleDbConnectionString.ParseString(String connectionString)
System.Data.OleDb.OleDbConnection.set_ConnectionString(String value)
System.Data.OleDb.OleDbConnection..ctor(String connectionString)
superbicyproyect.REGISTRO.txtAceptar_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\superbicyproyect\REGISTRO.aspx.vb:89
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--------------------------------------------------------------------------------
Información de versión: Versión de Microsoft .NET Framework:1.1.4322.573; Versión de ASP.NET:1.1.4322.573
Excepción de seguridad
Descripción: La aplicación intentó realizar una operación no permitida por la directiva de seguridad. Para otorgar a esta aplicación los permisos necesarios, póngase en contacto con el administrador del sistema o cambie el nivel de confianza de la aplicación en el archivo de configuración.
Detalles de la excepción: System.Security.SecurityException: Acceso denegado al Registro solicitado.
Error de código fuente:
LÃnea 87: Private Sub txtAceptar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAceptar.Click
LÃnea 88:
LÃnea 89: Dim CON As New OleDbConnection("provider=SQLOLEDB.1;User ID=sa;persist Security Info=False;initial catalog=basededatos1;data source=(local)")
LÃnea 90: Try
LÃnea 91: CON.Open()
Archivo de origen: C:\Inetpub\wwwroot\superbicyproyect\REGISTRO.aspx.vb LÃnea: 89
Seguimiento de la pila:
[SecurityException: Acceso denegado al Registro solicitado.]
Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) +473
System.Data.Common.ADP.ClassesRootRegistryValue(String subkey, String queryvalue)
System.Data.OleDb.OleDbConnectionString.ValidateParse()
System.Data.Common.DBConnectionString..ctor(String connectionString, UdlSupport checkForUdl)
System.Data.OleDb.OleDbConnectionString..ctor(String connectionString)
System.Data.OleDb.OleDbConnectionString.ParseString(String connectionString)
System.Data.OleDb.OleDbConnection.set_ConnectionString(String value)
System.Data.OleDb.OleDbConnection..ctor(String connectionString)
superbicyproyect.REGISTRO.txtAceptar_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\superbicyproyect\REGISTRO.aspx.vb:89
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--------------------------------------------------------------------------------
Información de versión: Versión de Microsoft .NET Framework:1.1.4322.573; Versión de ASP.NET:1.1.4322.573
Valora esta pregunta


0