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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:20:29+00:00 2026-05-24T02:20:29+00:00

I have a Web Handler that I’m using to read a file and then

  • 0

I have a Web Handler that I’m using to read a file and then stream it out to the client. This works fine if i use the file path on the local drive:
D:\Path\To\My\File.flv

If I use a sharename, however:
\ServerName\ShareName\File.flv

I get a “Logon failure: unknown user name or bad password.”

The share is open to everyone, full control.

I have impersonation enabled and have the following in my handler:

context.Response.Write("Context User: " + ((WindowsIdentity)context.User.Identity).Name + "<br />");
context.Response.Write("Windows Identity: " + WindowsIdentity.GetCurrent().Name + "<br />");

When I configure the IIS application to run as with anonymous access using a specific account, I get the following

Context User:
Windows Identity: SpecificAccount

When I configure IIS to not use anonymous access, but use windows authentication, I get

Context User: MyAccount
Windows Identity: MyAccount

It does not change the error message for the share vs nonshare.

I find this webpage regarding Web Handlers and impersonation:
http://weblogs.asp.net/drnetjes/archive/2005/06/06/410508.aspx

but, I’m not exactly sure how to implement that, or, if it would even solve the issue.

Any ideas?

  • 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-24T02:20:29+00:00Added an answer on May 24, 2026 at 2:20 am

    Gaah… I hate answering my own questions, but here’s what the problem was:

    The share and file permissions were set properly. This is an old windows 2003 machine and when I use a new application pool (which I did with this particular application), I always have a problem with permissions.

    The solutions was (facepalm) reboot the server.

    I’m sorry for all the braincells that the 60 some odd people wasted on this.

    Thanks again for all your help.

    Stupid IIS… Stupid Windows 2003… must rebuild server someday

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

Sidebar

Related Questions

I have a web service that queries data from this json file, but I
I have an ASP.NET web form. This web form has an event handler that
I have a web page with DIV s with a mouseover handler that is
I have a web site in asp.net that uses a master page. In this
I have a REST web service that returns an xml result like this: -
I have a Cherokee installation that I'm using to serve a few web applications
I have spring intrecpetor (implements org.springframework.web.servlet.handler.HandlerInterceptorAdapter), that redirects to login facebbok page, after that
I have written a web application that posts a file via http to a
In a web handler routes configuration I have the following Regex: ('/post/(\w+)/.*', foo.app.WebHandlerFooClass) this
I have seen (and read) about using Dispatcher.BeginInvoke to ensure that UI updates occur

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.