1
votes

I have added an application on IIS 7 and the physical path selected correctly.

However, I got this problem when browsing the application:

404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. the problem is also when I tried it like this: http://abc.com/default.aspx

but if I tried it with: http://abc.com/myimage.png => works

the server has installed .NET Framework 2.0, and also 4.0

Any idea what is wrong here?

THanks in advance.

2

2 Answers

1
votes

Do you have the Default Document set to your homepage correctly?

0
votes

One solution: Try to add the type to IIS Mime types. Ex: I meet this error when try to click a mkv video file.

  1. Open IIS Manager
  2. Selection "MIME Type" feature
  3. Add...
  4. Enter this content File name extension: mkv Mime types: mkv/mkv
  5. OK
  6. Restart the website Click the file again, its worked