404 Error Asp.net 2.0
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/General ASP.NET/Installation and Setup/IIS6, ASP.NET 2.0 and the 404 Problem IIS6, ASP.NET 2.0 and the 404 Problem RSS 8 replies Last post Feb 22, 2006 07:35 PM by Leonid Tsybert ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply Naka None 0 Points 4 Posts IIS6, ASP.NET 2.0 and the 404 Problem Jan 23, 2006 02:19 PM|Naka|LINK I originally posted this in the IIS forum, but they told me to try this here. A link to my original thread is here: http://forums.asp.net/1174613/ShowPost.aspx I am trying to get an ASP.NET 2.0 site up and running on one of my development servers. I cant for the life of me get them to run on any of the machines that use IIS6. I have scoured the internet and tried everything that I have found in these forums, or on other blogs but nothing has worked. I will list the things I have tried so everyone knows where I am at. I have tried enabling the ASP.NET Web Service Extension, and it is on, for both 2.0 and 1.1. I have used the regiis exe on the 2.0 framework folder. I have made sure the app_offline.htm file is NOT in the folder. Everytime I try to run this on IIS6 I get a 404 Resource Not Found Error. It does however work fine on IIS5. I am out of ideas, so if anyone could give me some more insight as to what to try, I would greatly appreciate it... ASP 1.x works fine, I tried a hello world app, when set to ASP.NET 2.0 it doesnt work, if its 1.x it works fine. The log entires are: 2006-01-19 17:59:58 W3SVC1 192.168.1.16 GET /ping/default.aspx - 80 - 192.168.1.74 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727) 404 0 0 2006-01-19 18:35:32 W3SVC1 192.168.1.16 GET /helloworld/index.aspx - 80 - 192.168.1.74 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+.NET&
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign http://forums.asp.net/t/956172.aspx?IIS6+ASP+NET+2+0+and+the+404+Problem up .axd files generate a 404 error up vote 13 down vote favorite 2 Why do all of my .axd files generate a 404 error when on our production server? asp.net iis share|improve this question edited May 15 '12 at 1:13 MPelletier 10.2k106296 asked Jul 8 '09 at 14:45 januszstabik 63251326 Do .aspx files work? What version of ASP.NET is installed? http://stackoverflow.com/questions/1098548/axd-files-generate-a-404-error –jrummell Jul 9 '09 at 13:35 add a comment| 8 Answers 8 active oldest votes up vote 6 down vote accepted You need to create a MIME type for that extension in IIS: To define a MIME type for a specific extension, follow these steps: Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties. Click HTTP Headers. Click MIME Types. Click New. In the Extension box, type the file name extension that you want (for example, .axed) In the MIME Type box, type application/octet-stream. Apply the new settings. Note that you must restart the World Wide Web Publishing Service or wait for the worker process to recycle for the changes to take effect. In this example, IIS now serves files with the .axed extension. share|improve this answer answered Jul 8 '09 at 15:19 Alex 95311024 Nope its not that. I have a feeling that the server is stripping out querystring parameters from .axd files and .asmx files as my webservices dont work either. Is anybody aware of something that would prevent this (no its not the verb
October 02, 2009 3:21 PM As mentioned at the end of my previous post on handling errors with ASP.NET, handling "404 Not Found" errors are particularly problematic (if you haven't read it yet, please do http://www.andornot.com/blog/post/Handling-404-errors-with-ASPNET.aspx so). And looking around, the vast majority of information out there on it is not http://serverfault.com/questions/29487/404-when-page-exists-iis-5-asp-net-4-0 complete, misinformed, or flat-out wrong (but I greatly appreciate all efforts!). And I would argue that this is because ASP.NET implementation of 404 error handling is flat-out-wrong. So with my super hero cape on, here I come to wobbly save the day! The typical ASP.NET way to handle 404 errors is to put something like the following in your Web.config: 404 error
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top 404 when page exists - IIS 5, ASP.NET 4.0 up vote 6 down vote favorite 2 I have a webserver running Server 2003 Datacenter and IIS 5 which is hosting a variety of ASP.NET 2.0 websites. I'm attempting to add an ASP.NET 4.0 website which I wrote via the VS2010 Beta, and I have .NET 4.0 Beta 1 installed on the server. The website appears to be configured correctly; anonymous access is on, it points to the right folder, and is set to asp.net 4.0. Why might it be giving me a 404 error when I browse to it, both locally and remotely? asp.net http-status-code-404 iis .net-4.0 share|improve this question asked Jun 22 '09 at 0:14 tsilb 5091615 2 Wow, 4 hours later and this thread is #1 on Google for "asp.net 4.0" 404 -- W2G on SEO, Jeff! –tsilb Jun 22 '09 at 4:21 Im amazed at how quick google picks up on serverfault. I posted a question, deleted it 5 minutes later, but Google still had it 24 hours later as the #1 query for my search term! All because it was up for 5 minutes. –Mark Henderson♦ Jun 22 '09 at 4:33 add a comment| 5 Answers 5 active oldest votes up vote 6 down vote accepted Is logging turned on? If it isn't, turn it on. If it is on, check to see of a corresponding entry is written to the log file, and check to see if all its details match up. If no entry is being written, then it's possible that the wrong website in IIS is serving the content for your request (check the hostname it's listening on). Lastly, are you sure it's IIS 5? I thought 2003 shipped with IIS 6? share|improve this answer answered Jun 22 '09 at 2:29 Mark Henderson♦ 51.1k21135210 Yep; logs reflect the 404. 2009-06-22 00:09:40 192.168.0.51 GET /Default.aspx - 82 - 192.168.0.111 Mozilla/4.0+ (compatible;+MSIE+8.0;+Windows+NT+6.1; +WOW64;+Trident/4.0;+SLCC2; +.NET+CLR+2.0.50727; +.NET+CLR+3.5.30729; +.NET+CLR+3.0.30729; +Media+Center+PC+6.0; +InfoPath.2; +.NET+CLR+4.0.20