Server.MapPath

Discussion in 'ASP.NET / ASP.NET Core' started by collieart, Oct 23, 2012.

  1. From the root folder of an application, I tried Server.MapPath to a folder above my application. I want more than one application to access the same database. I got the error "Cannot use a leading ../ to exit above the top directory." So can Server.MapPath only map a path within the same application?

    bmacd
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

Share This Page