Environment:
Computer A: winform program;
Computer B: A File Upload WCF Service is deployed on IIS. The service configuration file has been added.
<Identity impersonate = "true" Password = "1234" username = "test"/> // The account is stored in both computer B and computer C.
;
Computer C: published sharing path;
When the winform program of a connects to the WCF Service of B to upload files, the WCF Service of B saves the files to the shared path of C.
Result: The path cannot be accessed.
System. unauthorizedaccessexception: access to the path "" is denied.
Comparison: In the same operation, both wevservice and. aspx can normally access the shared path and perform operations.
Expectation/ultimate goal: Find a solution for accessing the shared path in WCF.
No related solutions were found on the internet, but several were found for the same problem.
So here, I want to ask the various great gods in the park. Why? Is there any solution? Thank you.
Exclude: reason for insufficient Permissions
Because the other two methods (WebService and. aspx) are the same before the [Asp.net simulation] authentication method is configured. After you use the [Asp.net simulation] authentication, you can operate normally.
So I was wondering if it was because WCF could not call [Asp.net simulation] identity verification? Or is this configuration invalid for WCF?
[Solution] accessing the shared directory of the WCF Service