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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:55:58+00:00 2026-05-20T18:55:58+00:00

I have a network share in the intranet that allows write access to everyone

  • 0

I have a network share in the intranet that allows write access to everyone (guest)

So, i wrote a program (mojoportal module, anyway it’s the same, i think) in c# that writes some files in that path, and in visual studio works great.

Now, using the same program in IIS 7.5, does not work, i get this exception:

System.Net.WebException: An exception
occurred during a WebClient request.
—> System.IO.IOException – Logon failure: unknown user name or bad
password.

Well… since the access on the smb share is granted to everybody, i don’t understand why it does not work on IIS…

The code is this:

WebClient wc = new WebClient();
wc.DownloadFile(urltodownload, smbshare);

What it can be?
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. Editorial Team
    Editorial Team
    2026-05-20T18:55:59+00:00Added an answer on May 20, 2026 at 6:55 pm

    Your IIS service not granted to access file share by default. You could try run your site with app pool identity set to Local System, or manually control the identity under which code is executed from web.config:

    <system.web>
      <identity impersonate="true" userName="user with correct rights or admin" password="password"/>
      ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have a console application that needs to access a network share with
I have an Excel spreadsheet that will sit out on a network share drive.
I have a samba network share on a FreeBSD box that I use for
We have a thick-client that needs to access resources on a share where a
i have a project that lies on a network share. The test runner tries
I have a VSTO addin that I published on a network share. In my
I have an application that is deployed via ClickOnce to a network share. I
I'm utilizing some network share folders as part of my program. I realized that
I have a DBF file on a network share that I'm trying to select
I have an app written in C# that lies on a network share. When

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.