Foros del Web

Foros del Web (http://www.forosdelweb.com/)
-   .NET (http://www.forosdelweb.com/f29/)
-   -   ayuda con este error...... (http://www.forosdelweb.com/f29/ayuda-con-este-error-393791/)

vamp_02 15/05/2006 10:53

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

Mickel 15/05/2006 11:04

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...

vamp_02 15/05/2006 11:21

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

xknown 15/05/2006 13:06

No pues, si yla estás usando la ruta completa, ya no hay necesidad de usar Server.MapPath...

Saludos

vamp_02 15/05/2006 14:29

snifff

= sigo sin poder conectarme


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

Desarrollado por vBulletin® Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.