<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mvolo.com/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>Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx</link><description>Do you like file icons? I do. They make it pretty easy to visually digest file lists in Windows, when you open a file system folder with explorer. Displaying icons in your web application can also be pretty compelling (for example, to spruce up that boring</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#146</link><pubDate>Fri, 12 Jan 2007 07:47:48 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:146</guid><dc:creator>Bazile</dc:creator><description>This IS really usefull handler. And would be very interseting to see the sources. Of ource they can be seen using Reflector but there will be no author comments.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#151</link><pubDate>Fri, 12 Jan 2007 13:02:13 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:151</guid><dc:creator>Rodrigo</dc:creator><description>Very interesting!</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#153</link><pubDate>Fri, 12 Jan 2007 14:34:06 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:153</guid><dc:creator>Adam</dc:creator><description>Very cool. Looking forward to the source code/tutorial! ;)</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#158</link><pubDate>Sat, 13 Jan 2007 01:03:57 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:158</guid><dc:creator>Kharik</dc:creator><description>Great!!!</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#171</link><pubDate>Mon, 15 Jan 2007 10:38:08 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:171</guid><dc:creator>snow</dc:creator><description>&lt;p&gt;Excelent!!! Waiting for source code... :)&lt;/p&gt;</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#193</link><pubDate>Sat, 20 Jan 2007 02:46:11 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:193</guid><dc:creator>Jason</dc:creator><description>Thanks for the great post.
I am implementing a file list for a client at the moment :)</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#195</link><pubDate>Sun, 21 Jan 2007 03:51:52 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:195</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Score! &amp;nbsp;I had a feeling this was just what the doctor ordered for a lot of people :)&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#202</link><pubDate>Mon, 22 Jan 2007 23:00:39 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:202</guid><dc:creator>Arthur Nugent</dc:creator><description>Mike, Nice job I have a engineering directory with 50k files that this will spruce up nicely

Thanks</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#219</link><pubDate>Wed, 24 Jan 2007 19:31:12 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:219</guid><dc:creator>Martin Payne</dc:creator><description>I am trying to download from mvolo.com but, for some reason, I am redirected to an image that (to put it politely) is telling me that I am trying to download it from elsewhere and I should be trying to download from mvolo.com?</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#220</link><pubDate>Wed, 24 Jan 2007 22:52:17 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:220</guid><dc:creator>Mike Volodarsky</dc:creator><description>Martin, you are running into the &lt;a href="http://mvolo.com/blogs/serverside/archive/2006/11/10/Stopping-hot_2D00_linking-with-IIS-and-ASP.NET.aspx" title="links" target="_blank"&gt;LeechGuard&lt;/a&gt; in action &lt;img src="http://mvolo.com/emoticons/emotion-1.gif" alt="Smile" /&gt;. If something is stripping your referrer header, then the module thinks you are linking to the file directly and redirecting you to the scary clown leech url. I re-configured the module to allow direct access to the files. You will still get redirected if some other website links to the download files directly, which is exactly what I want :) Let me know if you still have issues downloading.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#241</link><pubDate>Fri, 26 Jan 2007 12:07:16 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:241</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;Dont suppose i could get a copy of the source code from you could i?&lt;/p&gt;</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#244</link><pubDate>Fri, 26 Jan 2007 16:00:39 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:244</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;I'll have the source posted shortly ... Just need to clean it up a bit.&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#247</link><pubDate>Fri, 26 Jan 2007 16:44:29 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:247</guid><dc:creator>Mark</dc:creator><description>Mike, I assume that you do know that the referer header is OPTIONAL and no user-agent is required to send it. I know most do, but I'm just sayin'.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#248</link><pubDate>Fri, 26 Jan 2007 17:03:17 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:248</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Sure I do :) &amp;nbsp;Check out the &lt;a href="http://mvolo.com/blogs/serverside/archive/2006/11/10/Stopping-hot_2D00_linking-with-IIS-and-ASP.NET.aspx#31" title="links" target="_blank"&gt;LeechGuard post&lt;/a&gt; for some discussion of that. &lt;/p&gt;</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#469</link><pubDate>Thu, 15 Feb 2007 18:22:56 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:469</guid><dc:creator>Andy</dc:creator><description>Okay I am very new at this web stuff so how do you use this within a dataview.  I want to show the icon and not the file name?

