Username and Password are Required to Run an Application

Problem

You run your application and get a dialog asking for a username and password, such as:

Enter username and password for "" at http://localhost

User Name:

Password:

Solution

Most likely this is because your security settings on the Microsoft IIS server are configured to allow only certain users to log-in.  You may check the security settings under the Internet Information Services Manger:

Windows Start menu, Programs, Administrative Tools, Internet Information Services Manager

Expand the default website, right mouse click on the default website or the virtual directory, and select Properties.  Go to the Directory Security tab, click on Edit and check to see if Anonymous Access is checked.  If it is checked, then make sure you have a valid user name and password specified below it.  Also, check to see if Integrated Windows Authentication is checked.  Press OK on both dialogs and run your application again.

See Also

Application Runs But No Data is Displayed