ASP.NET MVC on IIS6

It took me a bit, but I figured out how to make the extensions work with IIS 6. First, you need to rework the base routing to include .aspx so that they will be routed through the ASP.NET ISAPI filter. routes.MapRoute( “Default”, // Route name “{controller}.aspx/{action}/{id}”, // URL with parameters new { controller = “Home”, … Read more

IIS: web applications warmup

Some tips on warm up scripts: https://www.andrewconnell.com/blog/SharePoint-developer-tips-and-tricks More info on the IIS site: http://blogs.iis.net/steveschofield/archive/2009/05/30/application-pool-warm-up.aspx Check out the latest news under “Auto-Start Web Applications” section here: http://www.asp.net/LEARN/whitepapers/aspnet4/default.aspx

User ASP.NET runs under

In summary: IIS 5.1 (Windows XP) – it’s a local ASPNET account IIS 6 – by default, application pools run under the Network Service account which is a member of IIS_WPG group IIS 7.0 – still Network Service IIS 7 SP2 / 7.5 – runs under an ephemeral thing called ApplicationPoolIdentity which maps to an … Read more

How can I programmatically stop or start a website in IIS (6.0 and 7.0) using MsBuild?

By adding a reference to Microsoft.Web.Administration (which can be found inX:\Windows\System32\inetsrv, or your systems equivalent) you can achieve nice managed control of the situation with IIS7, as sampled below: namespace StackOverflow { using System; using System.Linq; using Microsoft.Web.Administration; class Program { static void Main(string[] args) { var server = new ServerManager(); var site = server.Sites.FirstOrDefault(s … Read more

What does ‘IISReset’ do?

IISReset stops and restarts the entire web server (including non-ASP.NET apps) Recycling an app pool will only affect applications running in that app pool. Editing the web.config in a web application only affects that web application (recycles just that app). Editing the machine.config on the machine will recycle all app pools running. IIS will monitor … Read more

I have already enabled classic asp support on IIS for windows 7, and configured IIS web for classic asp,Yet .asp page is not being displayed? [closed]

It possible that you haven’t got Classic ASP support installed in IIS. To do this in Windows 7 follow the steps below; How to enable Classic ASP support on IIS for Windows 7 Installing Classic ASP support Goto Control Panel -> Programs and Features Select from the left navigation bar From the Windows Features dialog … Read more

Programmatically create a web site in IIS using C# and set port number

If you’re using IIS 7, there is a new managed API called Microsoft.Web.Administration An example from the above blog post: ServerManager iisManager = new ServerManager(); iisManager.Sites.Add(“NewSite”, “http”, “*:8080:”, “d:\\MySite”); iisManager.CommitChanges(); If you’re using IIS 6 and want to do this, it’s more complex unfortunately. You will have to create a web service on every server, … Read more