Verify if file exists on network shared HELP

From: Henry Miranda (henry_m_a_at_hotmail.com)
Date: 12/17/03


Date: Wed, 17 Dec 2003 10:21:05 -0800

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



Relevant Pages

  • RE: programatically changing the .net version of virtual directory
    ... virtual directory that I am creating within a aspx page. ... automatically creates a virtual directory and configures it. ... string strFrameworkVersion = ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: AJAX - AutoCompleteExtender ASP.Net 2.0 (Page Method vs. Web S
    ... Best regards, ... In aspx site: ... you'll have to specify the [ScriptMethod] attribute in addition to the ... I want to put the web service code into a page ...
    (microsoft.public.dotnet.general)
  • Framework conflict??
    ... applicaction and I try to open an aspx page, ... can be caused by a virtual directory not being configured as an application ... application directory property in site properties, ...
    (microsoft.public.dotnet.framework.aspnet)
  • programatically changing the .net version of virtual directory
    ... virtual directory that I am creating within a aspx page. ... automatically creates a virtual directory and configures it. ... string strFrameworkVersion = ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: RegisterStartupScript cannot work.
    ... > private void Page_Load(object sender, ... > Put it directly in the aspx page template and run the page to see whether ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)