Implementation samples of Pluggable MIME Filter (preferably in C#)?
-
20-08-2019 - |
Question
Anyone know of a good sample implementation of a Pluggable MIME Filter for IE, preferably implemented in C#? Or of a pluggable protocol handler?
thanks!
So far I have found
This SO question with sample code
this sample: http://www.bsalsa.com/forum/showpost.php?p=3031&postcount=4 (which is briefly documented here) (both from the SO question above)
This sample from MSFT (but not using C#)
Solution
After working with Microsoft support for a couple of weeks, we determined that MIME filters written in .NET do not work correctly. There appear to be a number of thread-safety issues in the interop layers that cause random crashes of IE.
I've reimplemented my MIME filter in C++ following the same sample you linked to above, and it works fine.
OTHER TIPS
http://www.codeproject.com/aspnet/AspxProtocol.asp is my favorite. Note, however, that using .NET for a protocol handler is generally going to incur a pretty significant performance cost, and there may be a versioning problem if there are other .NET-based components attempting to run in the browser that require a different version of the CLR.
http://www.codeproject.com/KB/IP/DataProtocol.aspx is another option.