Foros del Web » Programando para Internet » ASPX (.net) »

ayuda con error en aspx y iis win 7

Estas en el tema de ayuda con error en aspx y iis win 7 en el foro de ASPX (.net) en Foros del Web. hola amigos, me gustaria si me pueden ayudar a solucionar este problema de credenciales...bueno los ambiento un poco sobre mi equipo. tengo un toshiba a505-sp7913c, ...
  #1 (permalink)  
Antiguo 22/02/2010, 08:00
 
Fecha de Ingreso: marzo-2002
Mensajes: 99
Antigüedad: 22 años, 1 mes
Puntos: 0
ayuda con error en aspx y iis win 7

hola amigos, me gustaria si me pueden ayudar a solucionar este problema de credenciales...bueno los ambiento un poco sobre mi equipo.
tengo un toshiba a505-sp7913c, le instale el IIS, y la pagian de prueba me funciona sin problema. el Office es el 2007.
Tengo una BD en access que contiene un tabla, esta tabla contiene ya datos, nombre, rut, dv, etc...
bueno cuando conecto la pagina que la estoy desarrollando en dreamweaver cs4 y este es el codigo...

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//Dth XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dth/xhtml1-transitional.dth">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script runat="server">
sub Page_Load
dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; data source=" & server.mappath("/inetpub/wwwroot/prueba/23.mdb"))
dbconn.Open()
sql="SELECT * FROM maestro"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
customers.DataSource=dbread
customers.DataBind()
dbread.Close()
dbconn.Close()
end sub
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>muestra datos bd</title>
</head>

<body>
<form runat="server">
<asp:Repeater id="customers" runat="server">
<HeaderTemplate>
<table border="1" width="100%">
<tr bgcolor="#b0c4de">
<th>Id</th>
<th>A_RUT</th>
<th>A_DV</th>
<th>A_APELLIDOS</th>
<th>A_NOMBRES</th>
<th>A_REGION</th>
<th>A_UBICACION</th>
<th>A_GRUPO</th>
<th>A_ESCALAFON</th>
<th>A_GRADO</th>
<th>A_FECHA NAC</th>
<th>A_FECINGRESO</th>
<th>A_FECASIMO PLANTA</th>
<th>A_CAL JURIDICA</th>
<th>A_FUNCION</th>
<th>A_PROFESION</th>
<th>A_E-MAIL</th>
<th>A_AREA</th>
<th>A_FONO</th>
<th>A_ANEXO</th>
<th>A_SEXO</th>
</tr>
</HeaderTemplate>

<ItemTemplate>
<tr bgcolor="#f0f0f0">
<th><%#Container.DataItem("Id")%> </th>
<th><%#Container.DataItem("A_RUT")%> </th>
<th><%#Container.DataItem("A_DV")%> </th>
<th><%#Container.DataItem("A_APELLIDOS")%> </th>
<th><%#Container.DataItem("A_NOMBRES")%> </th>
<th><%#Container.DataItem("A_REGION")%> </th>
<th><%#Container.DataItem("A_UBICACION")%> </th>
<th><%#Container.DataItem("A_GRUPO")%> </th>
<th><%#Container.DataItem("A_ESCALAFON")%> </th>
<th><%#Container.DataItem("A_GRADO")%> </th>
<th><%#Container.DataItem("A_FECHA NAC")%> </th>
<th><%#Container.DataItem("A_FECINGRESO")%> </th>
<th><%#Container.DataItem("A_FECASIMO PLANTA")%> </th>
<th><%#Container.DataItem("A_CAL JURIDICA")%> </th>
<th><%#Container.DataItem("A_FUNCION")%> </th>
<th><%#Container.DataItem("A_PROFESION")%> </th>
<th><%#Container.DataItem("A_E-MAIL")%> </th>
<th><%#Container.DataItem("A_AREA")%> </th>
<th><%#Container.DataItem("A_FONO")%> </th>
<th><%#Container.DataItem("A_ANEXO")%> </th>
<th><%#Container.DataItem("A_SEXO")%> </th>
</tr>
</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>

</asp:Repeater>
</form>

</body>
</html>


y cuando la ejecuto, me da este error:

Error de servidor en la aplicación '/prueba'.
--------------------------------------------------------------------------------

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: Error de solicitud de permiso de tipo 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Error de código fuente:

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.

Seguimiento de la pila:


[SecurityException: Error de solicitud de permiso de tipo 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
System.Security.CodeAccessSecurityEngine.Check(Obj ect demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +54
System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +419
System.Web.HttpServerUtility.MapPath(String path) +117
ASP.default_aspx.Page_Load() +65
System.Web.Util.CalliHelper.ArglessFunctionCaller( IntPtr fp, Object o) +12
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +11005550
System.Web.UI.Control.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11041511
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11041050
System.Web.UI.Page.ProcessRequest() +91
System.Web.UI.Page.ProcessRequest(HttpContext context) +240
ASP.default_aspx.ProcessRequest(HttpContext context) +9
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +599
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +171




--------------------------------------------------------------------------------
Información de versión: Versión de Microsoft .NET Framework:2.0.50727.4927; Versión ASP.NET:2.0.50727.4927


De ante mano Gracias
  #2 (permalink)  
Antiguo 22/02/2010, 09:29
Avatar de Malenko
Moderador
 
Fecha de Ingreso: enero-2008
Mensajes: 5.323
Antigüedad: 16 años, 3 meses
Puntos: 606
Respuesta: ayuda con error en aspx y iis win 7

Tienes permisos para acceder a la BBDD??
__________________
Aviso: No se resuelven dudas por MP!
  #3 (permalink)  
Antiguo 22/02/2010, 10:07
 
Fecha de Ingreso: marzo-2002
Mensajes: 99
Antigüedad: 22 años, 1 mes
Puntos: 0
Respuesta: ayuda con error en aspx y iis win 7

Cita:
Iniciado por Malenko Ver Mensaje
Tienes permisos para acceder a la BBDD??
la bbd la acceso desde windows y ningun problema......me deja hacer todo a eso te refierss?
  #4 (permalink)  
Antiguo 22/02/2010, 10:11
Avatar de Malenko
Moderador
 
Fecha de Ingreso: enero-2008
Mensajes: 5.323
Antigüedad: 16 años, 3 meses
Puntos: 606
Respuesta: ayuda con error en aspx y iis win 7

Me refiero a que usuarios tienen acceso a esa BBDD.
__________________
Aviso: No se resuelven dudas por MP!
  #5 (permalink)  
Antiguo 22/02/2010, 10:13
 
Fecha de Ingreso: marzo-2002
Mensajes: 99
Antigüedad: 22 años, 1 mes
Puntos: 0
Respuesta: ayuda con error en aspx y iis win 7

Cita:
Iniciado por Malenko Ver Mensaje
Me refiero a que usuarios tienen acceso a esa BBDD.
todos

Etiquetas: aspx, iis, win7
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:14.