Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7751281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:30:26+00:00 2026-06-01T11:30:26+00:00

I have a WCF service as part of a client/server application I am working

  • 0

I have a WCF service as part of a client/server application I am working on. The user clicks a button in the client, and it calls the service to generate a file, and then export that file to a network share.

This obviously works fine in development, but when placed on the server, I continuously get the following message:

Access to the path '\\servername\folderpath\folder\filename.ext' is denied

The remote folder has very permissive permissions – everyone has full control of this folder right now. The service also runs under an Active Directory account, and that user has also been granted full control to the folder. While searching through SO and other sites, this seemed to be the common failure, or issues were related to asp.net and IIS. This is a windows service hosted service.

Here is a sample of my rather simple code:

// export the file to path
string theFileContents = "why wont this save?";
string theFilePath = System.Configuration.ConfigurationManager.AppSettings["filelocation"];
using (StreamWriter file = new StreamWriter(theFilePath + accountNumber + ".ext"))
{
     file.WriteLine(theFileContents);
     file.Close();
}

and here is how I have it setup in my app.config:

<add key="filelocation" value="\\server\folderpath\folder\"/>

Im pretty sure that if I updated my client to receive the string and write it out to a file on the share, it would work due to this setup (as it does in development, or when the service is running under my account in debug in VS2010) – but I really didn’t want it to have to make that trip – and just go from server to server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:30:28+00:00Added an answer on June 1, 2026 at 11:30 am

    This ended up being a permissions issue that was uncovered using the rmtshare tool, Explorer was displaying this incorrectly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service being called as part of a transaction. If the
I have inherited a WCF service which acts as a file cache (each file
I have a wcf service with the following web.config in the server. <?xml version=1.0
I developed a websocket service and client follow http://blogs.microsoft.co.il/blogs/idof/archive/2012/03/06/what-s-new-in-wcf-4-5-websocket-support-part-2-of-2.aspx . When i test it,i
I have set up a WCF service on a server which lives in its
I have a non-wcf server that I call from WCF client and I need
I have a WCF service that is called by a Windows Mobile application running
i have wcf service hosed in sharepoint application. But when i try to call
I have a WCF Service that uses a X.509 certificate as client credentials. Most
I have a WCF service that is hosted in IIS6. The important part of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.