简体   繁体   中英

Why am I getting a 404.3 error in IIS 8.0?

So, I have actually been searching around Stack Overflow for about 20 minutes and still can't seen to find a definitive answer to my question.

I have had this error a few times, so I just did a fresh install of IIS 8.0 (I'm running Windows 8) and still got this error when I try to go to localhost/test1.aspx:

截图

As you can see (if you clicked the link), it is a 404.3 error.

Here are some of my details:

  • I am running Windows 8
  • I have IIS 8.0
  • My physical directory is C:\\inetpub\\wwwroot\\test1.aspx
  • I am following a "W3Schools" tutorial correctly and I still can't get it to work right
  • I installed every feature that was available with IIS 8.0

Here is my source code for the "test1.aspx" file:

<!doctype html>
<html>
<body>
<%
response.write("My first ASP script!")
%>
<body>
</html>

Anyone have any answers for me please? They would be greatly appreciated.

A 404.3 http status in IIS means that there is no MIME type defined for your file extension of aspx . You can also see in the error message that the StaticFileModule is handling the request. This is the module that serves static files from your hard drives.

It works correctly because it should not serve *.aspx files from the hard drive to the browser. You should not add a MIME type for aspx .

The problem is that the module that handles aspx files is not working correctly. There can be multiple reasons for this.

In IIS manager open your web site and double-click the Handler Mappings icon, there should be three entries for *.aspx (PageHandlerFactory).

Also make sure that the application pool for your site has a .NET CLR Version set.

If these properties are not set, there is a problem with your setup.

Im sorry if you have tried this, but try this url entry: localhost/test1.asp

Ill add here, and please understand im not trying to be rude, that the reason you are not being well received is your questions are not really questions as such. The title of the post is what your question should be and just putting a '?' on the end of it doesn't make it a question. Basically it comes down to formatting the question correctly.

IE "IIS 8.0 404.3 error?" isn't a question nor does it give anything except something you could put into Google. Putting it this way might be better: "Why am I getting this a 404.3 error using ISS 8.0?"

Just some advice for next time :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM