[Solution] accessing the shared directory of the WCF Service

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.