Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
I am uploading the file it works locally check below for
Mark Tabor
Jun 7 2016 6:22 AM
258
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to create PDF in ASP.Net using Adobe PDF Library SDK?
Attempted to access an unloaded app domain