Thanks for any help!</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#493</link><pubDate>Fri, 16 Feb 2007 13:37:58 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:493</guid><dc:creator>Mike Volodarsky</dc:creator><description>Andy, please read up on asp.net page controls at http://quickstarts.asp.net/QuickStartv20/aspnet/Default.aspx.  The sample template page shows how to use the file collection as a data source, from which you can use the data binding syntax inside a data bound control to bind to any field of the DirectoryListingEntry object or computed value based on it.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#584</link><pubDate>Tue, 20 Feb 2007 18:22:25 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:584</guid><dc:creator>Kevin</dc:creator><description>OK, it's been a while since I've done any ASP.NET development so I apologize in advance if this is a stupid question, but where the heck did the "GetIcon.axd" file come from?  All I had when I unzipped the folder where 2 dlls and a config file.  Take pity on someone who's been doing Windows Form development for the past year and a half and tell me what I'm missing.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#599</link><pubDate>Wed, 21 Feb 2007 06:28:29 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:599</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Kevin,&lt;/p&gt;
&lt;p&gt;GetIcon.axd doesnt exist as a file - its a virtual handler mapping to the IconHandler type, which provides request processing for requests to &amp;quot;GetIcon.axd&amp;quot; urls (serving the icon you request). &amp;nbsp;This is the standard way to extend ASP.NET with custom handler functionality.&lt;/p&gt;
&lt;p&gt;Look in the web.config for this mapping, in the &amp;lt;httpHandlers&amp;gt; section for IIS5/6 and &amp;lt;handlers&amp;gt; for IIS7.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#601</link><pubDate>Wed, 21 Feb 2007 06:41:54 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:601</guid><dc:creator>Mike Volodarsky</dc:creator><description>I noticed a reference to IconHandler at http://telerikwatch.com/2007/01/add-windows-icons-to-your-web-app.html.  

They correctly mention that the IconHandler can only display the icons for extensions registered on the web server, so there will be cases where particular files like *.ppt (and other office extensions) may be missing.

While there is no workaround directly, you can always install the IconHandler on your dev XP or Vista machine, use it to capture all the icon PNGs you need, and then just use them as static files on your webserver for icons.  This way, you dont need to go back to square 1 and manually capture / draw your own icons.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#935</link><pubDate>Fri, 23 Mar 2007 22:51:38 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:935</guid><dc:creator>Jerry</dc:creator><description>HELP!!  :-)

I can get this to work to save my life.  I'm running Windows server 2003, IIS 6.

Output of the two DLL files in the BIN folder and (for the sake of testing) replaced my original web.config file with the one provided.

I get the following error:

Parser Error Message: Could not load type Mvolo.ShellIcons.Web.ShellIconHandler from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.

Source Error: 


Line 9:    &lt;system.web&gt;
Line 10:     &lt;httpHandlers&gt;
Line 11:       &lt;add path="geticon.axd" verb="GET" type="Mvolo.ShellIcons.Web.ShellIconHandler" /&gt;
Line 12:     &lt;/httpHandlers&gt;
Line 13:   &lt;/system.web&gt;
 

Source File: C:\Inetpub\Walnut\web.config    Line: 11 

Walnut is the name of my root web folder.

What am I doing wrong?

Much thanks in advance!

Jerry</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#948</link><pubDate>Sat, 24 Mar 2007 22:05:36 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:948</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Jerry,&lt;/p&gt;
&lt;p&gt;ASP.NET is trying to load the ShellIconHandler type from the System.Web assembly, instead of the assembly that contians the type. &amp;nbsp;This could happen if you disabled loading of bin assemblies for your application.&lt;/p&gt;
&lt;p&gt;Try adding the following to the &amp;lt;system.web&amp;gt; section of your web.config:&lt;/p&gt;
&lt;p&gt;&amp;lt;compilation&amp;gt; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;assemblies&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;add assembly=&amp;quot;*&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/assemblies&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/compilation&amp;gt;&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1006</link><pubDate>Mon, 09 Apr 2007 09:20:49 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1006</guid><dc:creator>Ed</dc:creator><description>Hi,
I'm trying to get this to work on Vista x64, and getting the following error, any ideas?

Exception Details: System.ComponentModel.Win32Exception: An attempt was made to reference a token that does not exist


Stack Trace: 


[Win32Exception (0x80004005): An attempt was made to reference a token that does not exist]
   Mvolo.ShellIcons.ShellIcons.GetIconFromShell(String path, Boolean useExtension, Boolean largeIcon) +333
   Mvolo.ShellIcons.Web.ShellIconHandler.ProcessRequest(HttpContext context) +1355
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +610
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +177


