Server Application Error on IIS for ASP.NET

Friday, July 20, 2007


It was a hectic day today trying to figure this one out.  Last night I uninstalled IIS 6 from my machine.  Looking back now, I can’t really remember why I did that.  I then re-installed IIS and started re-creating my ASP.NET applications.  When I first attempted, I got a strange XML representation of my page.  This should be an obvious error.  I have overlooked registering ASP.NET on the server (aspnet_regiis.exe -i and regsvr32.exe aspnet_isapi.dll).  This is too easy for a guy like me!  Then… crash n’ burn….

Server Application Error… Very nice.  And so self explanatory.  So I started going through all the motions to troubleshoot it and came up with nothing.  The worst part is all the forums kept telling people to check the event log.  But to my dismay, it seemed I was the only one that had nothing in the event log.  Let me repeat this so that anyone Googling this will end up here.  No entries in the event log.  Nada!


The first place I actually got a clue to where the problem was is in %windir%\iis6.log  In here there was a bunch of FAIL keywords.  As it turns out, you must have Microsoft Distributed Transaction Coordinator (MSDTC) service running when installing IIS.  Not sure why, but thats how it is.  I always turn off services I don’t need in Windows XP and this (I assumed) was one of them.  Oh well.  I enabled the service, uninstalled IIS, re-installed IIS, did all the fun registering and got it working.  Hopefully this will help someone out there out of some frustrating moments…


  1. http:// says:

    Thank you very much. I went through the same runaround and Experts Exchange could not help me, MS has nothing on it. And yes the generous read the log is an insult to any user…

    Thanx a bunch. You are the man… I still cannot access localhost, because it asks me for user ID and password, which has not been set yet and I supply the Administrator’s ones and it still fails. But that is another problem. Many thanx…


  2. http:// says:

    Thanks a lot Mike. I too was having the same problem and was searching through all the forums looking for help and finally ended up here and the solution provided by you solved my problem. Thanks again for posting the solution.


  3. http:// says:

    Server Application Error:

    The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

    >> IIS won’t open localhost in the web. uninstall IIS and VS.Net and nothing works!

    Please Help!

  4. http:// says:

    same problem with me , where can i see if the Distributed Transaction Coordinator (MSDTC) is on ?

  5. MikeBosch says:

    You should be able to find it by going to START > RUN > services.msc

  6. http:// says:

    Wow I started MSDTC and reinstall IIS , and worked!

  7. http:// says:

    Wonderful! It works! Thank you very much!

  8. http:// says:

    Hi, I had a similar problem and for those that the solution above doesn’t work, try to uninstall both the .Net framework and the IIS and then install the IIS BEFORE you install the .Net Framework(s).

    Also take in account having the MSDTC running while doing so.

    Thanks =)

  9. sdpetersen says:

    Magnificent! Solved all my woes in a matter of minutes – wish I found this before I wasted so much time yesterday!

  10. http:// says:

    Thnkssssss thinksssssss thanksssss
    it’s working

Leave a Reply