C
c_shah
using VB.net (VB 2005) ASP.net 2.0 on windows 2003 server
Dim strPDFFilePath AS string = "\\webserverhostname\d$\foldername
\filename"
the following code is diving me an error saying access denied
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "Application/PDF"
Response.WriteFile(strPDFFilePath)
Response.Flush()
Response.Close()
Response.End()
Account under which ASP.net is running have read, browser access to d:
drive and the folder in which file resides.
I guess it has something to do with drive name in the path?
Is there a way you can use Server.Mappath to map a different drive
(website is hosted on c: and file is on a different drive d: on the
same server)?
Dim strPDFFilePath AS string = "\\webserverhostname\d$\foldername
\filename"
the following code is diving me an error saying access denied
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "Application/PDF"
Response.WriteFile(strPDFFilePath)
Response.Flush()
Response.Close()
Response.End()
Account under which ASP.net is running have read, browser access to d:
drive and the folder in which file resides.
I guess it has something to do with drive name in the path?
Is there a way you can use Server.Mappath to map a different drive
(website is hosted on c: and file is on a different drive d: on the
same server)?