Thanks,
Ed
 
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1014</link><pubDate>Tue, 10 Apr 2007 23:54:00 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1014</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;I havent tried this on the 64bit Vista, there may be a 64-bit specific bug that you are hitting. &amp;nbsp;Let me investigate and let you know if I find something.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1079</link><pubDate>Mon, 16 Apr 2007 15:17:00 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1079</guid><dc:creator>Bob</dc:creator><description>Source Please!!!!  :P</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1792</link><pubDate>Mon, 04 Jun 2007 05:31:32 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1792</guid><dc:creator>Krtko</dc:creator><description>Hi,

sorry to disturb you, but I haven't seen any notice about license, or usage policy.

Are there any restrictions?

Thanks for reply.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1800</link><pubDate>Mon, 04 Jun 2007 21:19:30 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1800</guid><dc:creator>Scott Wojan</dc:creator><description>Please O' Please post the source!!
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1807</link><pubDate>Tue, 05 Jun 2007 08:56:19 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1807</guid><dc:creator>Partha</dc:creator><description>I am not able to find out anything from this.....I download the files which consist of 3 files  and i have added the dll in the project. Can u provide me the details code how to use this......</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1894</link><pubDate>Fri, 08 Jun 2007 14:24:43 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1894</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Partha,&lt;/p&gt;
&lt;p&gt;Check out the directory browsing module post for one example on how to use it - basically, all you have to do is unzip the files into the root of your ASP.NET application, and you should be able to use the handler right away by making a request to it as shown above.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1895</link><pubDate>Fri, 08 Jun 2007 14:26:59 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1895</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Krtko,&lt;/p&gt;
&lt;p&gt;You can freely use the binaries for IconHandler here in any application you chose. &amp;nbsp;There is currently no source provided for it - when it is, I will add the license information. &amp;nbsp;I usually use the Microsoft Permissive License.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#1979</link><pubDate>Thu, 14 Jun 2007 03:47:20 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:1979</guid><dc:creator>Krtko</dc:creator><description>Thank you very much, Mike.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#3602</link><pubDate>Tue, 17 Jul 2007 19:14:07 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:3602</guid><dc:creator>Riptide</dc:creator><description>&lt;p&gt;Suggest to add a sample cache mechanism.&lt;/p&gt;</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#3606</link><pubDate>Tue, 17 Jul 2007 21:23:23 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:3606</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Riptide,&lt;/p&gt;
&lt;p&gt;The handler already provides two caching mechanisms: 1) caching the icon bitmap for an extension on the server, so subsequent requests for files with that extension dont have to call the OS for the icon, and 2) allowing the icon to be cached on the client browser.&lt;/p&gt;
&lt;p&gt;Look in the web.config file in the sample for the configuration settings to control this behavior.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#4726</link><pubDate>Sat, 11 Aug 2007 10:43:59 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:4726</guid><dc:creator>midas</dc:creator><description>when we can see the source?</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#9671</link><pubDate>Sat, 27 Oct 2007 11:52:15 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:9671</guid><dc:creator>Bill</dc:creator><description>I have a couple questions here...

1). Is there a way to display the contents of a directory that doesn't contain the files necessary to run the app, nor link back to the directory that contains the files for the app.

2). Is there any way to use a custom icon.dll that is separate from the one that windows uses? For example, i don't want people viewing the directory and seeing a Firefox icon on all html docs, however, I want to be able to see that when I browse them locally on the server in Windows file explorer.

3). If there's no way to be able to do question one, is there a way to exclude any files from being listed in the directory browser? For example, hidden files are shown, but I'd rather them not be. I don't want to not be able to view files by their extension either, for example, I don't want to see the Windows "thumbs.db" file for every folder, but at the same time, I want to be able to view a "mysql.db" file.

Thanks a million!</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#9714</link><pubDate>Sun, 28 Oct 2007 01:50:25 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:9714</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Bill,&lt;/p&gt;
&lt;p&gt;Not sure about your #1 - can you clarify what you mean?&lt;/p&gt;
&lt;p&gt;Re #2 and #3, they make excellent feature requests for the next version :) I have a few other ones, now just need to get the time to implement it ...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>Mike's IIS7 modules - what's coming next</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#9726</link><pubDate>Sun, 28 Oct 2007 07:02:01 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:9726</guid><dc:creator>Mike Volodarsky's ServerSide</dc:creator><description>&lt;p&gt;Over the past several year, I&amp;amp;#39;ve written quite a few modules for IIS7 / ASP.NET. Some of these were&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#9734</link><pubDate>Sun, 28 Oct 2007 07:17:26 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:9734</guid><dc:creator>Bill</dc:creator><description>Thanks for the reply. I guess to clarify my #1, what I meant to say was.. Is there a way for me to use your app, but not show the contents of the app itself, for example; the bin directory, web directory, dirlisting.aspx, or the web.config files? I'd like to be able to set it up so that I can view the contents of "/upload" and it be completely empty since nobody has uploaded any files to it. I don't want users to be able to browse the other stuff mentioned. Maybe I'm not 100% sure on how to set it up right, but if you can offer a suggestion, I'd be very thankful.</description></item><item><title>Email filtering news and tools</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#12847</link><pubDate>Fri, 07 Dec 2007 23:48:59 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12847</guid><dc:creator>Email filtering news and tools</dc:creator><description>&lt;p&gt;As you are looking for porn filtering articles and pages, be certain to tap into everyone of the sources available.&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#12941</link><pubDate>Mon, 07 Jan 2008 19:15:47 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12941</guid><dc:creator>MichaelOSS</dc:creator><description>Having a hard time getting this working with my VB.NET code.  Any suggestions?

