Verify if file exists on network shared HELP

Discussion in 'ASP .Net Security' started by Henry Miranda, Dec 17, 2003.

  1. 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
     
    Henry Miranda, Dec 17, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TXJNaWtl?=

    Verify File Exists

    =?Utf-8?B?TXJNaWtl?=, Jan 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    6,078
    =?Utf-8?B?TXJNaWtl?=
    Jan 5, 2005
  2. Carlos Albert

    Verify if Session(hashtable) exists

    Carlos Albert, Dec 9, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    6,387
    addup
    Dec 14, 2005
  3. Jonny

    Verify that line exists in a file

    Jonny, Feb 19, 2005, in forum: C Programming
    Replies:
    9
    Views:
    375
    Mark McIntyre
    Feb 20, 2005
  4. Replies:
    4
    Views:
    991
  5. akadelski

    Verify URL/file exists

    akadelski, May 18, 2006, in forum: Javascript
    Replies:
    3
    Views:
    227
    Randy Webb
    May 19, 2006
Loading...

Share This Page