Retroceder   Foros del Web > Programación para sitios web > .NET

Respuesta
 
Herramientas Desplegado
Antiguo 15-may-2006, 10:53   #1 (permalink)
vamp_02 está en el buen camino
 
Avatar de vamp_02
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago de Chile
Mensajes: 367
Enviar un mensaje por Yahoo  a vamp_02
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...
vamp_02 está desconectado   Responder Citando
Antiguo 15-may-2006, 11:04   #2 (permalink)
Mickel tiene algunos puntos positivos de karma
 
Avatar de Mickel
 
Fecha de Ingreso: noviembre-2002
Ubicación: Lima, Peru
Mensajes: 4.703
Enviar un mensaje por Yahoo  a Mickel
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...
__________________
Mi blog: http://www.mickel.biz. Mi Hi5: http://mickel.hi5.com
Mickel está desconectado   Responder Citando
Antiguo 15-may-2006, 11:21   #3 (permalink)
vamp_02 está en el buen camino
 
Avatar de vamp_02
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago de Chile
Mensajes: 367
Enviar un mensaje por Yahoo  a vamp_02
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...
vamp_02 está desconectado   Responder Citando
Antiguo 15-may-2006, 13:06   #4 (permalink)
xknown está en el buen camino
 
Avatar de xknown
 
Fecha de Ingreso: diciembre-2004
Ubicación: Cusco - Perú
Mensajes: 2.249
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
xknown está desconectado   Responder Citando
Antiguo 15-may-2006, 14:29   #5 (permalink)
vamp_02 está en el buen camino
 
Avatar de vamp_02
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago de Chile
Mensajes: 367
Enviar un mensaje por Yahoo  a vamp_02
snifff

= sigo sin poder conectarme
__________________
yerba mala nunca....te la fumes...
vamp_02 está desconectado   Responder Citando
Respuesta
No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 09:33.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93