&lt;asp:TemplateField HeaderText="Type"&gt;
 &lt;ItemTemplate&gt;
&lt;center&gt;&lt;img id="DocuementType" src='&lt;%# GetDocumentIcon(Container.DataItem) %&gt;' 
         alt='&lt;%# GetDocumentIcon(Container.DataItem) %&gt;' 
         runat="server" title='&lt;%# Eval("DOCNAME") %&gt;' name="Document Type" /&gt;&lt;/center&gt;
  &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;

Where GetDocumentIcon Function gets the extension and returns the icon BUT only if I have the gif for the icon.  </description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#12983</link><pubDate>Wed, 30 Jan 2008 12:27:42 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12983</guid><dc:creator>Mr Peds</dc:creator><description>Hi there,

Could you give us some step, by step process on how to enable this application? I am having a little bit of a hard time trying to enable it for a particular virtual directory I created...</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#12998</link><pubDate>Fri, 08 Feb 2008 08:06:26 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:12998</guid><dc:creator>Clumpton</dc:creator><description>I too am having trouble getting this to work on IIS6.
Directory lister works fine, but no icons. ShellIcon dlls in the same "bin" as the directory lister.
Trying direct access to using /geticon.axd?file=.txt just gives a 404.
No errors that I can see elsewhere.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13073</link><pubDate>Fri, 07 Mar 2008 11:58:15 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13073</guid><dc:creator>Andrew Macdonald</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I would just like to start by saying this is a great helper for those shell icons :)&lt;/p&gt;&lt;p&gt;I have implemented it in a solution I am creating, but I have been noticing a few unhandled exceptions appearing in the event log arising from the use of the handler.&lt;/p&gt;&lt;p&gt;without posting an entire exception trace to this post, below is an excerpt from one of them:&lt;/p&gt;&lt;p&gt;Exception information: &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Exception type: ArgumentException &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Exception message: Win32 handle that was passed to Icon is not valid or is the wrong type. &lt;/p&gt;&lt;p&gt;Request information: &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Request URL: &lt;a href="http://localhost:49573/geticon.axd?file=.nvram&amp;amp;size=small" rel="nofollow" target="_new"&gt;http://localhost:49573/geticon.axd?file=.nvram&amp;amp;size=small&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Request path: /geticon.axd &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;User host address: 127.0.0.1 &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;User: admin &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Is authenticated: True &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;Authentication Type: Forms&lt;/p&gt;&lt;p&gt;Is this something that I&amp;rsquo;m not going to be able to work around, if so, is there a chance that you could release a version of the helper that swallows this specific exception (I know&amp;hellip; really bad) so that end users don&amp;rsquo;t notice the issue ;)&lt;/p&gt;&lt;p&gt;Regards Andy&lt;/p&gt;</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13074</link><pubDate>Fri, 07 Mar 2008 16:15:32 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13074</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Andrew,&lt;/p&gt;
&lt;p&gt;Thanks for letting me know. This shouldnt be happening at all - can you share the full exception stack, and repro steps that cause this to happen? You can email me directly (@microsoft.com).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13184</link><pubDate>Thu, 24 Apr 2008 11:55:35 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13184</guid><dc:creator>Rainer Engblom</dc:creator><description>Hello, I stumbled upon this page while trying to find the reason for the same error message as mentioned above. I'm using a function that extracts the window file icon from a file name, and after a few thousand extractions, it always ends up with that same message. The call I use is 
hIcon = SHGetFileInfo(File, FILE_ATTRIBUTE_NORMAL, ref shinfo, (uint)Marshal.SizeOf(shinfo), SHGFI_ICON | SHGFI_USEFILEATTRIBUTES);
and after that I return System.Drawing.Icon.FromHandle(shinfo.hIcon);

and the execution seems to halt on the line "Bitmap dImg = docIcon.ToBitmap();" where docIcon is the extracted Icon.

