ASP.NET MVC 3: Intranet Application template
ASP.NET MVC 3 Tools Update introduced new project template called Intranet Application. The main difference between internet and intranet application templates is the way how users are authenticated. In this posting I will talk about Intranet Application template and compare it to Internet Application template. Also I will give you references to guides that help you configure your intranet application.
Creating new intranet application is easy. Just create new ASP.NET MVC 3 web application and select Intranet Application as template.
Intranet application is practically empty web application with home controller and support for Windows authentication. As Windows authentication is optional choice when configuring web application you should do some manual configuring to get intranet application run.
As intranet application uses Windows authentication it doesn’t need sign-in, registering and password reminder forms. Also it does not need model classes for authentication. By all other parts the intranet application is the same as internet application.
Enabling Windows authentication
If you are using IIS Express then follow these steps:
- Right click on the project in Visual Studio and select Use IIS Express.
- Click on your project in the Solution Explorer to select the project.
- If the Properties pane is not open, make sure to open it (F4).
- In the Properties pane for your project:
- Set "Anonymous Authentication" to "Disabled".
- Set "Windows Authentication" to "Enabled".
Now try to run your application to see if you are correctly authenticated.
If you have other server than IIS Express then take a look at the following MSDN library page: How to Create an Intranet Site Using ASP.NET MVC.