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. Advertising

  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. 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. Flip
    Replies:
    3
    Views:
    979
    Tony Morris
    Feb 9, 2004
  2. Steve Kershaw
    Replies:
    1
    Views:
    364
    Brennan Stehling
    Sep 26, 2006
  3. moondaddy
    Replies:
    9
    Views:
    479
    Steven Cheng[MSFT]
    Mar 13, 2007
  4. Replies:
    7
    Views:
    658
  5. Saraswati lakki
    Replies:
    0
    Views:
    1,350
    Saraswati lakki
    Jan 6, 2012
Loading...

Share This Page