Oups. I saw by reading again that files are actually on drive d: on the
*same*machine . You could perhaps just use the drive letter ie.
d:\MyWebApps\ThisWebApp\TheFileWant.pdf ? and use a config setting to point
to the root location for this application files...
--
Patrice
"Patrice" <http://www.chez.com/scribe/> a écrit dans le message de news:
(E-Mail Removed)...
> AFAIK $ shares access is only allowed to administrative accounts. I would
> create my own application specific share (remember you have also to apply
> the appropriate rights to the share plus it's likely better to avoid
> sharing the drive root).
>
> ---
> Patrice
>
>
> "c_shah" <(E-Mail Removed)> a écrit dans le message de news:
> (E-Mail Removed)...
>> 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)?
>>
>
>