|
-
Aug 24th, 2005, 06:18 PM
#1
Thread Starter
Addicted Member
IUSR_2003ServerIIS
OK, this is nutts. I have an asp.net app running on a windows 2003 server. I have my site directory security settings in IIS set to Integrated Windows authentication with anonymous access disabled. In my code I am using the directoryInfo class to access a folder on my server to serve up downloadable files. Instead of using the user I logged in as when I first hit the site "mydomain\myuser" It is trying to access the directory as "IUSR_2003SERVERIIS" That is the default user for anonymous access. What the hell? does the directory info class ignore IIS settings and use whatever the hell it feels like. Is there any way to force it to use the user I logged in as? I'm trying to restrict access to my shared folders only to the people I give read permission to. I can't do that if every user looks like they are "IUSR_2003SERVERIIS".
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Aug 26th, 2005, 12:37 AM
#2
Re: IUSR_2003ServerIIS
Of course that's odd, but it might be something else. Does this happen to all of your ASP.NET projects?
-
Aug 26th, 2005, 05:10 PM
#3
Thread Starter
Addicted Member
Re: IUSR_2003ServerIIS
Got it. for any one who cares you have to set the WindowsImpersonationContext to whatever user you're using. Why it defaulted to The iis default user with integrated security checked, I dunno, but it did.
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|