.NET Web Application Publishing and Authentication Issues
Posted on 2010-09-14
I am developing a very simple web app using .NET and C#. I am very new to developing web applications using .NET and I seem to be making it more difficult than it should be.
I am using Visual Studio 2010 Professional, and I am trying to publish the web app on Windows Server 2008 with IIS and .NET 4 installed.
The problem that I am having is that the default template that is created when I create a website in Visual Studio has 2 options for authentication ('Local Network' and 'From the Internet'). I want to use Windows Authentication, but I am unsure how to remove the references to the Logon pages that were automatically created.
Everything works perfectly when debugging the app. But when I publish it with Windows Auth enabled I get an 'Access Denied' Error. I have enabled read access for all users so i'm unsure what I am doing wrong.
Also, when I use the built-in login form the CSS file does not load.
I would be fine with disabling all authentication if it will fix the issues. I am running the app on an internal network.
Thanks for any help.