Request.ServerVariables("REMOTE_USER") not working after move to new server

My application cannot grab the network ID anymore after moving it from a win2000 server to win2003


this returns a null

IIS is setup with anonymous access and also integrated windows authentification in the directory security properties.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You asked this question few days back. You have to remove "anonymous access" for this to work.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dba123Author Commented:
I did that, no luck on this app though.  I assume because when AD is setup on your server, that asp object method call doesn't work anymore.  I remember reading about this somewhere.
>>IIS is setup with anonymous access and also integrated windows authentification in the directory security properties.

If Anonumous Access is allowed, it will take precedence and Windows Authentication will not be used. So you need to remove it.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

dba123Author Commented:
Anonymous is not checked in the IIS properties for this site.
Is this application a virtaul directory with application? If yes, you need to do the same at the virtual directory level.
dba123Author Commented:
does it take a minute for it to take in effect on the network for the website?  I thought any changes in IIS are instant.  Anything that needs to be refreshed besides the browser on the user's side or anything in the server-side?
Not in IIS6. But make sure that the browser is not caching the page. Press Ctrl-F5.
dba123Author Commented:
no, it is not a virtual directory.  It is a website.

We have a default website which contains the directory in question but I also have setup an actual website in IIS based on that directory and assume it's using the website.  But I also just to be sure, made sure that the properites of that folder under the default website also doesn't have Anonymous checked.  So either or, neither has that checked so everything should be fine.
dba123Author Commented:
I always refresh the browser, that's not the problem.  I even opened up the same page in Opra
dba123Author Commented:
I also tried to replace the code with Request.ServerVariables("LOGON_USER"), no luck
Open the site in Firefox or Netscape. Does it ask you to enter username/password? IF not the site is beign accessible Anonymously. Restart the IIS although it is not required.
dba123Author Commented:
I did in Opra, isn't that a good enough test?
dba123Author Commented:
ok, I did it in another browser, it isn't prompting me or anyone else.
IE sends the LAN authentication accross without asking. I am not sure about Opera. Mozila based browser will not send user info without prompting.

Restart the IIS. If this doesn't work, create a new site on a different port and access it using a Mozila based browser.
What was it?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.