Foros del Web » Programación para mayores de 30 ;) » .NET »

ayuda con este error......

Estas en el tema de ayuda con este error...... en el foro de .NET en Foros del Web. Hola amigos.........me pueden ayudar con este error, no puedo hacer correr una pagina con informacion, de ante mano gracias Cannot use a leading .. to ...
  #1 (permalink)  
Antiguo 15/05/2006, 10:53
Avatar de vamp_02  
Fecha de Ingreso: febrero-2002
Ubicación: Santiago de Chile
Mensajes: 367
Antigüedad: 22 años, 2 meses
Puntos: 0
ayuda con este error......

Hola amigos.........me pueden ayudar con este error, no puedo hacer correr una pagina con informacion, de ante mano gracias




Cannot use a leading .. to exit above the top directory.
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.Web.HttpException: Cannot use a leading .. to exit above the top directory.

Source Error:

Line 6: <script runat="server"> Line 7: Sub Page_Load(sender As Object,e As EventArgs) Line 8: Chart.DefaultSeries.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;data source=" + Server.MapPath("../../pb_sap/tiempo_facturas.mdb") Line 9: ' set global properties Line 10: Chart.Title="Tiempo Facturas x Mes"


Source File: C:\Inetpub\wwwroot\aaa\aaa.aspx Line: 8

Stack Trace:

[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.] System.Web.Util.UrlPath.Reduce(String path) +747178 System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +232 System.Web.Util.UrlPath.Combine(String basepath, String relative) +38 System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir, Boolean allowCrossAppMapping) +133 System.Web.HttpServerUtility.MapPath(String path) +44 ASP.aaa_aspx.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\aaa\aaa.aspx:8 System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +36 System.Web.UI.Control.OnLoad(EventArgs e) +102 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1064
__________________
yerba mala nunca....te la fumes...
  #2 (permalink)  
Antiguo 15/05/2006, 11:04
Avatar de Mickel  
Fecha de Ingreso: mayo-2002
Ubicación: Lima, Peru
Mensajes: 4.619
Antigüedad: 22 años
Puntos: 7
no puedes invocar al archivo ../../pb_sap/tiempo_facturas.mdb porque se debe encontrar fuera del directorio virtual. Mueve la carpeta y cambia el codigo...
__________________
No tengo firma ahora... :(
  #3 (permalink)  
Antiguo 15/05/2006, 11:21
Avatar de vamp_02  
Fecha de Ingreso: febrero-2002
Ubicación: Santiago de Chile
Mensajes: 367
Antigüedad: 22 años, 2 meses
Puntos: 0
Mickel, priemro q nada muchas Gracias por responder.......pero mira elimine el directorio virtual, le coloco una ruta fisica.......y me sigue dando error

Server Error in '/aaa' Application.
--------------------------------------------------------------------------------

'D:/sbruna/GESTION/INDICADOR/Facturas/tiempo_facturas.mdb' is a physical path, but a virtual path was expected.
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.Web.HttpException: 'D:/sbruna/GESTION/INDICADOR/Facturas/tiempo_facturas.mdb' is a physical path, but a virtual path was expected.

Source Error:


Line 6: <script runat="server">
Line 7: Sub Page_Load(sender As Object,e As EventArgs)
Line 8: Chart.DefaultSeries.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;data source=" + Server.MapPath ("D:\sbruna\GESTION\INDICADOR\Facturas\tiempo_fact uras.mdb")
Line 9: ' set global properties
Line 10: Chart.Title="Tiempo Facturas x Mes"


Source File: C:\Inetpub\wwwroot\aaa\aaa.aspx Line: 8

Stack Trace:


[HttpException (0x80004005): 'D:/sbruna/GESTION/INDICADOR/Facturas/tiempo_facturas.mdb' is a physical path, but a virtual path was expected.]
System.Web.Util.UrlPath.CheckValidVirtualPath(Stri ng path) +3488857
System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir, Boolean allowCrossAppMapping) +90
System.Web.HttpServerUtility.MapPath(String path) +44
ASP.aaa_aspx.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\aaa\aaa.aspx:8
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +36
System.Web.UI.Control.OnLoad(EventArgs e) +102
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1064




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
__________________
yerba mala nunca....te la fumes...
  #4 (permalink)  
Antiguo 15/05/2006, 13:06
Avatar de xknown  
Fecha de Ingreso: diciembre-2004
Ubicación: Cusco - Perú
Mensajes: 2.248
Antigüedad: 19 años, 4 meses
Puntos: 7
No pues, si yla estás usando la ruta completa, ya no hay necesidad de usar Server.MapPath...

Saludos
__________________
Alex Concha
Buayacorp - Programación y Diseño
  #5 (permalink)  
Antiguo 15/05/2006, 14:29
Avatar de vamp_02  
Fecha de Ingreso: febrero-2002
Ubicación: Santiago de Chile
Mensajes: 367
Antigüedad: 22 años, 2 meses
Puntos: 0
snifff

= sigo sin poder conectarme
__________________
yerba mala nunca....te la fumes...
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 10:04.