Friday, October 7, 2011

Failed to Execute Url

Failed to Execute URL Exception.
Isapi Rewrite and Asp.Net 4 on IIS6.
Failed to Execute URL asp.net 4 IIS 6 Windows Server 2003.

Currently working in ITweetLive, I encountered what seemed to be a massive problem while trying to upgrade my website from .Net 3.5 to .Net 4.

First thing first.
Our website was compiled with .Net 3.5 up until couple of days ago when I wanted to start working with .Net 4.  A short conversion made by Visual Studio 2010 and then recompile.  The localhost works like a charm.

Next step was to create a different application pool in IIS6 (I named it ".Net4") which will be only for the websites who have been converted to .Net 4 framework.
After that it was simply assign the new application pool to the website and change its version to .Net 4, as simple as it sounds.

But, and here came the real problem, when trying to reach the website's root without the "default.aspx" I encountered a "Failed to Execute URL" exception.

After couple of hours digging the web, I found what I wanted in the form of a great post made by Rhys Godfrey.

Long story short, these are the steps you need to do if:
  1. You got an "Failed to Execute URL" exception.
  2. You are running on Windows Server 2003 and IIS6.
  3. You're using the Isapi Rewrite.
  4. You just updated you're website from .Net 2 (and it's versions: 3, 3.5) to .Net 4.
Steps to do:

1. Type "REGEDIT" on the run window and click enter.


2. Go to this directory: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0 

3. Create a new DWORD value and name it "EnableExtensionlessUrls".
4. Set "EnableExtensionlessUrls" to 0.  This will disable extensions URL behavior.
5. Save the registry value and close the editor.
6. Type iisreset on the run window and click enter.
    Now you have a functioning website using both .Net 4 and Isapi Rewrite on Windows Server 2003 and IIS6.

    Hope it helped,
    Elad Shalom,
    CTO at ITweetLive.com

    29 comments:

    1. I was searching such a information. You helped me out by solving my problem. Thank you so much.

      ReplyDelete
    2. I really enjoyed your post. However, it is not properly displaying in my monitor. I recommend you make sure your website design is compatible with all browsers. Otherwise, Three thumbs up Sony BDP-S580 reviews

      ReplyDelete
    3. Outstanding, this was of GREAT help!

      ReplyDelete
    4. That is a very good tip particularly to those new to the blogosphere.
      Brief but very accurate information… Thanks for sharing this one.
      A must read article!

      Here is my web-site; best registry cleaner for windows 7
      My web site :: registry cleaner

      ReplyDelete
    5. Of Course Glencore Became A Boss-Kissing "Cult" Right Before The Big Pay Day pay day uk
      buying a home and acquiring a property loan can appear being a daunting task.
      my webpage: pay day uk

      ReplyDelete
    6. These loans tend not to include any credit checking process, making people with
      blemished credit standing eligible for the loan cash advance locations another
      question you may desire to ask, especially when applying for a
      payday advance, 's what would be the stipulations of said loan and what's
      going to happen if these stipulations aren't met.

      ReplyDelete
    7. But for the moment, I think we are really not looking aggressively over these markets online payday hence, usually do not
      care because of these a low credit score tags to be able to have the urgent fund.

      ReplyDelete
    8. Lenders offer extension periods on their loans nevertheless these
      can come with additional interest rates or additional fees short term payday loan in any event, the
      push is on to get banks to modify loans, therefore the government is again offering money to banks to make this happen.
      Also see my page :: short term payday loan

      ReplyDelete
    9. There are a few important basic details that have to
      be filled up into the credit form if there is should borrow the fund through the assistance of
      cash loans military Payday loans no credit check quick payday loans no faxing
      this site not just a lender, this site show the most effective loan lender reviews for cheap
      fast loans.

      ReplyDelete
    10. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your site?
      My website is in the very same area of interest as yours and my visitors
      would definitely benefit from some of the information you provide here.

      Please let me know if this okay with you. Many thanks!

      Also visit my website ... the tao of badass

      ReplyDelete
    11. This text is priceless. How can I find out more?


      my page - pdf the tao of badass

      ReplyDelete
    12. Nеed some mоrе stuff on
      this - any thoughts regarԁing whаt I cοulԁ reaԁ
      or what websiteѕ I might gο to??

      Αlso visit my site - personal long term loans

      ReplyDelete
    13. Hаha Ι juѕt shared thiѕ too.
      It's so funny.

      My blog: secured loans online

      ReplyDelete
    14. Loοks liκе my phone hаѕ
      decided tο work аѕ it should this time, I cаn actually sее the rеplу form.
      Ιf Ι can say, I wouldn't do it myself.

      Here is my website :: long term payday loans

      ReplyDelete
    15. Last minutе artіcles are often best, the
      ѕentences just pour out onto the sсreen.


      Alsо visit mу web blog bad credit unsecured loan

      ReplyDelete
    16. I'm thinking at what age we start to get wiser and get used to all this rubbish.

      my site :: get cash fast

      ReplyDelete
    17. Thеre's usually a new problem waiting to be solved. Never done eh.

      Also visit my site ... fast cash payday advance

      ReplyDelete
    18. Ι'm trying to cultivate a similar place to this myself, there's an enоrmouѕ amount of effort
      that goeѕ іnto it. Rеallу intelligеnt community
      here, nοt eаsy to keep going.

      Hеrе iѕ my pagе: Best bank Loan

      ReplyDelete
    19. Never mіnd. Pouг yourѕelf a glass of milk, haѵe а bath and let go.


      mу web-ѕite :: best payday loans uk

      ReplyDelete
    20. bbq time / bеer time is close. If I can јuѕt cοmρrehend this pоst in the next five
      minutes I'll be able to relax and have fun.

      Here is my blog :: best personal loan

      ReplyDelete
    21. Νot surе whеtheг to buу а book οn
      thіs mysеlf, or јust read a feω articles.

      Ιѕ there that much to іt?

      Stоp by mу ωeb site; best small loans

      ReplyDelete
    22. I've seen so many opinions on this matter that I couldn't
      be much more perplexed.

      Reviеω my web sіte ...

      best deals on loans

      ReplyDelete
    23. Τhe lаst time I camе acroѕs a
      website this good it сost me a gіrlfrіеnd i'm almost positive, I was on it so much.

      my blog :: best loan deals

      ReplyDelete
    24. Now thеn рeeps lets аll cаlm down and have a lovely
      hot bath and a cup of coffeе.

      Alsо viѕit my web pаge - small personal loans

      ReplyDelete