Total Pageviews

Tuesday, February 14, 2012

IIS Adding MIME Type

If you want to access some file  through web server and it is giving the 404 error

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

 then must configure the MIME Type as follows

Open Internet Information Services (IIS) Manager:
If you are using Windows Server 2008 or Windows Server 2008 R2:
On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
If you are using Windows Vista or Windows 7:
On the taskbar, click Start, and then click Control Panel.
Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.
In the Connections pane, go to the site, application, or directory for which you want to add a MIME type.
In the Home pane, double-click MIME Types.

In the MIME Types pane, click Add... in the Actions pane.
In the Add MIME Type dialog box, add the file name extension and MIME type, and then click OK.

 file name extension  .001
 MIME type  application/octet-stream

Now the file can be accessible.

No comments: