Url Rewrite in IIS 7.5 causes Internal server error












18














I have a web application runs @ Windows 2008 R2, ASP.NET v4.0.



I installed the Url Rewrite Module, and started to use it as shown in the official examples.



My problem starts when the <rewrite> tag is added to the web.config under <system.webServer> - actually when I try to browse to any page under this current application, I get 500 - Internal server error.



This is the <rewrite> block I've been adding:



<system.webServer>
<rewrite>
<rules>
<rule name="test1">
<match url="^default/([0-9]+)/([_0-9a-z-]+)" />
<action type="Rewrite" url="default.aspx?id={R:1}&amp;title={R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>









share|improve this question





























    18














    I have a web application runs @ Windows 2008 R2, ASP.NET v4.0.



    I installed the Url Rewrite Module, and started to use it as shown in the official examples.



    My problem starts when the <rewrite> tag is added to the web.config under <system.webServer> - actually when I try to browse to any page under this current application, I get 500 - Internal server error.



    This is the <rewrite> block I've been adding:



    <system.webServer>
    <rewrite>
    <rules>
    <rule name="test1">
    <match url="^default/([0-9]+)/([_0-9a-z-]+)" />
    <action type="Rewrite" url="default.aspx?id={R:1}&amp;title={R:2}" />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>









    share|improve this question



























      18












      18








      18


      0





      I have a web application runs @ Windows 2008 R2, ASP.NET v4.0.



      I installed the Url Rewrite Module, and started to use it as shown in the official examples.



      My problem starts when the <rewrite> tag is added to the web.config under <system.webServer> - actually when I try to browse to any page under this current application, I get 500 - Internal server error.



      This is the <rewrite> block I've been adding:



      <system.webServer>
      <rewrite>
      <rules>
      <rule name="test1">
      <match url="^default/([0-9]+)/([_0-9a-z-]+)" />
      <action type="Rewrite" url="default.aspx?id={R:1}&amp;title={R:2}" />
      </rule>
      </rules>
      </rewrite>
      </system.webServer>









      share|improve this question















      I have a web application runs @ Windows 2008 R2, ASP.NET v4.0.



      I installed the Url Rewrite Module, and started to use it as shown in the official examples.



      My problem starts when the <rewrite> tag is added to the web.config under <system.webServer> - actually when I try to browse to any page under this current application, I get 500 - Internal server error.



      This is the <rewrite> block I've been adding:



      <system.webServer>
      <rewrite>
      <rules>
      <rule name="test1">
      <match url="^default/([0-9]+)/([_0-9a-z-]+)" />
      <action type="Rewrite" url="default.aspx?id={R:1}&amp;title={R:2}" />
      </rule>
      </rules>
      </rewrite>
      </system.webServer>






      asp.net url-rewriting iis-7






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 '15 at 1:55









      pnuts

      48k76295




      48k76295










      asked Jul 26 '10 at 7:19









      Gal VGal V

      1201310




      1201310
























          4 Answers
          4






          active

          oldest

          votes


















          37














          Just had same error and found a fix. You need to install the module for IIS for URL rewrite. you can dowload it here: http://www.iis.net/download/URLRewrite



          Cheers,






          share|improve this answer

















          • 2




            on IIS 8 , but it did not solve the problem, any other way?
            – Chaitanya Gadkari
            Apr 24 '15 at 10:51



















          5














          I had the Url Rewrite Module 2.0 installed as well. However, at some point I had also uninstalled and re-installed iis7, so I believe the rewrite module wasn't registered properly within iis. I was getting the same error as above, even if I just added an empty set of tags to the web.config.



          My solution was to uninstall the Url Rewrite Module (through Programs and Features) and reinstall it using the Web Platform Installer. I stopped iis7 during the install (not sure if it mattered). I did not need to reboot.






          share|improve this answer

















          • 1




            Installing module through Web Platform Installer helped, thanks :)
            – Chaitanya Gadkari
            Apr 24 '15 at 12:49










          • where in 'programs and features' tree do you find URL Rewrite?
            – Tom McDonald
            May 29 '16 at 14:01










          • found it...it is listed under progams and features root. not under windows components.
            – Tom McDonald
            May 29 '16 at 14:05



















          1














          i resolve uninstalling Url Rewrite Module 2.0 from exe installer , installing web plataform from https://www.microsoft.com/web/downloads/platform.aspx, then go to products on web plataform and there, install url rewriter module.
          On windows 7 x86, iis 7.






          share|improve this answer





























            0














            Installer of URL Rewrite Module extension installs the schema of rewrite section defined in file C:WindowsSystem32inetsrvconfigschemarewrite_schema.xml.






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f3332923%2furl-rewrite-in-iis-7-5-causes-internal-server-error%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              37














              Just had same error and found a fix. You need to install the module for IIS for URL rewrite. you can dowload it here: http://www.iis.net/download/URLRewrite



              Cheers,






              share|improve this answer

















              • 2




                on IIS 8 , but it did not solve the problem, any other way?
                – Chaitanya Gadkari
                Apr 24 '15 at 10:51
















              37














              Just had same error and found a fix. You need to install the module for IIS for URL rewrite. you can dowload it here: http://www.iis.net/download/URLRewrite



              Cheers,






              share|improve this answer

















              • 2




                on IIS 8 , but it did not solve the problem, any other way?
                – Chaitanya Gadkari
                Apr 24 '15 at 10:51














              37












              37








              37






              Just had same error and found a fix. You need to install the module for IIS for URL rewrite. you can dowload it here: http://www.iis.net/download/URLRewrite



              Cheers,






              share|improve this answer












              Just had same error and found a fix. You need to install the module for IIS for URL rewrite. you can dowload it here: http://www.iis.net/download/URLRewrite



              Cheers,







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Oct 27 '10 at 10:54









              Ricardo MRicardo M

              37133




              37133








              • 2




                on IIS 8 , but it did not solve the problem, any other way?
                – Chaitanya Gadkari
                Apr 24 '15 at 10:51














              • 2




                on IIS 8 , but it did not solve the problem, any other way?
                – Chaitanya Gadkari
                Apr 24 '15 at 10:51








              2




              2




              on IIS 8 , but it did not solve the problem, any other way?
              – Chaitanya Gadkari
              Apr 24 '15 at 10:51




              on IIS 8 , but it did not solve the problem, any other way?
              – Chaitanya Gadkari
              Apr 24 '15 at 10:51













              5














              I had the Url Rewrite Module 2.0 installed as well. However, at some point I had also uninstalled and re-installed iis7, so I believe the rewrite module wasn't registered properly within iis. I was getting the same error as above, even if I just added an empty set of tags to the web.config.



              My solution was to uninstall the Url Rewrite Module (through Programs and Features) and reinstall it using the Web Platform Installer. I stopped iis7 during the install (not sure if it mattered). I did not need to reboot.






              share|improve this answer

















              • 1




                Installing module through Web Platform Installer helped, thanks :)
                – Chaitanya Gadkari
                Apr 24 '15 at 12:49










              • where in 'programs and features' tree do you find URL Rewrite?
                – Tom McDonald
                May 29 '16 at 14:01










              • found it...it is listed under progams and features root. not under windows components.
                – Tom McDonald
                May 29 '16 at 14:05
















              5














              I had the Url Rewrite Module 2.0 installed as well. However, at some point I had also uninstalled and re-installed iis7, so I believe the rewrite module wasn't registered properly within iis. I was getting the same error as above, even if I just added an empty set of tags to the web.config.



              My solution was to uninstall the Url Rewrite Module (through Programs and Features) and reinstall it using the Web Platform Installer. I stopped iis7 during the install (not sure if it mattered). I did not need to reboot.






              share|improve this answer

















              • 1




                Installing module through Web Platform Installer helped, thanks :)
                – Chaitanya Gadkari
                Apr 24 '15 at 12:49










              • where in 'programs and features' tree do you find URL Rewrite?
                – Tom McDonald
                May 29 '16 at 14:01










              • found it...it is listed under progams and features root. not under windows components.
                – Tom McDonald
                May 29 '16 at 14:05














              5












              5








              5






              I had the Url Rewrite Module 2.0 installed as well. However, at some point I had also uninstalled and re-installed iis7, so I believe the rewrite module wasn't registered properly within iis. I was getting the same error as above, even if I just added an empty set of tags to the web.config.



              My solution was to uninstall the Url Rewrite Module (through Programs and Features) and reinstall it using the Web Platform Installer. I stopped iis7 during the install (not sure if it mattered). I did not need to reboot.






              share|improve this answer












              I had the Url Rewrite Module 2.0 installed as well. However, at some point I had also uninstalled and re-installed iis7, so I believe the rewrite module wasn't registered properly within iis. I was getting the same error as above, even if I just added an empty set of tags to the web.config.



              My solution was to uninstall the Url Rewrite Module (through Programs and Features) and reinstall it using the Web Platform Installer. I stopped iis7 during the install (not sure if it mattered). I did not need to reboot.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 23 '14 at 21:12









              secretwepsecretwep

              517823




              517823








              • 1




                Installing module through Web Platform Installer helped, thanks :)
                – Chaitanya Gadkari
                Apr 24 '15 at 12:49










              • where in 'programs and features' tree do you find URL Rewrite?
                – Tom McDonald
                May 29 '16 at 14:01










              • found it...it is listed under progams and features root. not under windows components.
                – Tom McDonald
                May 29 '16 at 14:05














              • 1




                Installing module through Web Platform Installer helped, thanks :)
                – Chaitanya Gadkari
                Apr 24 '15 at 12:49










              • where in 'programs and features' tree do you find URL Rewrite?
                – Tom McDonald
                May 29 '16 at 14:01










              • found it...it is listed under progams and features root. not under windows components.
                – Tom McDonald
                May 29 '16 at 14:05








              1




              1




              Installing module through Web Platform Installer helped, thanks :)
              – Chaitanya Gadkari
              Apr 24 '15 at 12:49




              Installing module through Web Platform Installer helped, thanks :)
              – Chaitanya Gadkari
              Apr 24 '15 at 12:49












              where in 'programs and features' tree do you find URL Rewrite?
              – Tom McDonald
              May 29 '16 at 14:01




              where in 'programs and features' tree do you find URL Rewrite?
              – Tom McDonald
              May 29 '16 at 14:01












              found it...it is listed under progams and features root. not under windows components.
              – Tom McDonald
              May 29 '16 at 14:05




              found it...it is listed under progams and features root. not under windows components.
              – Tom McDonald
              May 29 '16 at 14:05











              1














              i resolve uninstalling Url Rewrite Module 2.0 from exe installer , installing web plataform from https://www.microsoft.com/web/downloads/platform.aspx, then go to products on web plataform and there, install url rewriter module.
              On windows 7 x86, iis 7.






              share|improve this answer


























                1














                i resolve uninstalling Url Rewrite Module 2.0 from exe installer , installing web plataform from https://www.microsoft.com/web/downloads/platform.aspx, then go to products on web plataform and there, install url rewriter module.
                On windows 7 x86, iis 7.






                share|improve this answer
























                  1












                  1








                  1






                  i resolve uninstalling Url Rewrite Module 2.0 from exe installer , installing web plataform from https://www.microsoft.com/web/downloads/platform.aspx, then go to products on web plataform and there, install url rewriter module.
                  On windows 7 x86, iis 7.






                  share|improve this answer












                  i resolve uninstalling Url Rewrite Module 2.0 from exe installer , installing web plataform from https://www.microsoft.com/web/downloads/platform.aspx, then go to products on web plataform and there, install url rewriter module.
                  On windows 7 x86, iis 7.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 23 '18 at 22:11









                  user2313319user2313319

                  111




                  111























                      0














                      Installer of URL Rewrite Module extension installs the schema of rewrite section defined in file C:WindowsSystem32inetsrvconfigschemarewrite_schema.xml.






                      share|improve this answer


























                        0














                        Installer of URL Rewrite Module extension installs the schema of rewrite section defined in file C:WindowsSystem32inetsrvconfigschemarewrite_schema.xml.






                        share|improve this answer
























                          0












                          0








                          0






                          Installer of URL Rewrite Module extension installs the schema of rewrite section defined in file C:WindowsSystem32inetsrvconfigschemarewrite_schema.xml.






                          share|improve this answer












                          Installer of URL Rewrite Module extension installs the schema of rewrite section defined in file C:WindowsSystem32inetsrvconfigschemarewrite_schema.xml.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 4 '17 at 15:54









                          tibxtibx

                          14628




                          14628






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f3332923%2furl-rewrite-in-iis-7-5-causes-internal-server-error%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Lallio

                              Unable to find Lightning Node

                              Futebolista