Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8025483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:10:43+00:00 2026-06-04T23:10:43+00:00

I am currently migrating a (working) website to the Windows Azure cloud but am

  • 0

I am currently migrating a (working) website to the Windows Azure cloud but am having issues with the UrlRewrite module. The problem is the outbound rules cause an Internal Server Error – the site loads correctly if I disable the rules.

I have checked the order of the modules on the Azure server and it is exactly the same as my local machine and the hosting server. I have disabled static compression with the following line in my web.config:

<urlCompression doStaticCompression="false" doDynamicCompression="true" dynamicCompressionBeforeCache="false" />

Here is an example of the rewrite rule that is causing the issue:

<rule name="cdn rewrite" preCondition="text only">
   <match filterByTags="Img" pattern="^/Images/(.*)$" />
   <action type="Rewrite" value="http://cdn.website.com/{R:0}" />
</rule>

I also have the following precondition defined:

<preCondition name="text only">
   <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/.+$" />
</preCondition>

Don’t know if it’s relevant or not but the site is MVC4 running inside and extra small 2008r2 instance (osFamily=”2″).

I have a workaround at the moment with Application Request Routing but I would rather have the URL rewritten as we don’t plan on using the Azure CDN for the production site.

Anyone managed to get this working on Azure?

Edit – some more info:

The actual error (reported in firebug) says “NetworkError: 500 URL Rewrite Module Error. – http://website.cloudapp.net/“

There is nothing in the logs either in the event viewer or the actual log file relating to this issue.

Actually fixed it while typing this out – see below

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:10:45+00:00Added an answer on June 4, 2026 at 11:10 pm

    As noted by astaykov, there is a registry key that also needs modifying for this to work.

    I’ll add it here for posterity but I imagine its on here already:

    reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite /v LogRewrittenUrlEnabled /t REG_DWORD /d 0 
    

    You must issue an iisreset command or restart the server before the change takes effect.

    original post:

    http://forums.iis.net/p/1165899/1937454.aspx#1937454

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on ClearCase and now migrating to GIT. But we need
I'm currently working on migrating an application from MS-Access to MS SQL Server. In
I am working on a massive site for a client, but their current website
I'm working on a project that is currently migrating from Apache Tomcat 6 to
I'm currently migrating a working app from CakePHP 1.2 to 1.3. Most things seem
I am new to using SSIS 2008 and am currently working on migrating data
I'm working on migrating a fairly large site to a new framework, but we're
I'm currently working on a data migration project and for performance-related issues, I want
We're currently working on a major overhaul for our public website, transitioning from a
I'm currently migrating my LAMP from my Windows Server to a VPS running Debian

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.