<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EvereQ &#187; .NET</title>
	<atom:link href="http://blog.evereq.com/blog/index.php/category/dotnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.evereq.com/blog</link>
	<description>Everything reQuired</description>
	<lastBuildDate>Thu, 26 Jan 2012 16:00:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Could not load type System.ServiceModel.Activation.HttpModule</title>
		<link>http://blog.evereq.com/blog/index.php/2012/01/could-not-load-type-system-servicemodel-activation-httpmodule/</link>
		<comments>http://blog.evereq.com/blog/index.php/2012/01/could-not-load-type-system-servicemodel-activation-httpmodule/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 16:00:11 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[ASP.NET MVC 4]]></category>
		<category><![CDATA[Could not load type]]></category>
		<category><![CDATA[Exception]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[System.ServiceModel.Activation.HttpModule]]></category>
		<category><![CDATA[Windows 2008 R2]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=756</guid>
		<description><![CDATA[Get following exception during first load of ASP.NET MVC 4 site in IIS7.5 under Window 2008 R2: Could not load type &#8216;System.ServiceModel.Activation.HttpModule&#8217; from assembly &#8216;System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;. Easy to fix using following command (run as administrator): C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iru Done P.S. if for some strange reason you still use 32 bit Windows, you should update [...]]]></description>
			<content:encoded><![CDATA[<p>Get following exception during first load of ASP.NET MVC 4 site in IIS7.5 under Window 2008 R2:</p>
<blockquote><p>Could not load type &#8216;System.ServiceModel.Activation.HttpModule&#8217; from assembly &#8216;System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;.</p></blockquote>
<p>Easy to fix using following command (run as administrator):<br />
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iru</p>
<p>Done <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>P.S. if for some strange reason you still use 32 bit Windows, you should update framework path in command above.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2012/01/could-not-load-type-system-servicemodel-activation-httpmodule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Error 403.14 &#8211; Forbidden fix</title>
		<link>http://blog.evereq.com/blog/index.php/2012/01/http-error-403-14-forbidden-fix/</link>
		<comments>http://blog.evereq.com/blog/index.php/2012/01/http-error-403-14-forbidden-fix/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 14:20:31 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[403.14]]></category>
		<category><![CDATA[7.5]]></category>
		<category><![CDATA[Fix]]></category>
		<category><![CDATA[Forbidden]]></category>
		<category><![CDATA[HTTP Error]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=752</guid>
		<description><![CDATA[You just setup new Windows 2008 R2 Server, enable IIS role, install ASP.NET MVC 1/2/3 or 4, upload your site, configure IIS (i.e. IIS pool, rights, certificates etc) and get following error in browser: HTTP Error 403.14 &#8211; Forbidden The Web server is configured to not list the contents of this directory. Hm&#8230; EASY to [...]]]></description>
			<content:encoded><![CDATA[<p>You just setup new Windows 2008 R2 Server, enable IIS role, install ASP.NET MVC 1/2/3 or 4, upload your site, configure IIS (i.e. IIS pool, rights, certificates etc) and get following error in browser:</p>
<blockquote><p>HTTP Error 403.14 &#8211; Forbidden<br />
The Web server is configured to not list the contents of this directory.</p></blockquote>
<p>Hm&#8230; EASY to fix with following command (run command prompt as administrator!):<br />
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i</p>
<p>Done <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>P.S. if for some strange reason you still use 32 bit Windows, you should update framework path in command above.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2012/01/http-error-403-14-forbidden-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Session state system everytime returns different values for SessionID</title>
		<link>http://blog.evereq.com/blog/index.php/2011/12/asp-net-session-state-system-everytime-returns-different-values-for-sessionid/</link>
		<comments>http://blog.evereq.com/blog/index.php/2011/12/asp-net-session-state-system-everytime-returns-different-values-for-sessionid/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 14:48:01 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[different]]></category>
		<category><![CDATA[Session]]></category>
		<category><![CDATA[SessionID]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=749</guid>
		<description><![CDATA[Suppose you have ASP.NET (or ASP.NET MVC) site. You want to use Session.SessionID value somewhere (say as shopping cart id), which normally should be SAME value for each request from the same browser (sure unless session expire or user clean cookies, or you forget to store session in some distributed storage and use Web Farm [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose you have ASP.NET (or ASP.NET MVC) site.<br />
You want to use Session.SessionID value somewhere (say as shopping cart id), which normally should be SAME value for each request from the same browser (sure unless session expire or user clean cookies, or you forget to store session in some distributed storage and use Web Farm with multiple front-end servers, or you forget to &#8230; actually many things might be here).<br />
However you may see every time DIFFERENT value for Session.SessionID for anonymous user!<br />
How? Reason: <strong>new SessionID is generated by ASP.NET, UNLESS YOU STORE SOMETHING IN THE SESSION!</strong><br />
For example do something like this: Session["Something"] = 1 after first user request and you will see that SessionID remains unchanged.<br />
Sounds crazy, right???</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2011/12/asp-net-session-state-system-everytime-returns-different-values-for-sessionid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET performance and your hardware</title>
		<link>http://blog.evereq.com/blog/index.php/2011/04/net-performance-and-your-hardware/</link>
		<comments>http://blog.evereq.com/blog/index.php/2011/04/net-performance-and-your-hardware/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 14:32:22 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[Tests]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=729</guid>
		<description><![CDATA[Was inspired by Ayende post (see http://ayende.com/Blog/archive/2011/04/14/performance-numbers-in-the-pub.aspx) and want to check how much objects my work PC may create Moreover, now seems best time to do that &#8211; my company order today new SUPER machines for our team, so it will be interesting to see difference with current PC using such &#8220;.NET&#8221; test. My current [...]]]></description>
			<content:encoded><![CDATA[<p>Was inspired by Ayende post (see http://ayende.com/Blog/archive/2011/04/14/performance-numbers-in-the-pub.aspx) and want to check how much objects my work PC may create <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Moreover, now seems best time to do that &#8211; my company order today new SUPER machines for our team, so it will be interesting to see difference with current PC using such &#8220;.NET&#8221; test.</p>
<p>My current PC is Intel Q8200 4 Cores / 8Gb memory / SSD Intel 80Gb etc &#8211; you get idea <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Main difference between my code and Ayende code (as well as many blog comments code) is that I create objects using multiple threads. What is interesting for me that most of people even today, just forget the fact that they have multiple cores in PC (or Server) and modern development should be done with that &#8220;stick&#8221; idea in your mind: &#8220;multitask / multithreading / async may be used if you want to utilize optimally your hardware&#8221;. Sure it&#8217;s not always make sense to go that &#8220;hard way&#8221; &#8211; some tasks just not scale too much with that approach. At the same time, in that specific tests I was able to get about 50% performance gain using very simple threading model compared to the single threaded. Not bad enough, right?</p>
<p>Sure it&#8217;s not really optimal strategy (more optimal for sure to just use C / C++) and I think memory speed restrict CPU power in that specific tests (i.e. no matter how many cores you use in CPU, if your memory / memory controller just can&#8217;t get / process all that in the parallel).  In addition I also initialize each created object integer field with some value to restrict some possible optimizations in CLI.  You can also found multiple small optimizations to avoid some overhead etc. Sure it&#8217;s not best code out there, but effective enough to demonstrate how TPL can improve results even in such a simple task. Maybe later will found time and write same using C++ with Parallel Patterns Library (PPL) to measure the difference <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>On my PC test create 4 new threads and each thread create multiple objects. Note that test works 10 seconds to give you more precise results <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Tests results: <strong>around 150M created and initialized objects per second</strong> (don&#8217;t forget to build in Release mode if you really want to run it)<br />
I promise to publish new results when new PC arrive to our office;-)</p>
<p>Btw, if you get your own results, will be glad to see and compare <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Stay tuned <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>P.S. Code is not finally optimized and is not &#8220;production ready&#8221;. Means that I just want to play a bit with what Ayende originally wrote&#8230;<br />
For example, you probably may note that test will take longer than 10 seconds to run if your PC already busy with some tasks (simply because I use too much threads for such environment) etc.</p>
<p>P.P.S. No warranties <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Please do not run that code on your production servers <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Update #1</strong>: My colleague have notebook with Intel i5 CPU (4 Cores) and he just get  215M result <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Update #2: Just get new PC with CPU Intel i7-2600K (at 3.5Ghz) / 8Gb DDR3 1600Mhz memory etc. I get just amazing result: 700M with same source code <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  WOW! </strong></p>
<pre style="font-family:Consolas;font-size:15;font-weight:bold;color:white;background:black;"><span style="color:#f2761a;">using</span> <span style="color:#f2fbd9;">System</span>;
<span style="color:#f2761a;">using</span> <span style="color:#f2fbd9;">System</span>.<span style="color:#f2fbd9;">Collections</span>.<span style="color:#f2fbd9;">Generic</span>;
<span style="color:#f2761a;">using</span> <span style="color:#f2fbd9;">System</span>.<span style="color:#f2fbd9;">Diagnostics</span>;
<span style="color:#f2761a;">using</span> <span style="color:#f2fbd9;">System</span>.<span style="color:#f2fbd9;">Threading</span>;
<span style="color:#f2761a;">using</span> <span style="color:#f2fbd9;">System</span>.<span style="color:#f2fbd9;">Threading</span>.<span style="color:#f2fbd9;">Tasks</span>;
<span style="color:#f2761a;">using</span> <span style="color:#f2fbd9;">System</span>.<span style="color:#f2fbd9;">Timers</span>;

<span style="color:#f2761a;">namespace</span> <span style="color:#f2fbd9;">Testing</span>
{
    <span style="color:#f2761a;">class</span> <span style="color:yellow;">Program</span>
    {
        <span style="color:#f2761a;">static</span> <span style="color:#f2761a;">volatile</span> <span style="color:#f2761a;">bool</span> <span style="color:#fff4ff;">_isContinue</span> = <span style="color:#f2761a;">true</span>;

        <span style="color:#f2761a;">static</span> <span style="color:#f2761a;">long</span> <span style="color:#fff4ff;">_total</span>;

        <span style="color:#f2761a;">const</span> <span style="color:#f2761a;">int</span> <span style="color:#ff6cff;">TestTimeSec</span> = <span style="color:#6897bb;">10000</span>;

        <span style="color:#f2761a;">static</span> <span style="color:yellow;">Stopwatch</span> <span style="color:#fff4ff;">_sp</span>;

        <span style="color:#f2761a;">static</span> <span style="color:#f2761a;">void</span> Main(<span style="color:#f2761a;">string</span>[] <span style="color:#dadacf;">args</span>)
        {

            <span style="color:#f2761a;">var</span> <span style="color:#fff4fe;">tasks</span> = <span style="color:#f2761a;">new</span> <span style="color:yellow;">List</span>&lt;<span style="color:yellow;">Task</span>&gt;();

            <span style="color:#f2761a;">int</span> <span style="color:#fff4fe;">processors</span> = <span style="color:#ffff59;">Environment</span>.<span style="color:#fff4ff;">ProcessorCount</span>;

            <span style="color:#ffff59;">Console</span>.WriteLine(<span style="color:#cf5252;">"Detected {0} cores"</span>, <span style="color:#fff4fe;">processors</span>);

            <span style="color:#f2761a;">var</span> <span style="color:#fff4fe;">timer</span> = <span style="color:#f2761a;">new</span> <span style="color:#f2fbd9;">System</span>.<span style="color:#f2fbd9;">Timers</span>.<span style="color:yellow;">Timer</span>(<span style="color:#ff6cff;">TestTimeSec</span>);
            <span style="color:#fff4fe;">timer</span>.<span style="color:magenta;">Elapsed</span> += TimerElapsed;
            <span style="color:#fff4fe;">timer</span>.<span style="color:#fff4ff;">AutoReset</span> = <span style="color:#f2761a;">false</span>;
            <span style="color:#fff4fe;">timer</span>.Start();

            <span style="color:#fff4ff;">_sp</span> = <span style="color:yellow;">Stopwatch</span>.StartNew();

            <span style="color:#f2761a;">for</span> (<span style="color:#f2761a;">int</span> <span style="color:#f4e3f4;">t</span> = <span style="color:#6897bb;">0</span>; <span style="color:#f4e3f4;">t</span> &lt; <span style="color:#fff4fe;">processors</span>; <span style="color:#f4e3f4;">t</span>++)
            {
                <span style="color:#fff4fe;">tasks</span>.Add(<span style="color:yellow;">Task</span>.<span style="color:#fff4ff;">Factory</span>.StartNew(
                    () =&gt;
                    {
                        <span style="color:#f2761a;">long</span> <span style="color:#f4e3f4;">i</span> = <span style="color:#6897bb;">0</span>;

                        <span style="color:#f2761a;">while</span> (<span style="color:#fff4ff;">_isContinue</span>)
                        {
                            <span style="color:#f2761a;">var</span> <span style="color:#fff4fe;">obj</span> = <span style="color:#f2761a;">new</span> <span style="color:yellow;">MyClass</span>();
                            <span style="color:#f4e3f4;">i</span>++;
                            <span style="color:#fff4fe;">obj</span>.<span style="color:#fff4ff;">B</span> = <span style="color:#f4e3f4;">i</span>;
                        }

                        <span style="color:#ffff59;">Interlocked</span>.Add(<span style="color:#f2761a;">ref</span> <span style="color:#fff4ff;">_total</span>, <span style="color:#f4e3f4;">i</span>);
                    }
                ));
            }

            <span style="color:gray;">// let's complete all the tasks to get results into _total</span>
            <span style="color:yellow;">Task</span>.WaitAll(<span style="color:#fff4fe;">tasks</span>.ToArray());

            <span style="color:#fff4ff;">_sp</span>.Stop();

            <span style="color:#ffff59;">Console</span>.WriteLine(<span style="color:#cf5252;">"Created {0} objects in {1}"</span>, <span style="color:#fff4ff;">_total</span> / <span style="color:#6897bb;">10</span>, <span style="color:#fff4ff;">_sp</span>.<span style="color:#fff4ff;">Elapsed</span>.<span style="color:#fff4ff;">TotalMilliseconds</span> / <span style="color:#6897bb;">10</span>);
            <span style="color:#ffff59;">Console</span>.ReadKey();

        }

        <span style="color:#f2761a;">static</span> <span style="color:#f2761a;">void</span> TimerElapsed(<span style="color:#f2761a;">object</span> sender, <span style="color:yellow;">ElapsedEventArgs</span> e)
        {
            <span style="color:#fff4ff;">_isContinue</span> = <span style="color:#f2761a;">false</span>;
            <span style="color:#ffff59;">Console</span>.WriteLine(<span style="color:#cf5252;">"Stopping..."</span>);
        }

        <span style="color:#f2761a;">public</span> <span style="color:#f2761a;">class</span> <span style="color:yellow;">MyClass</span>
        {
            <span style="color:#f2761a;">public</span> <span style="color:#f2761a;">string</span> <span style="color:#fff4ff;">A</span>;
            <span style="color:#f2761a;">public</span> <span style="color:#f2761a;">long</span> <span style="color:#fff4ff;">B</span>;
            <span style="color:#f2761a;">public</span> <span style="color:#fcdf14;">DateTime</span> <span style="color:#fff4ff;">C</span>;
        }

    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2011/04/net-performance-and-your-hardware/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to get current application domain directory in .NET</title>
		<link>http://blog.evereq.com/blog/index.php/2010/10/how-to-get-current-application-domain-directory-in-net/</link>
		<comments>http://blog.evereq.com/blog/index.php/2010/10/how-to-get-current-application-domain-directory-in-net/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 09:49:57 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[assembly]]></category>
		<category><![CDATA[current directory]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[location]]></category>
		<category><![CDATA[path]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=679</guid>
		<description><![CDATA[Few useful ways to get current application domain directory path in .NET (some for Winforms, some for ASP.NET, some for both): System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) AppDomain.CurrentDomain.BaseDirectory Directory.GetCurrentDirectory() Environment.CurrentDirectory this.GetType().Assembly.Location Application.StartupPath HttpContext.Current.Server.MapPath(@&#8221;~\&#8221;); Application.ExecutablePath HttpContext.Current.Request.PhysicalApplicationPath]]></description>
			<content:encoded><![CDATA[<p>Few useful ways to get current application domain directory path in .NET<br />
(some for Winforms, some for ASP.NET, some for both):</p>
<ul>
<li>System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)</li>
<li>AppDomain.CurrentDomain.BaseDirectory</li>
<li>Directory.GetCurrentDirectory()</li>
<li>Environment.CurrentDirectory</li>
<li>this.GetType().Assembly.Location</li>
<li>Application.StartupPath</li>
<li>HttpContext.Current.Server.MapPath(@&#8221;~\&#8221;);</li>
<li>Application.ExecutablePath</li>
<li>HttpContext.Current.Request.PhysicalApplicationPath</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2010/10/how-to-get-current-application-domain-directory-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC Controller action being called twice issues</title>
		<link>http://blog.evereq.com/blog/index.php/2010/07/asp-net-mvc-controller-action-being-called-twice-issues/</link>
		<comments>http://blog.evereq.com/blog/index.php/2010/07/asp-net-mvc-controller-action-being-called-twice-issues/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 08:35:23 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Controller]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[twice]]></category>
		<category><![CDATA[YSlow]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=683</guid>
		<description><![CDATA[Your ASP.NET MVC controller action (same action) called multiply times? Here is a main &#8220;check&#8221; list for you: Check that you don&#8217;t have any image or another elements in View with empty src attribute (&#60;img src=&#8221;" /&#62; for example) or have src attribute referencing something that no longer existed. You better check directly in browser [...]]]></description>
			<content:encoded><![CDATA[<p>Your ASP.NET MVC controller action (same action) called multiply times?</p>
<p>Here is a main &#8220;check&#8221; list for you:</p>
<ul>
<li>Check that you don&#8217;t have any image or another elements in View with empty src attribute (&lt;img src=&#8221;" /&gt; for example) or have src attribute referencing something that no longer existed. You better check directly in browser &#8220;Page Source&#8221;, than in View itself due to possibility of some &#8220;dynamic&#8221; issues when View rendered. Ones you found such empty element in page html source its usually trivial to found same element in your view and fix issue.</li>
<li>Check that you don&#8217;t have any ajax calls referencing an empty URL (browsers will interpret such empty url as current page and request current page again make controller action execute few times)</li>
<li>You forgot to return &#8220;false&#8221; from JavaScript click event handler for link or button that makes AJAX call. If you forget &#8220;return false&#8221; browser simply made default action of the link &#8211; regular, non AJAX, call to same page)</li>
<li>Sometimes Firebug and YSlow Firefox (FF) plugins can cause such issues&#8230; Just temporary disable them in FF or check in different browser.</li>
</ul>
<p>Know another reason? Let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2010/07/asp-net-mvc-controller-action-being-called-twice-issues/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>FXCop10 &#8211; free code analysis tool from Microsoft</title>
		<link>http://blog.evereq.com/blog/index.php/2010/06/fxcop10-free-code-analysis-tool-from-microsoft/</link>
		<comments>http://blog.evereq.com/blog/index.php/2010/06/fxcop10-free-code-analysis-tool-from-microsoft/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 20:00:11 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[code analysis]]></category>
		<category><![CDATA[FxCop]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=672</guid>
		<description><![CDATA[For developers that just cannot get Visual Studio Premium, but still want to use some code analysis tool, I would recommend to take a look into new version of FXCop 10 from Microsoft. Now it&#8217;s a part of official  Microsoft Windows SDK for Windows 7 and .NET Framework 4. You can download it for your [...]]]></description>
			<content:encoded><![CDATA[<p>For developers that just cannot get Visual Studio Premium, but still want to use some code analysis tool, I would recommend to take a look into new version of FXCop 10 from Microsoft.</p>
<p>Now it&#8217;s a part of official  Microsoft Windows SDK for Windows 7 and .NET Framework 4. You can download it for your version of OS (x86, x64 etc) from <a href="http://www.microsoft.com/downloads/details.aspx?familyid=35AEDA01-421D-4BA5-B44B-543DC8C33A20&amp;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?familyid=35AEDA01-421D-4BA5-B44B-543DC8C33A20&amp;displaylang=en</a></p>
<p>After you install SDK, just go to %<em>ProgramFiles</em>%\Microsoft SDKs\Windows\v7.1\Bin\FXCop folder and run setup for FXCop from here.</p>
<p>Ah, and be sure &#8211; new version support both .NET 2.0 / 3.5 and latest 4.0!</p>
<p>Hope this helps somebody <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2010/06/fxcop10-free-code-analysis-tool-from-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The November version of the Windows Azure SDK and Tools</title>
		<link>http://blog.evereq.com/blog/index.php/2009/11/the-november-version-of-the-windows-azure-sdk-and-tools/</link>
		<comments>http://blog.evereq.com/blog/index.php/2009/11/the-november-version-of-the-windows-azure-sdk-and-tools/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 07:53:44 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[ADO.NET Data Services]]></category>
		<category><![CDATA[Client]]></category>
		<category><![CDATA[Client Library]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Diagnostics]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Samples]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[StorageClient]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Virtual Machine]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=520</guid>
		<description><![CDATA[Download them here. New in the November 2009 SDK (quote from Microsoft Windows Azure team newsletter): Windows Azure Service Runtime managed library: The latest version of the Service Hosting Runtime API includes support for enhanced communication between roles and for runtime notification of service configuration changes. Direct communication between role instances enables new application development scenarios, [...]]]></description>
			<content:encoded><![CDATA[<p>Download them <a style="color: #2a5db0;" href="http://go.microsoft.com/fwlink/?LinkID=128752" target="_blank">here</a>.</p>
<p><strong>New in the November 2009 SDK (quote from Microsoft Windows Azure team newsletter):</strong></p>
<ul>
<li style="margin-left: 15px;"><strong>Windows Azure Service Runtime managed library</strong>: The latest version of the Service Hosting Runtime API includes support for enhanced communication between roles and for runtime notification of service configuration changes. Direct communication between role instances enables new application development scenarios, including applications that distribute state across role instances. Service configuration changes include an increase or decrease in the number of request role instances and changes to the values of configuration settings.</li>
<li style="margin-left: 15px;"><strong>Windows Azure Diagnostics managed library</strong>: The new Diagnostics API enables logging using standard .NET APIs. The Diagnostics API provides built-in support for collecting standard logs and diagnostic information, including the Windows Azure logs, IIS 7.0 logs, Failed Request logs, crash dumps, Windows Event logs, performance counters, and custom logs.</li>
<li style="margin-left: 15px;"><strong>Certificate Management</strong>: Enhanced support for SSL certificates in Windows Azure and in the Windows Azure SDK enables the secure automated deployment of certificates to services hosted on Windows Azure.</li>
<li style="margin-left: 15px;"><strong>Variable-size Virtual Machines</strong> : Developers may now specify the size of the virtual machine to which they wish to deploy a role instance, based on the role&#8217;s resource requirements. The size of the VM determines the number of CPU cores, the memory capacity, and the local file system size allocated to a running instance.</li>
<li style="margin-left: 15px;"><strong>External endpoints for worker roles.</strong> A worker role may now define any number of external endpoints for HTTP, HTTPS, and TCP, and specify the desired port number for any external endpoint.</li>
<li style="margin-left: 15px;"><strong>Persistent local resource storage</strong>: Developers can now choose to persist data written to a local storage resource at runtime when the role is recycled.</li>
<li style="margin-left: 15px;"><strong>Windows Azure Storage Client managed library</strong>: The Storage Client library provides a .NET API for accessing the Windows Azure storage services.</li>
<li style="margin-left: 15px;"><strong>Improved Development Storage</strong>: Development storage provides a high-fidelity simulation of the Windows Azure storage services in the cloud. Tables can now be created dynamically in the development storage Table service and are no longer required to be generated in advance.</li>
<li style="margin-left: 15px;"><strong>Updated samples</strong>: The samples included with the Windows Azure SDK have been updated to demonstrate new features. The samples now include both C# and Visual Basic versions.</li>
</ul>
<p>As we can see &#8211; a lot of improvements and new features introduced in this release. I will made review of them right after will have time to check (hopefully today later)! In any case, glad that MS improve Azure SDK so quickly!</p>
<p><strong>Update: </strong>after installation and first review, I found following:</p>
<ul>
<li>It seems like Microsoft finally have &#8220;official&#8221; Client library for Azure Storage. The name is same like from samples before, i.e. &#8220;StorageClient&#8221;, but now it is in &#8220;Microsoft.WindowsAzure.StorageClient&#8221; namespace, not like &#8220;Microsoft.Samples.ServiceHosting.StorageClient&#8221; that was before! It is also VERY extended and improved, so if you going to use Azure Storage, for sure you need to use this library (and I am also going to use it in my EvejobAzNET project) &#8211; it give you access to Blob Service, Queue Service and Table Service! Sure like before, it is possible to use simple .NET Client Library for ADO.NET Data Services (and new library use it inside anyway, just check that it reference System.Data.Services.Client library inside)&#8230; But with official Azure Storage Client library a lot of tasks become much more simple! You can found this library (*.dll) in &#8220;c:\Program Files\Windows Azure SDK\v1.0\ref\&#8221; folder, together with other useful binaries!</li>
<li>It is possible now to use another &#8220;official&#8221; library to get programmatic access to most of functionality available before only from Azure Developer Portal (and actually I don&#8217;t know why, but for some reasons Portal works and looks not best way! You can google, A LOT of people complain about issues with this!).</li>
<li>A new Library for Logging and Diagnostic functionality was added to SDK (Microsoft.WindowsAzure.Diagnostics namespace) <strong>- </strong>feel free to review samples in SDK (zip archives available in root folder of SDK installation, i.e. in C:\Program Files\Windows Azure SDK\v1.0 by default &#8211; samples-cs.zip for C# version and samples-vb.zip for VB version)</li>
<li>A lot of other improvements / features was added that relate mostly to development / production environment (Visual Studio Azure support, new release of Development Fabric etc) &#8211; they not change significantly your code / application design, instead of features described above that I highly recommend to review in case if you develop for Azure!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2009/11/the-november-version-of-the-windows-azure-sdk-and-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon AWS Big News for developers</title>
		<link>http://blog.evereq.com/blog/index.php/2009/11/amazon-aws-big-news-for-developers/</link>
		<comments>http://blog.evereq.com/blog/index.php/2009/11/amazon-aws-big-news-for-developers/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 10:16:22 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[App Engine]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Libraries]]></category>
		<category><![CDATA[Library]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=515</guid>
		<description><![CDATA[Because I build some projects with support of Cloud deployment scenarios (currently for Google App Engine and Microsoft Azure) and I am sure that best Web software must be ready to be deployed in Cloud(s), it was very interesting to read latest announcement from Amazon: &#8220;&#8230; AWS Software Development Kit (SDK) for .NET Now Available&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Because I build some projects with support of Cloud deployment scenarios  (currently for Google App Engine and Microsoft Azure) and I am sure that best Web software must be ready to be deployed in Cloud(s), it was very interesting to read latest <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3055&amp;categoryID=42" target="_blank">announcement</a> from Amazon: &#8220;&#8230; <a href="http://aws.amazon.com/sdkfornet/" target="_blank">AWS Software Development Kit (SDK) for .NET</a> Now Available&#8230; &#8220;.</p>
<p>Sure it&#8217;s just a beginning for Amazon in development of real .NET SDK, but even with this version we can quickly build .NET applications that tap into AWS Cloud.   Yes,  even before developers have good libraries to build such applications, but now looks like we have first &#8220;standard&#8221; API from Amazon and this fact is very important!</p>
<p>For example, for Ruby there is no such official SDK (or Ruby gem), and developers can choice from few available gems (<a href="http://github.com/rightscale/right_aws" target="_blank">right_aws</a>, <a href="http://github.com/grempe/amazon-ec2" target="_blank">amazon-ec2</a> or <a href="http://amazon.rubyforge.org/">AWS:S3</a> to name just few).  The same situation for Java - available a lot of &#8220;community&#8221; libraries, but no official SDK&#8230; (ok, ok, for Java we have at least official <a href="http://aws.amazon.com/eclipse/" target="_blank">AWS Toolkit for Eclipse</a>, but Toolkit it is not SDK!!!).</p>
<p>But why it is important to have official &#8220;language specific&#8221; SDK?</p>
<p>Well, first of all, now because Amazon have few BIG rivals, like Google App Engine (and we know that Google DO have official SDKs, more so, for both Python and Java!) and Microsoft Azure (sure Microsoft always have SDKs &#8211; it a BIG plus for Microsoft!).</p>
<p>Also it is important for developers, so they know that if they take some library and put this library as &#8220;base&#8221; for communications with a Cloud, they will not need to dial with changes in API in case of library author decide to drop development! It is important to have SDK that will be up to date with company services (Amazon in our case), just because we developers want to be SAFE! Sure it is good if there are a lot of open source libraries that EXTEND SDK some way, but it&#8217;s just &#8220;add-ons&#8221; and can&#8217;t replace real official SDK!</p>
<p>So it is really BIG day for Amazon and .NET developers &#8211; first official &#8220;language specific&#8221; SDK, and for .NET!!! What will be answer from Microsoft Azure that is still in &#8220;Beta&#8221;? <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Note: in this post I mean &#8220;language specific&#8221; SDK, not just common SDK that list API for Web Services  with samples how to use them for example, etc&#8230; Because most of they time developers dial with some specific language, it is important for services like AWS to provide language specific SDKs so developers can really quickly and &#8220;safely&#8221; create applications using such &#8220;language specific&#8221; SDKs! Hope you understand what I mean <img src='http://blog.evereq.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2009/11/amazon-aws-big-news-for-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable IIS7 with ASP.NET and WCF HTTP Activation in Windows 7 for Azure / WCF Development</title>
		<link>http://blog.evereq.com/blog/index.php/2009/10/enable-iis7-with-asp-net-and-wcf-http-activation-in-windows-7-for-azure-wcf-development/</link>
		<comments>http://blog.evereq.com/blog/index.php/2009/10/enable-iis7-with-asp-net-and-wcf-http-activation-in-windows-7-for-azure-wcf-development/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:10:40 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Azure]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[WCF Http Activation]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/?p=214</guid>
		<description><![CDATA[In Windows 7, Go to Control Panel \ All Control Panel Items \ Programs and Features Press &#8220;Turn Windows features on or off&#8221; and make sure that you select following features: Under Internet Information Services make sure that you select available options (including options in sub nodes), that you going to use. Usually it is [...]]]></description>
			<content:encoded><![CDATA[<p>In Windows 7, Go to Control Panel \ All Control Panel Items \ Programs and Features</p>
<p>Press &#8220;Turn Windows features on or off&#8221; and make sure that you select following features:</p>
<ul>
<li>Under Internet Information Services make sure that you select available options (including options in sub nodes), that you going to use. Usually it is everything, except probably ASP (but make sure you select ASP.NET instead), CGI (if you going to use any CGI development, PHP for example, you need to select this feature), Server-Side Includes, FTP Server (if you not need to setup own FTP Server) etc:</li>
</ul>
<p><img class="alignnone size-full wp-image-215" title="WindowsFeatures" src="http://blog.evereq.com/wp-content/uploads/2009/10/WindowsFeatures.png" alt="WindowsFeatures" width="467" height="543" /></p>
<ul>
<li>Make sure you select Windows Communication Foundation HTTP Activation and Non-HTTP Activation features (features used for example for Azure or WCF development) &#8211; see illustration above</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2009/10/enable-iis7-with-asp-net-and-wcf-http-activation-in-windows-7-for-azure-wcf-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
