my filepath is as below
Dim FilePath As String = ConfigurationManager.AppSettings("FilePath").ToString
and FilePath is set in web.config
<add key="FilePath" value="~/Uploads/" />
It works fine locally but when i try to host the application I am using
Dim FilesPath As String = HttpContext.Current.Server.MapPath("~/Uploads")
I have created a directory with name Uploads it Uploaded files with the path
C:\Inetpub\vhosts\planrbme.com.pk\httpdocs\Uploads\Doc2.pdf
I am showing files into the gridview and and i made file name as hyperlink and on click it should open the files , locally all works fine but on live it is saving the file with path C:\Inetpub\vhosts\planrbme.com.pk\httpdocs\Uploads\Doc2.pdf but on clicking it is not opening the file please assists me