Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deploying An ASP.Net MVC Web Application To IIS7

DZone's Guide to

Deploying An ASP.Net MVC Web Application To IIS7

· Integration Zone
Free Resource

Learn how API management supports better integration in Achieving Enterprise Agility with Microservices and API Management, brought to you in partnership with 3scale

The next installment in my exciting series where I capture what I know about deploying Dovetail Mobile Agent which could be boiled down to How To Be a Web Server Administrator in the year 2008. Moving from IIS6 this time we take a look at getting an ASP.Net MVC application deployed to IIS7. Thankfully this is pretty easy.

To try out this experience I created a Vista SP1 Enterprise virtual machine and added the IIS 7 windows feature. I know. I know. Most enterprise customers will want to use Windows 2008 as their favorite IIS7 platform, I had to use Vista because I use VMWare Server v1.x which supports Vista not Windows 2008.

Revenge of the Basics

Install the .Net 3.5 Framework.

Add the Internet Information Services Windows Feature To Vista. In Windows 2008 this process is very similar in cases you will need to make sure the .NET Extensibility, ASP.NET, ISAPI Extensions, and ISAPI Filters features are added.

  • Open the Control Panel and type “Feature” in the search window. Look for something like “Turn Windows Features On or Off”
  • Make sure the appropriate Application Development Features are enabled.
[img_assist|nid=5380|title=|desc=|link=none|align=none|width=431|height=612]

Copy web application files to a directory on your web server.

Create a Web Application pointing to this directory.

Dovetail Mobile Centric Configuration

For Dovetail applications like Dovetail Mobile Agent that use the Dovetail SDK we recommend that you give the web application a dedicated Application Pool.

[img_assist|nid=5381|title=|desc=|link=none|align=none|width=320|height=287]

The Application Pool should be configured to use the .NET 2.0 Framework in Integrated pipeline mode.

[img_assist|nid=5382|title=|desc=|link=none|align=none|width=536|height=370]

You will also need to edit the web application configuration file named web.config :

  • To contain the desired database connection information.
  • The URL to the Dovetail Seeker search web service.

Test out your Web Application

Just making sure everything works...

[img_assist|nid=5383|title=|desc=|link=none|align=none|width=331|height=484]

Unleash the power of your APIs with future-proof API management - Create your account and start your free trial today, brought to you in partnership with 3scale.

Topics:

Published at DZone with permission of Kevin Miller. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}