IIS - wont serve an .ini file

I have a .ini file in the virtual directory of IIS. When i try to open the same in IE i get file not found HTTP 404 error.

http://www.virtualdirectoryname/sample.ini

Any inputs.

Please suggest some solution.

Thanks, Karthick

Answers


By default, IIS will only serve files for which the extension matches a defined MIME type. See the following support article for reference - http://support.microsoft.com/kb/326965

To allow .ini files to be downloaded, follow the steps from the KB article linked above:

  1. Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
  2. Click MIME Types.
  3. Click New.
  4. In the Extension box, type the file name extension that you want (in this case, .ini).
  5. In the MIME Type box, type application/octet-stream.

Note: this is specific to IIS 6 or IIS 5.x - The process is slightly different for IIS 7.x


Need Your Help

Getting checkbox value in controller

django

I have a template that creates a text entry field and a checkbox. When the checkbox is unchecked, the text field is disabled and cleared, when it's checked, it's enabled, and the user may or may no...

MongoAlchemy embedded documents

python flask mongoalchemy

Does anyone know how to create a model with an embedded document with mongo alchemy? I've search in the documentation, but there isn't any example about doing that.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.