Two similar websites, one can't see remote server share.

Discussion in 'ASP .Net' started by seannakasone, Mar 3, 2009.

  1. seannakasone

    seannakasone Guest

    Hello, I have two web sites with same server-side code, but one fails to
    make the GetFolder() call, see below.

    <body>
    <%
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var filelist = fso.GetFolder("\\\\devamfmapps\\pdf");
    ....

    The error is: System.IO.DirectoryNotFoundException: Exception from
    HRESULT: 0x800A004C (CTL_E_PATHNOTFOUND)

    It's been a challenge to find a difference between the two websites, any
    suggestions on what I could check?
     
    seannakasone, Mar 3, 2009
    #1
    1. Advertisements

  2. seannakasone

    sean_n Guest

    Thanks for you help.

    It turned out to be the web.config.

    I removed <identity impersonate="true"/> and that fixed it.
     
    sean_n, Mar 4, 2009
    #2
    1. Advertisements

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. Eric
    Replies:
    2
    Views:
    2,204
    Patrice
    Jun 1, 2004
  2. Flip
    Replies:
    3
    Views:
    1,213
    Tony Morris
    Feb 9, 2004
  3. news.frontiernet.net
    Replies:
    6
    Views:
    1,443
    news.frontiernet.net
    Apr 16, 2004
  4. Steve Kershaw
    Replies:
    1
    Views:
    544
    Brennan Stehling
    Sep 26, 2006
  5. moondaddy
    Replies:
    9
    Views:
    583
    Steven Cheng[MSFT]
    Mar 13, 2007
  6. Replies:
    7
    Views:
    823
  7. Maria
    Replies:
    0
    Views:
    165
    Maria
    Apr 13, 2005
  8. Saraswati lakki
    Replies:
    0
    Views:
    1,699
    Saraswati lakki
    Jan 6, 2012
Loading...