Tuesday, 15 September 2009

Controller can't be found gotcha

IIS needs to be set-up to use the Microsoft MVC framework or you will get an error along the lines of 'controller can't be found'. A new file extension needs to be added to IIS.
  1. Open the IIS MMC snap-in.
  2. View the properties for the webs site in question.
  3. Go to the Home Directory tab.
  4. Click Configuration...
  5. Add a new extension (.mvc).
    1. Map the extension to the aspnet_isapi.dll.
    2. Limit to the following verbs: GET,POST,HEAD,DEBUG.
    3. Uncheck the 'Check that file exists' and 'Script engine' checkboxes.