olidev
olidev

Reputation: 20644

"File or Directory not found" IIS 7

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.

Upvotes: 1

Views: 20343

Answers (2)

Andiana
Andiana

Reputation: 1952

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

Upvotes: 1

Duke Hall
Duke Hall

Reputation: 582

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

Upvotes: 1

Related Questions