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

  • SEARCH
  • Home
  • 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 671211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:20:54+00:00 2026-05-14T00:20:54+00:00

I have a winforms, and it connecting wit webservice. Webservice has method which create

  • 0

I have a winforms, and it connecting wit webservice.

Webservice has method which create folder

Directory.Create(path);

Webservice is at company server, and this folder must me create at another disc in out company.

When I invoke this method, i get exception "Access denied to path..."

When webservice was running at my computer everything was ok.

I have full access to this network disc.

But how to set full access to my company server??

When I check this method:

[WebMethod]
        public string GetNameOfUser()
        {
            return WindowsIdentity.GetCurrent().Name;
        }

I get <string>NT AUTHORITY\NETWORK SERVICE</string>

Rest of webmethods without directory instructions working properly

Edited Structure

Computer A is in domain and there is running win forms

Server A : there is running webservice

Network disc: there are folders with important files for winforms application

yes, we have a domain.Computer A has access to network disc.

  • 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-05-14T00:20:54+00:00Added an answer on May 14, 2026 at 12:20 am

    As I understand, your application tries to create a folder which resides on a different server than the web application.

    Your web application is running under a local account NT AUTHORITY\NETWORK SERVICE. In order to access a network share you need it to be running under an account available on both machines, for example a domain account.

    If both the web server and the server with the network share are on a domain, you can:

    1. Create a domain account
    2. Grant the account write access to the parent folder where you want to create new folders
    3. Make the Application Pool on your web server run under the domain account

    This will should let your web application create foldera on the other server.

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

Sidebar

Ask A Question

Stats

  • Questions 342k
  • Answers 342k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I have a feeling that you might be missing some… May 14, 2026 at 5:14 am
  • Editorial Team
    Editorial Team added an answer (apply #'append '((a b c) (d e f) (g h… May 14, 2026 at 5:14 am
  • Editorial Team
    Editorial Team added an answer I think second variant is better, because you have "balanced… May 14, 2026 at 5:14 am

Related Questions

I am writing a CRUD using winforms, connecting to MS SqlServer 2008 via Linq2Sql.
I currently use the Linq to SharePoint to retrieve data from several SharePoint lists.
Does anyone have any opinions over the best ways to connect a client to
I have a .NET Winform Click-Once-deployed fat client that talks to three databases, 2
Ok, I know this has been asked a thousand times before, but no conclusive

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.