Verify if file exists on network shared HELP

H

Henry Miranda

Hi Guys,

I have one problem here,
I want to publish some photos that are located in a network shared path (f.i : \\<server>\<path ) . (shared permissions : full control Everyone)
I just configure this path as a virtual directory to get access and show it in one ASPX page.
But the problem is that, first at all, I have to verify if the file exists ,using File.Exists method or FileExists property of IO.FileInfo(FileFullPath) class.

I get an error of "access denied" even I am using an "impersonate" property set to "true" on trhe web config.

Can someone help me with this problems?..do I have to change the IIS user or something like this?

Thanks in advice

Regards,

MCSD Henry Miranda
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top