The amount of iterations before error is always the same for same file type, but different for different file types.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13187</link><pubDate>Fri, 25 Apr 2008 06:24:55 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13187</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Adam, Rainer,&lt;/p&gt;&lt;p&gt;SHGetFileInfo seems to have a limit on the number of CGI+ icon handles it can have open. After a certain number (around 3000 in one of my tests), it just returns an invalid handle of 0, without indicating failure.&lt;/p&gt;&lt;p&gt;To avoid this, make sure to close the handles when you are done with them. For example, the IconHandler implementation creates a Bitmap over the handle and disposes of the handle immediately. &lt;/p&gt;&lt;p&gt;You can call into the Mvolo.ShellIcons.ShellIcons class to get the icon wrapped in a CriticalHandle to save you the trouble of implementing it (which you should Dispose() right after getting it). It&amp;#39;s in the ShellIcons.dll included with IconHandler.&lt;/p&gt;&lt;p&gt;Adam, if you are seeing this exception, try:&lt;br /&gt;enableServerCaching=&amp;quot;true&amp;quot; &lt;br /&gt;useExtensionOnly=&amp;quot;true&amp;quot;&lt;br /&gt;Passing extensions to the handler (no full file names)&lt;br /&gt;&lt;br /&gt;This should reduce the number of handles that are ever open at any given time.&lt;/p&gt;&lt;p&gt;I have v2.0 coming in the next few days with an improvement that should help avoid this issue.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Mike&lt;/p&gt;</description></item><item><title>IconHandler 2.0: file icons in your ASP.NET applications</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13196</link><pubDate>Sun, 27 Apr 2008 06:57:49 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13196</guid><dc:creator>MVolo's Blog</dc:creator><description>&lt;p&gt;Since its release, IconHandler has been a pretty popular module (on its own and with the custom DirectoryListingModule&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13199</link><pubDate>Sun, 27 Apr 2008 07:01:10 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13199</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;The new version of IconHandler is out at &lt;a rel="nofollow" target="_new" href="http://mvolo.com/blogs/serverside/archive/2008/04/27/IconHandler-2.0-File-icons-in-ASP.NET-applications.aspx"&gt;http://mvolo.com/blogs/serverside/archive/2008/04/27/IconHandler-2.0-File-icons-in-ASP.NET-applications.aspx&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;By the way, you can use the included ShellIcons class in ShellIcons.dll to get icons from the OS, without having to implement the p/invoke goo yourself. It's nice and wrapped in a CriticalHandle too for all your memory leak needs :)&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13203</link><pubDate>Mon, 28 Apr 2008 10:04:20 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13203</guid><dc:creator>Rainer Engblom</dc:creator><description>Yes, thank you. I use the DestroyIcon from user32.dll and it seems to do the job.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13408</link><pubDate>Wed, 30 Jul 2008 17:16:38 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13408</guid><dc:creator>turkey</dc:creator><description>You can call into the Mvolo.ShellIcons.ShellIcons class to get the icon wrapped in a CriticalHandle to save you the trouble of implementing it (which you should Dispose() right after getting it). It&amp;#39;s in the ShellIcons.dll included with IconHandler.</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13469</link><pubDate>Thu, 11 Sep 2008 14:08:53 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13469</guid><dc:creator>Sasha</dc:creator><description>Hello Mike, i guess my question same as Bill's (see October post). I'd like to expose some of the folders on windows server via web, but default sorting of the file and display is pretty rubbish. The example you show means that it displays the content of the folder where your application is. The question is how can i use this look and fill on the other @web enabled@ folders. is there some kind of template that can be applied ? thanks in advance</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13471</link><pubDate>Fri, 12 Sep 2008 05:59:18 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13471</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Hi Sasha,&lt;/p&gt;
&lt;p&gt;You are asking for the &amp;quot;virtual&amp;quot; directory listing. Its a v2.0 feature that I have to add to the module ...&lt;/p&gt;
&lt;p&gt;I've been busy with other things lately so havent gotten a chance to make several of these updates I promised - keep bugging me and I will do it.&lt;/p&gt;
&lt;p&gt;Sorry for the lame answer :(&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Display pretty file icons in your ASP.NET applications with IconHandler</title><link>http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-pretty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx#13515</link><pubDate>Wed, 15 Oct 2008 18:59:16 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13515</guid><dc:creator>Darren Lim</dc:creator><description>Hello Mike, I've been researching this error "Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)" and found this post "http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=285171" which references the ShellIconHandler". Is there any validity to this post. I am using the shellIconHandler and do receive this error sporadically when the site is updated. Thanks, Darren</description></item></channel></rss>