Upload files to a remote server

前端 未结 3 1335
梦如初夏
梦如初夏 2021-01-15 05:27

I need to upload files from my asp.net (C#) page residing in the web server to a remote server.

I managed to upload files to remote server from localhost using this

3条回答
  •  萌比男神i
    2021-01-15 05:52

    The account your application runs under must have write permissions to the folder you are trying to upload the file to: \\xx.xxx.xx.xx\Folder\. So you will have to configure the application pool in IIS to run under an account that will have sufficient permissions. Go to the application pool properties in the IIS management console where you will be able to specify an account to be used to run the application. By default it uses a built-in account which won't have any access to shared resources. Take a look at the following article which explains how to do so.

提交回复
热议问题