<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Studio 2005</title><link>http://forums.asp.net/138.aspx</link><description>General discussions of Visual Studio 2005.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=162&amp;c=30" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: ASP.NET Development Server Serves Images as "application/octet-stream" Content type</title><link>http://forums.asp.net/thread/2227260.aspx</link><pubDate>Wed, 12 Mar 2008 05:52:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2227260</guid><dc:creator>Benson Yu - MSFT</dc:creator><author>Benson Yu - MSFT</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2227260.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=138&amp;PostID=2227260</wfw:commentRss><description>&lt;p&gt;Hi peelee33,&lt;/p&gt;
&lt;p&gt;As far as I know, there is no way to set MIME type for the build-in ASP.NET Development Server. I would like to know why you do not want to use IIS. Change an existing web projec to use IIS as web server is easy to achieve. Please refer to my reply about how to change web server for exising web project&amp;nbsp;in the following thread:&lt;/p&gt;
&lt;p&gt;do I need to publish my website to be able to access it via server name?&lt;br /&gt;&lt;a href="http://forums.asp.net/t/1168282.aspx"&gt;http://forums.asp.net/t/1168282.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, if you really don’t want to use IIS or IIS is not available on your machine, the alternative is to write a http handler to handle the image type resource&amp;nbsp;and add the &amp;quot;ContentType&amp;quot; manually, such as &lt;u&gt;context.Response.ContentType = &amp;quot;image/gif&amp;quot;;&lt;/u&gt; &lt;u&gt;context.Response.ContentType = &amp;quot;image/jpeg&amp;quot;,&lt;/u&gt; and so on. For more detailed information, please refer to the following links:&lt;/p&gt;
&lt;p&gt;Serving Dynamic Content with HTTP Handlers&lt;br /&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/ms972953.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms972953.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;HTTP Handlers for Images in ASP.NET&lt;br /&gt;&lt;a href="http://www.c-sharpcorner.com/UploadFile/desaijm/HTTPHandlersForImages11152005062705AM/HTTPHandlersForImages.aspx"&gt;http://www.c-sharpcorner.com/UploadFile/desaijm/HTTPHandlersForImages11152005062705AM/HTTPHandlersForImages.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ASP.NET Development Server Serves Images as "application/octet-stream" Content type</title><link>http://forums.asp.net/thread/2217745.aspx</link><pubDate>Fri, 07 Mar 2008 04:07:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2217745</guid><dc:creator>peelee33</dc:creator><author>peelee33</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2217745.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=138&amp;PostID=2217745</wfw:commentRss><description>&lt;p&gt;Is there an easy way to set content type for the &amp;quot;ASP.NET Development Server&amp;quot; that comes with Visual Studio 2005?&amp;nbsp; I&amp;#39;m using the VS 2005 Standard Edition, and it serves images and almost any binary files as &amp;quot;application/octet-stream&amp;quot; which is causing all my code to fail on the development machine because it doesn&amp;#39;t know how to serve the correct &amp;quot;Content-Type&amp;quot; header!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>