none
Cross server folder browsing is not working in web applications. RRS feed

  • Question

  • Hello Everyone,

    We have two servers, Server1 and Server2, both having the shared folders under each can be accessible on any server.

    We have implemented a folder browse functionality , which works as expected when we access through Visual Studio in development environment.

    But when the application deployed on both the servers IIS and tries to access cross server path , Its giving an error access to the path is denied.

    Please give any thought if you have, why this behavior through web application?? even though the cross folder access works with folder explorer.

    Regards,

    Shankar

    Monday, December 5, 2016 4:05 PM

All replies

  • Let me guess, your "folder browsing" function is created as client side function, not server side one (say, to call Directory.GetDirectories() and display the result yourself on a grid), right? Much like trying to launch notepad.exe on client side, it will not work this way.

    If your code is really the kind that call Directory.GetDirectories() to enumerate folders and display them on your custom UI, try check and see if your ApplicationPool have access to that shared folder. It'd be better if you can run the application pool under a normal domain user account and access the share as UNC path rather than mapped network drive.

    • Proposed as answer by Kristin Xie Friday, December 16, 2016 9:15 AM
    Tuesday, December 6, 2016 6:29 AM
    Answerer
  • Hi Shankar,

    >>But when the application deployed on both the servers IIS and tries to access cross server path , Its giving an error access to the path is denied.

    As far as I know, Web server is used as a reverse-proxy server that receives Web requests and then forwards them to several intranet applications for processing. For more information, please refer to https://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing

    Best regards,

    Kristin


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, December 6, 2016 6:38 AM