How to write to a shared folder on an Unix machine from code inside an ASMX service?

StackOverflow https://stackoverflow.com/questions/5065514

  •  03-12-2019
  •  | 
  •  

문제

One of our team is working on an ASMX service. The service use to write some files on the same machine. We used to provide rights to the ASPNET user on the target folder.

Now, the policy has changed and the writing need to be done on a file system provided as a shared folder (mapped drive) from an Unix machine. Since then, there is an exception of authorisation.

Can somebody guide for the solution please?

도움이 되었습니까?

해결책

After the wait period over on SO, and with my continuous trials, I could come out with some work around. So now I use a System.Diagnostics.Process.Start(string fileName, string arguments, string userName, SecureString password, string domain) and the command is simply a copy command. This solves the issue.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top