<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://dotnetfreak.co.uk/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>Kevin Gearing&amp;#39;s Blog : ASP.NET, Windows</title><link>http://dotnetfreak.co.uk/blog/archive/tags/ASP.NET/Windows/default.aspx</link><description>Tags: ASP.NET, Windows</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Firefox, BinaryWrite and Compression</title><link>http://dotnetfreak.co.uk/blog/archive/2007/07/14/firefox-binarywrite-and-compression.aspx</link><pubDate>Sat, 14 Jul 2007 09:15:00 GMT</pubDate><guid isPermaLink="false">6329f370-38d9-4d4b-8419-567856985e22:1589</guid><dc:creator>dotNetFreak</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/rsscomments.aspx?PostID=1589</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/commentapi.aspx?PostID=1589</wfw:comment><comments>http://dotnetfreak.co.uk/blog/archive/2007/07/14/firefox-binarywrite-and-compression.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;Whilst writing the sound support for FormShield v2, I came across quite an interesting issue, well it was interesting once I'd found the answer, but up until then I wasn't in the best of moods.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Basically, FormShield uses the BinaryWrite() method to write an audio file to the requesting browser to provide sound support. The issue was that this worked fine in IE, Safari and Opera, but for some reason Firefox didn't seem to like it.&lt;/P&gt;
&lt;P mce_keep="true"&gt;The strange thing about it was that it would play the first x number of characters, but then stop. On a Mac, it would only play the first character before giving up.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Thinking that it must be something to do with how I was writing the file out, or perhaps the file size, or even my code that builds the sound file, I started to pull the code apart.&lt;/P&gt;
&lt;P mce_keep="true"&gt;A few hours later, I was no further forward.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I came to the conclusion that it couldn't be my code, after all, writing images out this way seemed to work fine in every browser.&lt;/P&gt;
&lt;P mce_keep="true"&gt;So, I started to look around the problem. I then stumbled across an old post related to writing out PDF files on the fly using BinaryWrite and whilst the issue didn't see to be the same, or affect the same browser (they were talking about IE), one word was mentioned that rang a bell - "Compression".&lt;/P&gt;
&lt;P mce_keep="true"&gt;I suddenly remembered that HTTP compression was enabled in IIS on this particular server - Quickly turning it off and running an 'iisreset' and testing resulted in a perfect playback.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Thankfully all of the code I changed was only a CTRL-Z away from being put back to how it was originally and 10 minutes later I retested it and it worked fine.&lt;/P&gt;
&lt;P mce_keep="true"&gt;So, why does HTTP compression in IIS only break Firefox? No idea - After spending seven hours on the problem I really couldn't care.&lt;/P&gt;&lt;img src="http://dotnetfreak.co.uk/aggbug.aspx?PostID=1589" width="1" height="1"&gt;</description><category domain="http://dotnetfreak.co.uk/blog/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/Windows/default.aspx">Windows</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/IIS/default.aspx">IIS</category></item><item><title>Slow Opening Web Project with Visual Studio .NET and w3wp.exe</title><link>http://dotnetfreak.co.uk/blog/archive/2005/02/18/slow-opening-web-project-with-visual-studio-net-and-w3wp-exe.aspx</link><pubDate>Fri, 18 Feb 2005 12:51:00 GMT</pubDate><guid isPermaLink="false">6329f370-38d9-4d4b-8419-567856985e22:252</guid><dc:creator>dotNetFreak</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/rsscomments.aspx?PostID=252</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/commentapi.aspx?PostID=252</wfw:comment><comments>http://dotnetfreak.co.uk/blog/archive/2005/02/18/slow-opening-web-project-with-visual-studio-net-and-w3wp-exe.aspx#comments</comments><description>&lt;P&gt;Following on from my previous post, I've also started to experience another problem. This time with Visual Studio .NET and it taking forever to open a Web Project.&lt;/P&gt;
&lt;P&gt;Whilst testing I noticed that opening the Web with FrontPage was as quick as I would expect, however when opening with Visual Studio, it took forever. After it had been opened with Visual Studio, trying to re-open with FrontPage was also extremely slow.&lt;/P&gt;
&lt;P&gt;I noticed on the server, that two w3wp.exe processes were being spawned, one running under 'System' and one running under 'Network Service'. Whilst opening with Visual Studio, if I switch to the server and kill the process running under 'System', it opens the project immediately... strange!&lt;/P&gt;
&lt;P&gt;Research on Microsoft's knowledgebase points to an article which has a hotfix available. However, upon contacting Microsoft, it would appear that this hotfix has been withdrawn and replaced with a new one, which I was sent.&amp;nbsp;Unfortunately this didn't solve the problem, and as I'm not prepared to pay the £185+ fee to find out what's causing it, killing a second process when it happens, is a cheap workaround.&lt;/P&gt;
&lt;P&gt;I believe MS are aware of this problem and it should be fixed in the .NET Framework v1.1 SP2.&lt;/P&gt;&lt;img src="http://dotnetfreak.co.uk/aggbug.aspx?PostID=252" width="1" height="1"&gt;</description><category domain="http://dotnetfreak.co.uk/blog/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/Windows/default.aspx">Windows</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/IIS/default.aspx">IIS</category></item><item><title>ASP.NET, w3wp.exe, 100% CPU Usage and McAfee VirusScan Enterprise</title><link>http://dotnetfreak.co.uk/blog/archive/2005/02/15/asp-net-w3wp-exe-100-cpu-usage-and-mcafee-virusscan-enterprise.aspx</link><pubDate>Tue, 15 Feb 2005 17:15:00 GMT</pubDate><guid isPermaLink="false">6329f370-38d9-4d4b-8419-567856985e22:244</guid><dc:creator>dotNetFreak</dc:creator><slash:comments>22</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/rsscomments.aspx?PostID=244</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://dotnetfreak.co.uk/blog/commentapi.aspx?PostID=244</wfw:comment><comments>http://dotnetfreak.co.uk/blog/archive/2005/02/15/asp-net-w3wp-exe-100-cpu-usage-and-mcafee-virusscan-enterprise.aspx#comments</comments><description>&lt;P&gt;Recently I've been experiencing a strange problem on one of our development servers that was hosting an ASP.NET application. The server in question was running Windows Server 2003 with IIS6 and VirusScan Enterprise v8.0i.&lt;/P&gt;
&lt;P&gt;I was noticing that any ASP.NET page that was being hit would cause the CPU usage to jump to 100% for a period of a few seconds, before returning to it's typical 2-3% - The offending process? w3wp.exe.&lt;/P&gt;
&lt;P&gt;I ruled out (as far as possible) the application as the fault, simply because the same application was running on a Windows 2000 Server as well as an identical Windows Server 2003 without any issue.&lt;/P&gt;
&lt;P&gt;Running adplus (Windows Debugging Tools) revealed some interesting information, but nothing concrete. Further investigation pointed me to possibly McAfee VirusScan Enterprise, which had recently been upgraded and was a different version to that running on the other servers.&lt;/P&gt;
&lt;P&gt;To cut a long story short, McAfee have introduced 'Buffer Overflow Protection' into VirusScan Enterprise v8.0i, which if set to 'Protection Mode' seems to interfere with w3wp.exe and throw the processors to 100% - disable it and no problem.&lt;/P&gt;
&lt;P&gt;So, if you're running VS Enterprise v8.0i and start seeing strange 100% CPU usage, check that you have 'Buffer Overflow Protection' disabled, or set to 'Warning Mode', which might also solve the problem - For me, disabling is the route I'm going...&lt;/P&gt;&lt;img src="http://dotnetfreak.co.uk/aggbug.aspx?PostID=244" width="1" height="1"&gt;</description><category domain="http://dotnetfreak.co.uk/blog/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/Windows/default.aspx">Windows</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/McAfee/default.aspx">McAfee</category><category domain="http://dotnetfreak.co.uk/blog/archive/tags/IIS/default.aspx">IIS</category></item></channel></rss>