getting HTTP error 404 for no reason RRS feed

  • Question

  • User2055999601 posted

    Please go to http://www.mm-theory.com and observe the HTTP Error 404.

    This website is a webapp (with a master page) programmed in Visual Studios Express 2012 for Web. It was targeted for Framework 4.0 and Published with the File System method. I then manually uploaded it to my Windows Server 2003 machine running IIS 6.0.

    For some reason, it thinks the default page is not there, but it is.

    Under documents, I have Default.htm and nuts_and_bolts.aspx at the top of the list, and both files exist in the wwwroot directory. The App pool is MMTheoryAppPool (which I've tried restarting) with MMTheoryApp as the main app for my website. I copied it from the default app. Under the ASP.NET tab, I have the ASP.NET version set to 4.0.30319.

    The web.config file looks like this:

    <?xml version="1.0"?>



            <customErrors mode="Off"/>

            <compilation targetFramework="4.0"/>   




    I've googled this problem and the solution is always to allow the target ASP.NET version in the Web Server Extensions, but it's already allowed on my machine. I've also come across enabling directory browsing but that's on as well.

    Can anyone tell me what's going on?

    Monday, January 28, 2013 11:32 PM


All replies

  • User-1499466209 posted


    Please go to http://www.mm-theory.com and observe the HTTP Error 404
    Observed it.

    I think the problem is (at least) a DNS issue

    c:\dig>dig www.mm-thory.com
    ; <<>> DiG 9.3.2 <<>> www.mm-thory.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1205
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    ;www.mm-thory.com.              IN      A
    com.                    649     IN      SOA     a.gtld-servers.net. nstld.verisign-grs.com. 1359449029 1800 900 604800 8

    You've got no DNS record for www.mm-thory.com

    That will be the first thing to have to be able to access the website.

    Tuesday, January 29, 2013 3:50 AM
  • User-1731511703 posted

    I see the first bit of confusion in that you typed www.mm-theory.com but the link appears to be a typo at www.mm-thory.com.  If I type www.mm-theory.com in my browser, I see the behavior you described.  Putting in default.html manually redirects me to nuts_and_bolts.aspx.

    What is the line in your web logs when you hit the page and get the 404?

    Tuesday, January 29, 2013 9:55 AM
  • User-2064283741 posted

    Even more confusion.

    default.html doesn't exist

    it is


    that redirects to nuts_and_bolts.aspx

    Now the simplest solution here is just to add


    to the top of the default docs list. It will go through them in order.


    Tuesday, January 29, 2013 11:55 AM
  • User-1731511703 posted

    Good catch, Rovastar.   Default.html was a typo on my part, I meant to type default.htm. 

    Any way, the www logs will show the sub status code if you have it enabled for logging.  Using this reference, you may be able to find out more information as to why a 404 is being generated based on that.


    That will enable you to better troubleshoot why default.htm is not working in IIS 6 when you have it listed as a default doc because HTML pages appear to be loading properly on your site.

    Tuesday, January 29, 2013 12:01 PM
  • User2055999601 posted

    Thanks everyone for your suggestions.

    You've got no DNS record for www.mm-thory.com

    There shouldn't be any "mm-thory" anywhere. Where did you find that? How can I correct it?

    What is the line in your web logs when you hit the page and get the 404?

    This is the last line in the log after trying to visit the site:

    2013-01-30 02:08:48 GET /pdt.htm mods 80 - Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html) 404 0 2

    I don't know what it means (or why it says 2:08--it's 7:23 PM here), but the error code seems to be 404 0 2.

    The site that you linked me to says: "404.2 - Web service extension lockdown policy prevents this request."

    All my web service extensions are set to "allowed" though.

    Come to think of it, I used to have a file called pdt.htm in the mm-theory.com website which I would sometimes reference as "pdt.htm?mods" (it's the "GET /pdt.htm mods" portion of the line above that made me think of this). If this is what it is, why would it still be referencing this file, and how would I correct it?

    Tuesday, January 29, 2013 9:47 PM
  • User-1499466209 posted

    There shouldn't be any "mm-thory" anywhere. Where did you find that? How can I correct it?
    In your first post. And now I know that was a typo : the displayed link is actually 'http://www.mm-theory.com' but when you click on it, you're redirected to 'http://www.mm-thory.com' and that's what I did...

    Wednesday, January 30, 2013 4:16 AM
  • User-1731511703 posted

    The substatus is actually the number right after 404 so your error code is 404.0, which is file not found.  With that being said, I found a post that you might find helpful and it looks like it has a good chance of fixing your issue:


    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Wednesday, January 30, 2013 10:54 AM
  • User2055999601 posted

    Nice! That did the trick. Thanks Rick.

    Wednesday, January 30, 2013 8:55 PM
  • User-1731511703 posted

    You are most certainly welcome, gib99.  I'm glad that your issue is resolved. 

    Thursday, January 31, 2013 6:56 AM