Unable to use IIS URL Rewrite rules on local build deploy

James Skimming's Avatar

James Skimming

17 Feb, 2015 12:14 AM

We use web.config configured URL rewrite rules in a couple of ways (usually to enforce HTTPS) on some of our sites.

When deployed (to Azure websites) these rules work fine, but when deployed to the local build server, the rules break the website with the following error:

The requested page cannot be accessed because the related configuration data for the page is invalid.

I've created a simple test repo on GitHub to demonstrate the issue TestAppVeyorUrlRewrites, and linked the build to AppVeyor here.

The master branch shows the site as broken when tested, and the RemovedRewrite broanch shows the site working when the rewrite rules are removed.

I've tried various fixes, along the lines of installing new features onto the build server, with the following command, and while it does install additional features, it does not solve the problem.

Install-WindowsFeature Web-WebServer -IncludeAllSubFeature

Without remote desktop access to the build server I cannot diagnose the issue further. Is this something that can be set-up on the Build VM image?

  1. Support Staff 1 Posted by Feodor Fitsner on 17 Feb, 2015 12:31 AM

    Feodor Fitsner's Avatar

    https://github.com/JSkimming/TestAppVeyorUrlRewrites/pull/1

    I've been confused at first when didn't find URL Rewrite under Windows Features. Apparently, it's a separate product which could be easily installed with Web PI.

  2. 2 Posted by James Skimming on 17 Feb, 2015 03:38 PM

    James Skimming's Avatar

    Great it works a treat, thanks for your help.

  3. James Skimming closed this discussion on 17 Feb, 2015 03:38 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac