Uploading files to file server using webclient class

前端 未结 3 1790
别那么骄傲
别那么骄傲 2020-11-30 07:03

Currently I have an application that receives an uploaded file from my web application. I now need to transfer that file to a file server which happens to be located on the

3条回答
  •  生来不讨喜
    2020-11-30 07:46

    when you manually open the IP address (via the RUN command or mapping a network drive), your PC will send your credentials over the pipe and the file server will receive authorization from the DC.

    When ASP.Net tries, then it is going to try to use the IIS worker user (unless impersonation is turned on which will list a few other issues). Traditionally, the IIS worker user does not have authorization to work across servers (or even in other folders on the web server).

提交回复
热议问题