Monday, February 19, 2007

Move Intranet from one Server to Another

I have moved my intranet (mainly sport signups) from a Windows 2000 machine to a Windows 2003 machine.

Basically just copied the files from one server to another. Any full path references I have changed the servername.

Trying to access an asp page and get the following

"Access Denied. You must log into the Domain to access this web page."

The above message was generated by my code. Good God!!!!

It was beacuse the getlogonuser function was returning nothing. This was because allow annononoymous was set. See the below article for info.


http://support.microsoft.com/kb/251326

Extract of the above article I used

Setting IIS permissions

IIS will return an empty string ("") for the user name if Allow Anonymous is enabled on the page. Allow Anonymous must be turned off at the page level in IIS to return the network user name. To do so, follow these steps:
1.
In IIS, right-click the ASP file, and then click Properties. Click the File Security tab.
2.
If you are using IIS 5.0 on Microsoft Windows 2000 Server, under Anonymous Access and Authentication Control, click the Edit button, and then click to clear the Anonymous Access check box. If you are using IIS 4.0 on Windows NT 4.0, click to clear the Allow Anonymous Access check box.
3.
Make sure that the Integrated Windows authentication check box or the Basic authentication check box is checked. If the Basic authentication check box is checked, make sure that SSL is used on the Web site. For more information, click the following article number to view the article in the Microsoft Knowledge Base

No comments: