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 87045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:20:28+00:00 2026-05-10T22:20:28+00:00

I’ve written a new application in a network I haven’t worked in before, and

  • 0

I’ve written a new application in a network I haven’t worked in before, and am running into a problem.

If I have the following C# code:

FileStream fs = File.Create(@'\\MyServer\MyShare\testing.txt'); fs.Close(); 

In a console application, this code executes correctly.

In an ASP.Net application, I receive this error: Logon failure: unknown user name or bad password.

In the ASP.Net application, if I add in identity impersonate=’true’, I get this error: Access to the path ‘\MyServer\MyShare\testing.txt’ is denied.

I’ve never ran into that logon failure message before; where is this coming from? If I create an application on the server and have it write to the phsyical location, it works fine (so security there is good), it just seems as though the security to the share is not working (even though it has ‘Everyone’ set to full writes), or there is something missing at the server level in which I’m not allowed to view anything in general.

Does anyone know what I’m missing here? I’ve written other applications that did similar things and have never run into this problem

Thanks!

  • 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. 2026-05-10T22:20:29+00:00Added an answer on May 10, 2026 at 10:20 pm

    Update:

    So I think I posted this too soon… The reason it was failing on my localhost was due to the directory being set as allow anonymous access (so the page wasn’t impersonating; the user was ”).

    It also started working on the server as well; however, nothing was changed there… I don’t know if something was triggered during the app’s downtime/shutdown or what, but everything’s working as expected.

    Thanks for the comments!

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

Sidebar

Related Questions

No related questions found

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.