<?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>Codepolice</title>
	<atom:link href="http://codepolice.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://codepolice.net</link>
	<description>Random posts from Ola in English. Mainly about programming and the web.</description>
	<lastBuildDate>Thu, 10 May 2012 13:49:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Meek: The Reversed CMS for ASP.NET MVC</title>
		<link>http://codepolice.net/meek-the-reversed-cms-for-asp-net-mvc/</link>
		<comments>http://codepolice.net/meek-the-reversed-cms-for-asp-net-mvc/#comments</comments>
		<pubDate>Thu, 10 May 2012 13:27:17 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=156</guid>
		<description><![CDATA[I have a totally custom made website called AlternativeTo. For a long time i&#8217;ve been looking for some kind of CMS that you can hook up to just small blocks on the site and just get those small blocks editable with some kind of CMS. I don&#8217;t know how common this need is but i [...]]]></description>
			<content:encoded><![CDATA[<p>I have a totally custom made website called AlternativeTo. For a long time i&#8217;ve been looking for some kind of CMS that you can hook up to just small blocks on the site and just get those small blocks editable with some kind of CMS. I don&#8217;t know how common this need is but i would think it is. I have thought about buildning something myself but i was pretty sure that there must be someone out there that had the same problem before me, and why invent the wheel and so on.</p>
<p>Anyway, some days ago i finally found the solution and it&#8217;s called <a href="http://www.gingerrant.com/meek/">Meek</a>. Meek was exactly what i described above. Extremely simple and it&#8217;s installed by just referencing a DLL and about 3-4 lines in web.Config. Well you can read all about it at their homepage.</p>
<p>I can also mention i had a small issue mostly because i have kind of a strange setup. I had to add the custom route because i didn&#8217;t have the default route in my Web.Config.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;">routes<span style="color: #008000;">.</span><span style="color: #0000FF;">MapRoute</span><span style="color: #008000;">&#40;</span>
 <span style="color: #666666;">&quot;Meek&quot;</span>, <span style="color: #008080; font-style: italic;">// Route name</span>
 <span style="color: #666666;">&quot;Meek/{action}/{id}&quot;</span>, <span style="color: #008080; font-style: italic;">// URL with parameters</span>
 <span style="color: #008000;">new</span> <span style="color: #008000;">&#123;</span> controller <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Meek&quot;</span>, action <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;Index&quot;</span>, id <span style="color: #008000;">=</span> UrlParameter<span style="color: #008000;">.</span><span style="color: #0000FF;">Optional</span> <span style="color: #008000;">&#125;</span> <span style="color: #008080; font-style: italic;">// Parameter defaults</span>
<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span></pre></div></div>

<p>I also had to add the init line manually to my Application_Start method. I recorded a short video how it works on YouTube.</p>
<p><a href="http://www.youtube.com/watch?v=k1Mvc9LMzts">http://www.youtube.com/watch?v=k1Mvc9LMzts</a></p>
<p>Link: <a href="http://www.gingerrant.com/meek/">Meek</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/meek-the-reversed-cms-for-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What I Love So Far With Visual Studio 11</title>
		<link>http://codepolice.net/what-i-love-so-far-with-visual-studio-11/</link>
		<comments>http://codepolice.net/what-i-love-so-far-with-visual-studio-11/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 12:08:19 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=144</guid>
		<description><![CDATA[I have used Visual Studio 11 since it was released in beta and i must say i really like it. I wanted to write down my favorite features here both to remind myself about them and to maybe give any of you random readers some tips. HTML Editor / ASP.Net You can now generate a [...]]]></description>
			<content:encoded><![CDATA[<p>I have used Visual Studio 11 since it was released in beta and i must say i really like it. I wanted to write down my favorite features here both to remind myself about them and to maybe give any of you random readers some tips.</p>
<h3>HTML Editor / ASP.Net</h3>
<ul>
<li>You can now<strong> generate a event handler </strong>directly from the design source view. Before you had to go to the design view or use the &#8220;tab tab&#8221; feature in the code view to auto generate an event handler. Now you can do it from the asp server tag itself.</li>
<li>Just as you can extract a method via the refactor context menu in the code editor you can now <strong>Extract a user control</strong> from the HTML view. So if you have a chunk of HTML that you feel would fit better in a user control you can just select it all, right click on it and choose to extract as a user control. VS will then create the new user control, reference it in the document and insert a tag for it. You have to move any code that reference any of the elements that you extracted manually though.</li>
<li>If you change a a <strong>HTML tag in VS11 it will now also change the closing tag</strong>. It&#8217;s strange that this hasn&#8217;t been there before but I&#8217;m glad they finally added it.</li>
</ul>
<h3>CSS Editor</h3>
<ul>
<li>I&#8217;m a <strong>CTRL K+D</strong> junkie and use it all the time to format my code. What bugged the hell out of me before was that in a CSS file the editor always scrolled up to the top of the document when i did this. It doesn&#8217;t do that anymore. In relation to this VS11 also <strong>intend CSS</strong> based on class. So .header h1 will get intended below .header.</li>
<li>As much as I use the shortcut to format my document i use <strong>CTRL K+C  and CTRL K+U</strong> to comment and uncomment my code. This did not work in CSS files before but works now.</li>
<li>I use border-radius and some other CSS3 features a lot and since some browsers requires vendor specific prefix for these it&#8217;s always a mess to have to write -moz-bla-bla and -webkit-bla-bla and so on. If you type border-radius in the Visual Studio 11 editor and then press tab twice it will automatically create these.</li>
</ul>
<h3>Page Inspector</h3>
<p>The Page Inspector they added in Visual Studio 11 is just brilliant! It&#8217;s like Firebug but instead of seeing your generated HTML when you inspect elements you see the actual server side code that generates a specific element on your site. And it also works with CSS! No more hacking in Firebug to make something looks good and then remember what you changed and save it in the actual file and so on. As i said, it&#8217;s just brilliant! Right click on the project and choose &#8220;View in Page Inspector&#8221; to use it!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/what-i-love-so-far-with-visual-studio-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the Dark Theme for the editor but not for the rest of the UI in Visual Studio 11</title>
		<link>http://codepolice.net/get-the-dark-theme-for-the-editor-but-not-for-the-rest-of-the-ui-in-visual-studio-11/</link>
		<comments>http://codepolice.net/get-the-dark-theme-for-the-editor-but-not-for-the-rest-of-the-ui-in-visual-studio-11/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 09:10:40 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[visual studio]]></category>
		<category><![CDATA[dark]]></category>
		<category><![CDATA[dark theme]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[visual studio 11]]></category>
		<category><![CDATA[vs11]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=139</guid>
		<description><![CDATA[I just downloaded the shiny new Visual Studio 11 BETA and haven&#8217;t had so much time to use it yet. But one thing i was curious about was the new built-in dark theme they provided. I really liked the Dark Theme for the code editing windows but not so much for the rest of the [...]]]></description>
			<content:encoded><![CDATA[<p>I just downloaded the <a href="http://www.microsoft.com/visualstudio/11/en-us">shiny new Visual Studio 11 BETA</a> and haven&#8217;t had so much time to use it yet. But one thing i was curious about was the new built-in dark theme they provided. I really liked the Dark Theme for the code editing windows but not so much for the rest of the UI. I solved this by just switch to the dark theme, export the settings, switch back to light theme then import the settings and unchecked everything but the colors &amp; fonts. Worked like a charm! I recorded a video of it below.</p>
<p><a href="http://www.youtube.com/watch?v=7un1TwkAW0M">http://www.youtube.com/watch?v=7un1TwkAW0M</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/get-the-dark-theme-for-the-editor-but-not-for-the-rest-of-the-ui-in-visual-studio-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import blog from Tumblr to WordPress can totally destroy your blog if you do it wrong</title>
		<link>http://codepolice.net/import-blog-from-tumblr-to-wordpress-can-totally-destroy-your-blog-if-you-do-it-wrong/</link>
		<comments>http://codepolice.net/import-blog-from-tumblr-to-wordpress-can-totally-destroy-your-blog-if-you-do-it-wrong/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 13:39:41 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[tumblr]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=134</guid>
		<description><![CDATA[We decided to move our AlternativeTo blog from Tumblr to WordPress some days ago and i just want to share some of my experience about that process. To begin with I didn&#8217;t get the importer that used the Tumblr API to import the blog at all. I could log in and everything but absolutely nothing [...]]]></description>
			<content:encoded><![CDATA[<p>We decided to move our <a href="http://blog.alternativeto.net">AlternativeTo blog</a> from Tumblr to WordPress some days ago and i just want to share some of my experience about that process. To begin with I didn&#8217;t get the <a href="http://wordpress.org/extend/plugins/tumblr-importer/">importer that used the Tumblr API</a> to import the blog at all. I could log in and everything but absolutely nothing happened. I waited for at least one hour before i gave up.</p>
<p>But it was when i tried to use some other importers that the problems got really serious. I did some googling and i found a site called <a href="http://haochen.me/tumblr/">Tumblr2Wordpress</a>, <span style="color: #ff0000;"><strong>beware of this exporter</strong></span> if you use WordPress 3.0. It says nothing on this site at all but as soon as you import to WordPress via the XML file produced from this site your site is more or less screwed. I got an error saying &#8220;Are you sure you want to do this? Please try again.&#8221; or something like that everytime i edited a post, saved a draft or tried to publish a post. I spend hours debugging this before i figured out it was this importer that caused this.</p>
<p>Finally i looked on the page about <a href="http://codex.wordpress.org/Importing_Content">importing on WordPress.org</a> and they actually warns about the Tumblr2Wordpress site and they provided a link to a site called <a href="http://www.tumblr2wp.com/">Tumblr2wp</a> that actually worked. To bad that site didn&#8217;t have better rank in Google, would have saved me hours of work and frustration. Hopefully someone will find this post at least if you are getting the same problems i had.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/import-blog-from-tumblr-to-wordpress-can-totally-destroy-your-blog-if-you-do-it-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make the Git GUI appear after you publish a Web Project in Visual Studio 2010</title>
		<link>http://codepolice.net/make-the-git-gui-appear-after-you-publish-a-web-project-in-visual-studio-2010/</link>
		<comments>http://codepolice.net/make-the-git-gui-appear-after-you-publish-a-web-project-in-visual-studio-2010/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 07:19:43 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[commit]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[msbuild]]></category>
		<category><![CDATA[publish]]></category>
		<category><![CDATA[source-control]]></category>
		<category><![CDATA[webdeploy]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=119</guid>
		<description><![CDATA[A couple of moths ago i started to use GIT as my primary Source Control. To be honest I hadn&#8217;t use any &#8220;real&#8221; source control at all before for this project. I only used a online backup service that had some basic version control on a file to file basis. But i love GIT. It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of moths ago i started to use GIT as my primary Source Control. To be honest I hadn&#8217;t use any &#8220;real&#8221; source control at all before for this project. I only used a online backup service that had some basic version control on a file to file basis.</p>
<p>But i love GIT. It&#8217;s really simple and everything works more or less exactly as you expect it to do. But there isn&#8217;t much tools out there that integrates well with Visual Studio. There is <a href="http://code.google.com/p/gitextensions/">Git Extensions for Windows</a> and there is a project called <a href="http://gitscc.codeplex.com/">Git Source Control Provider</a>. The problem with Git Extensions is that it doesn&#8217;t do that much. It only ads a menu in Visual Studio where you can execute some command. Git Source Control Provider on the other hand looked like the perfect tool for me. But for some reason it didn&#8217;t sync correctly with my Git Repository and i got the feeling the project was a bit to immature to be trusted.</p>
<p><strong>I always forget to commit</strong></p>
<p>So, my biggest problem is that I always forget to fire up the command line / GUI and actually commit the changes i do the code. When you use SVN, TFS you get those nice little icons on all the files in Visual Studio so you are constantly reminded of your changes. This was what <a href="http://gitscc.codeplex.com/">Git Source Control Provider</a> promised but as i said, didn&#8217;t work for me.</p>
<p>I would be happy just to be reminded every time i publish my website to the ftp that &#8220;Hey! Don&#8217;t forget to commit your changes!&#8221;. And just to be clear. This is a solution for a one man shop that don&#8217;t really need &#8220;continuous integration&#8221; and loads of complicated stuff. I like my super simple solution where i just publish my project to my ftp and boom done!</p>
<p><strong>My stupid hack</strong></p>
<p>I found this post on Stack Overflow that <a href="http://stackoverflow.com/questions/3561689/afterpublish-target-not-working">explains how to run a MS Build target after you do a publish</a> from Visual Studio. You just have to add this target at the end of your .csproj file. Your publish method must be a &#8220;WebDeploy&#8221;. I tried with &#8220;File System&#8221; but that didn&#8217;t work. The &#8220;WebDeploy&#8221; method was much faster anyway.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Target</span> <span style="color: #000066;">Name</span>=<span style="color: #ff0000;">&quot;CustomPostPublishActions&quot;</span> <span style="color: #000066;">AfterTargets</span>=<span style="color: #ff0000;">&quot;MSDeployPublish&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Exec</span> <span style="color: #000066;">Command</span>=<span style="color: #ff0000;">&quot;&amp;quot;C:\Program Files (x86)\Git\bin\wish.exe&amp;quot; &amp;quot;C:\Program Files (x86)\Git\libexec\git-core\git-gui&amp;quot;&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>That&#8217;s more or less all there is to it. This will fire up the GIT GUI and your Publish task won&#8217;t finish until you close that program. Of course you could probably just run the console instead if you prefer that.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/make-the-git-gui-appear-after-you-publish-a-web-project-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy a folder with Robocopy</title>
		<link>http://codepolice.net/copy-a-folder-with-robocopy/</link>
		<comments>http://codepolice.net/copy-a-folder-with-robocopy/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 06:04:05 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[visual studio]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[robocopy]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=117</guid>
		<description><![CDATA[I&#8217;m playing around a bit with PhoneGap at the moment. I wanted to make a script that copies all my javascript, html, images and css from my Visual Studio project folder to each of the diffrent PhoneGap projects for iOS, Android and so on. Visual Studio has a featured to execute commands after the project [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m playing around a bit with PhoneGap at the moment. I wanted to make a script that copies all my javascript, html, images and css from my Visual Studio project folder to each of the diffrent PhoneGap projects for iOS, Android and so on.</p>
<p>Visual Studio has a featured to execute commands after the project is built and it felt like the simplest solution. I tried to add a command like robocopy c:\myproj\css c:\myandroidproj it worked but the thing was that i wanted to copy the folder AND the files in it and i couldn&#8217;t figure out how to to that. Maybe I&#8217;m just stupid, i don&#8217;t know.</p>
<p>Anyway i figured out how to do it in a good way finally.</p>
<p><strong>robocopy $(ProjectDir) C:\Java\MyProj\assets\www\ *.html *.js *.css *.png *.gif *.jpg /S</strong></p>
<p>This will copy all the specified filetype, ignore files like .csproj and stuff like that. The S stands for &#8220;Copy directory structure but ignore empty folders&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/copy-a-folder-with-robocopy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch Optimize Png, Jpg and Gif images in Windows (and Visual Studio)</title>
		<link>http://codepolice.net/batch-optimize-png-jpg-and-gif-images-in-windows-and-visual-studio/</link>
		<comments>http://codepolice.net/batch-optimize-png-jpg-and-gif-images-in-windows-and-visual-studio/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 09:22:49 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://batch-optimize-png-jpg-and-gif-images-in-windows</guid>
		<description><![CDATA[A couple of days ago i found an awesome extension to Visual Studio that let&#8217;s you just right click an a folder in VS and it will optimize all the images in it with the help of SmushIt and PunyPng. I have tried to find a tool like this for a long time but haven&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago i found an <a href="http://madskristensen.net/post/Image-Optimizer-%28beta%29-VS2010-extension.aspx">awesome extension</a> to Visual Studio that let&#8217;s you just right click an a folder in VS and it will optimize all the images in it with the help of SmushIt and PunyPng. I have tried to find a tool like this for a long time but haven&#8217;t really found anything that suits my need. I also wanted this functionality in Windows outside of Visual Studio so i downloaded the code and made a extremely simple command prompt application for it. It would of course be even better if you could just right click a folder in Windows to run it but I&#8217;m a lazy person and this works for me.</p>
<p>Just run BatchOptimzeImage.exe &lt;foldername&gt; and it will optimize all the images in that folder. I wont give so much more instructions than this. And again .. ALL credits goes to <a href="http://madskristensen.net/">Mads Kristensen</a> for this on. I just wanted to put this out there so you don&#8217;t have to spend the hour i spent to make a console app out of it.</p>
<p><a href="/wp-content/uploads/2012/01/BatchOptimizeImages.zip">Download BatchImageOptimizer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/batch-optimize-png-jpg-and-gif-images-in-windows-and-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically switch spell check language/dictionary as you type in Firefox</title>
		<link>http://codepolice.net/automatically-switch-spell-check-languagedictionary-as-you-type-in-firefox/</link>
		<comments>http://codepolice.net/automatically-switch-spell-check-languagedictionary-as-you-type-in-firefox/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 04:02:42 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://automatically-switch-spell-check-language-dictionary-as-you-type-in-firefox</guid>
		<description><![CDATA[I have been looking for a plugin like this for ages. I constantly switch between Swedish and English when i work and it&#8217;s a pain to always remember to switch the spell check to the correct language. But today i found Dictionary Switcher that automatically set the spelling language to the locale of the page [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking for a plugin like this for ages. I constantly switch between Swedish and English when i work and it&#8217;s a pain to always remember to switch the spell check to the correct language. But today i found <a href="https://addons.mozilla.org/en-US/firefox/addon/dictionary-switcher/">Dictionary Switcher</a> that automatically set the spelling language to the locale of the page but also detect what language you are typing in and switch to the correct language. I&#8217;ve made a YouTube Video to show how it works.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/automatically-switch-spell-check-languagedictionary-as-you-type-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Action Result do not run ExecuteResult and just returning ToString</title>
		<link>http://codepolice.net/custom-action-result-do-not-run-executeresult-and-just-returning-tostring/</link>
		<comments>http://codepolice.net/custom-action-result-do-not-run-executeresult-and-just-returning-tostring/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 08:25:41 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://custom-action-result-do-not-execute</guid>
		<description><![CDATA[All of a sudden all of my RssFeeds stopped working on AlternativeTo. All i got was the name of the type i returned from my MVC methods that should return a &#34;RssResult&#34;. After some Googling i finally found the answer on Stack Overflow as usally. The problem was that i used version ;MVC 2 in [...]]]></description>
			<content:encoded><![CDATA[<p>All of a sudden all of my RssFeeds stopped working on AlternativeTo. All i got was the name of the type i returned from my MVC methods that should return a &quot;<a href="http://stackoverflow.com/questions/11915/rss-feeds-in-asp-net-mvc">RssResult</a>&quot;. After some Googling i finally found the answer on Stack Overflow as usally.</p>
<p>The problem was that i used version ;MVC 2 in some of my projects (the one where the code for the Custom Action Result was located) and version MVC 3 in some other (the web project).</p>
<p><a href="http://stackoverflow.com/questions/3280340/custom-asp-net-mvc-actionresult-is-not-executed">The thread on Stack Overflow about the issue.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/custom-action-result-do-not-run-executeresult-and-just-returning-tostring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RouteDebugger and 404 MVC Json requests</title>
		<link>http://codepolice.net/routedebugger-and-404-mvc-json-requests/</link>
		<comments>http://codepolice.net/routedebugger-and-404-mvc-json-requests/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 05:48:59 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://routedebugger-and-404-mvc-json-requests</guid>
		<description><![CDATA[I got this really strange bug where i got a 404 error on all request i made via Ajax to methods that returned Json via MVC. Turned out that this was caused by RouteDebug that i had laying around in my bin folder. I have got this bug twice now so i just wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>I got this really strange bug where i got a 404 error on all request i made via Ajax to methods that returned Json via MVC. Turned out that this was caused by RouteDebug that i had laying around in my bin folder. I have got this bug twice now so i just wanted to make a note of this here so i remember it next time.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/routedebugger-and-404-mvc-json-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: codepolice.net @ 2012-05-18 22:21:11 -->
