Mar 7, 2011
I am new to ASP.net 4.0 and am learning and writing a web site application in VS 2010 that will eventually become our company's intranet web site. As part of the start page, I want to display the user's name in a welcome message like: "Welcome: E Young". The user's login name should come from their Windows login when the log into their computer. Once logged into their computer, they will then start IE8 and access our company's intranet. The start page of our intranet site should display the user's windows login name.
View 3 Replies
The company's intranet is being hosted on a new, virtual file server that is running Windows 2008 R2.I installed IIS 7.5 and have attempted to configure it but I am new to IIS 7.5 also. The users will access the company's intranet via IE 8 using the url for our intranet site. I am developing the ASP.net web site using VS 2010 on my development computer then transferring the files from my computer to the new intranet computer's C:Inetpubwwwroot folder.
That all seems to be working fine except for the Welcome message. When I run the web site project from my VS 2010 IDE on my development computer, I can see my Windows login name correctly displayed on the web page. However, after I copy the two web site files from my development computer to our intranet server's wwwroot folder, then attempt to show the intranet web page from my development computer using IE 8, nothing is displayed. Put another way, my Windows user name displays correctly in VS 2010 IDE on my development computer but not from our intranet. The web.config file has authentication mode="Windows"
IE 8 does have windows authentication enabled on my development computer as does IIS 7.5 on our intranet server yet the web site is not able to pickup the user's windows login name and display it for some reason.
When I look at the Authentication window in IIS 7.5 it only shows the following three authentications: Forms, Anonymous, and ASP.Net Impersonation. I ran a command line program that turned on Windows Authentication, but it does not show Windows Authentication as enabled in the Authentication screen in IIS 7.5. The three authentications I just mentioned are disabled.