<?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.net</title>
	<atom:link href="http://codepolice.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://codepolice.net</link>
	<description>C#, ASP.NET, MVC, LINQ, Wordpress and stuff like that</description>
	<lastBuildDate>Wed, 01 Sep 2010 08:05:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Upgrade an ASP.NET Webforms application from 3.5 to 4.0</title>
		<link>http://codepolice.net/2010/09/01/upgrade-an-asp-net-webforms-application-from-3-5-to-4-0/</link>
		<comments>http://codepolice.net/2010/09/01/upgrade-an-asp-net-webforms-application-from-3-5-to-4-0/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 08:05:11 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[3.5]]></category>
		<category><![CDATA[4]]></category>
		<category><![CDATA[asp.net 4]]></category>
		<category><![CDATA[asp.net webforms]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[upgrade asp.net]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=343</guid>
		<description><![CDATA[Today i decided to upgrade our site AlternativeTo to ASP.NET Framework 4.0 and naturally there where some stuff that didn&#8217;t work. Hopefully someone else who is having the same issues will find this post and get some help from it. I started by follow this article from MSDN about upgrading from 3.5 (or lower) to [...]]]></description>
			<content:encoded><![CDATA[<p>Today i decided to upgrade our site <a href="http://alternativeto.net">AlternativeTo</a> to ASP.NET Framework 4.0 and naturally there where some stuff that didn&#8217;t work. Hopefully someone else who is having the same issues will find this post and get some help from it.</p>
<p>I started by follow <a href="http://msdn.microsoft.com/en-us/library/dd483478.aspx">this article from MSDN about upgrading from 3.5 (or lower) to 4.0</a>. I followed the manual upgrade process in the article since my site is kind of custom and also because i need to do the same changes in my production enviroment and wanted to know what is happening under the hood.</p>
<p>I should point out that i am running my code in IIS and not in the built in web server to mimic the production environment as close as possible.</p>
<ul>
<li>My first issue was that according to the <a href="http://msdn.microsoft.com/en-us/library/dd483478.aspx">guide on MSDN</a> i should delete everything in the system.webserver section of my Web.Config. Previously in the article they had pointed out that if i had added any custom stuff anywhere i should keep that. Since i had a lot if custom stuff in my system.webserver section i did not do as the guide suggested here. I guess i should do a trial and error and remove stuff that i think is safe to remove. The reason why you should delete a lot of stuff in the Web.Config is explained by Scott Guthrie in his <a href="http://weblogs.asp.net/scottgu/archive/2009/08/25/clean-web-config-files-vs-2010-and-net-4-0-series.aspx">web.config blog post</a>.</li>
<li>After i followed the guide i tried to start my site and got the error &#8220;<strong>Unrecognized attribute &#8216;targetFramework&#8217;</strong>&#8220;. I got this error because i had to change the target framework on the App Pool. Just right click the app pool and choose &#8220;advanced settings&#8221; and you find this setting at the top. But i still got a &#8220;anonymous&#8221; 500 error after this.</li>
<li>Then i tried to create a new site target with .net framework 4.0 and i got a slightly better error <strong>500.19</strong> that was actually &#8220;Googleable&#8221; and i found out that it was some kind of security issue. I moved my site to a folder outside my &#8220;my documents&#8221; space and .. another error! yey!</li>
<li>I got the error &#8216;<strong>&#8220;PageHandlerFactory-Integrated&#8221; has a bad module &#8220;ManagedPipelineHandler&#8221; in its module list</strong>&#8216;. This was also kind of easy to find and the post from <a href="http://www.gotknowhow.com/articles/fix-bad-module-managedpipelinehandler-in-iis7">Got Know How suggested me to reinstall .net framework 4.0</a> and finally everything worked!</li>
</ul>
<p>It was actually kind of an easy upgrade. I should point out that i haven&#8217;t tested the site that much yet and it&#8217;s not installed in my production environment but it should probably not be that big of a deal.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/09/01/upgrade-an-asp-net-webforms-application-from-3-5-to-4-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Request Filters doesn&#8217;t appear in IIS 7 Manager</title>
		<link>http://codepolice.net/2010/08/25/request-filters-doesnt-appear-in-iis-7-manager/</link>
		<comments>http://codepolice.net/2010/08/25/request-filters-doesnt-appear-in-iis-7-manager/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 10:33:56 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[iis 7]]></category>
		<category><![CDATA[iis manager]]></category>
		<category><![CDATA[iis7]]></category>
		<category><![CDATA[request filter]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=341</guid>
		<description><![CDATA[For some reasons some versions of IIS doesn&#8217;t include an option for &#8220;Request Filters&#8221; in IIS (In my case a Windows Server 2008 Datacenter hosted in Amazon EC2). If you have this problem just download the IIS Administration Pack.]]></description>
			<content:encoded><![CDATA[<p>For some reasons some versions of IIS doesn&#8217;t include an option for &#8220;Request Filters&#8221; in IIS (In my case a Windows Server 2008 Datacenter hosted in Amazon EC2). If you have this problem just download the <a href="http://www.iis.net/download/AdministrationPack">IIS Administration Pack</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/08/25/request-filters-doesnt-appear-in-iis-7-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stress test a web application in IIS</title>
		<link>http://codepolice.net/2010/08/19/stress-test-a-web-application-in-iis/</link>
		<comments>http://codepolice.net/2010/08/19/stress-test-a-web-application-in-iis/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 10:26:32 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=337</guid>
		<description><![CDATA[I recently noticed some performance issues with my ASP.NET Webforms application when it got some heavy load and i wanted to test it on a dev server with some heavy load. After loads of shitty Java and Python apps that required X number of strange frameworks and stuff i finally found the dream tool. The [...]]]></description>
			<content:encoded><![CDATA[<p>I recently noticed some performance issues with my ASP.NET Webforms application when it got some heavy load and i wanted to test it on a dev server with some heavy load. After loads of shitty Java and Python apps that required X number of strange frameworks and stuff i finally found the dream tool.</p>
<p>The <a href="http://blogs.iis.net/thomad/archive/2010/05/11/using-the-wcat-fiddler-extension-for-web-server-performance-tests.aspx">WCAT Fiddler Extension</a> was exactly what i was looking for.</p>
<ul>
<li>It uses WCAT that is designed to test IIS.</li>
<li>It use fiddler to record a test script.</li>
<li>You don&#8217;t have to install Java, Python or any other framework.</li>
<li>Everything is GUI based.</li>
</ul>
<p>I really recommend you to check out this tool. You can read more about how it works on the <a href="http://www.fiddlertool.com">Fiddler</a> and the <a href="http://blogs.iis.net/thomad/archive/2010/05/11/using-the-wcat-fiddler-extension-for-web-server-performance-tests.aspx">WCAT extension</a> page.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/08/19/stress-test-a-web-application-in-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problems with debuging in VS 2010</title>
		<link>http://codepolice.net/2010/07/26/problems-with-debuging-in-vs-2010/</link>
		<comments>http://codepolice.net/2010/07/26/problems-with-debuging-in-vs-2010/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 08:58:47 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=333</guid>
		<description><![CDATA[I opened up an old bloated project today in Visual Studio 2010 and i had huge issues with debugging. I usually use the attach to process way in this project but that suddenly that didn&#8217;t work anymore. Then i tried to debug with F5 but that caused my entire Visual Studio to hang. As i [...]]]></description>
			<content:encoded><![CDATA[<p>I opened up an old bloated project today in Visual Studio 2010 and i had huge issues with debugging. I usually use the attach to process way in this project but that suddenly that didn&#8217;t work anymore. Then i tried to debug with F5 but that caused my entire Visual Studio to hang. As i said, this is a old and bloated project.</p>
<p>Finally i realized that for some reason the &#8220;Attach to process&#8221; dialog had change the option &#8220;Attach to:&#8221; and it was set to &#8220;Managed (4.0) code&#8221;. When i changed it to &#8220;Managed (v2.0, v1.1, v1.0) code&#8221; it worked again.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/07/26/problems-with-debuging-in-vs-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clicky is more fun that Google Analytics</title>
		<link>http://codepolice.net/2010/07/14/clicky-is-more-fun-that-google-analtytics/</link>
		<comments>http://codepolice.net/2010/07/14/clicky-is-more-fun-that-google-analtytics/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 19:26:33 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[clicky]]></category>
		<category><![CDATA[google-analytics]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=325</guid>
		<description><![CDATA[Google Analytics has become more or less the standard tool for web statistics. Before Google Analytics came to market, you had to either pay or use statistics based on the web server log files. When Google bought Urchin and branded it to Google Analytics they changed all this by giving it away for free. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Google Analytics has  become more or less the standard tool for web statistics. Before Google Analytics  came to market, you had to either pay or use  statistics based on the web server log files. When Google bought Urchin  and branded it to Google Analytics they changed all this by giving it away for free.</p>
<p>I&#8217;ve actually never tried  anything other than log based tools (AWStats, Analog, etc.), WordPress Stats and Google Analytics. So when I got to see a  screenshot of <a href="http://getclicky.com/88270">Clicky</a> the first time I was sold. But why try something new? Google Analytics is good!</p>
<ul>
<li>Google Analytics is  pretty boring. Especially because they  do not provide statistics in real time, therefore you cannot see  directly how many visitors are on your site right now.</li>
<li>The GUI is a bit too  advanced. Eg I have many times  tried to find &#8220;what times of day are the people on my site&#8221;. And the information is  there somewhere but it is really hard to find. find.</li>
<li>Google has a &#8220;monopoly&#8221; on this.  Many complain that  Microsoft has a monopoly but I must say that Googles monopoly is &#8220;more  dangerous&#8221;. Take away Google  Analytics makes the world&#8217;s information spread out a tiny bit more.</li>
<li>If you build websites  for customers it&#8217;s perhaps not entirely comfortable giving  them a Google account to check their statistics. Clicky has a feature to White Label the product so that it looks like you made it yourself.</li>
<li>Analytics has no good  mobile interface. Of course, you must check  the statistics when you are out and drinking beer with your friends. GA and the others doesn&#8217;t   even have real-time statistics so it wouldn&#8217;t been fun anyway.</li>
</ul>
<p>Meet my new drug, <a href="http://getclicky.com/88270">Clicky</a>!</p>
<p>Statistics are addictive,  so if you feel that you have poor self-discipline you should stop  reading now and do not check the following screenshots on Clicky.</p>
<p><a href="http://codepolice.net/wp-content/uploads/2010/07/Clicky1.png"><img class="aligncenter size-full wp-image-327" title="Clicky1" src="http://codepolice.net/wp-content/uploads/2010/07/Clicky1.png" alt="" width="464" height="303" /></a></p>
<p><a href="http://codepolice.net/wp-content/uploads/2010/07/Clicky2.png"><img class="aligncenter size-full wp-image-328" title="Clicky2" src="http://codepolice.net/wp-content/uploads/2010/07/Clicky2.png" alt="" width="457" height="299" /></a></p>
<p><a href="http://codepolice.net/wp-content/uploads/2010/07/clicky-mobile.png"><br />
<img class="aligncenter size-full wp-image-329" title="clicky-mobile" src="http://codepolice.net/wp-content/uploads/2010/07/clicky-mobile.png" alt="" width="320" height="480" /></a></p>
<p>Check it out for yourself: <a href="http://getclicky.com/88270">Clicky</a></p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/07/14/clicky-is-more-fun-that-google-analtytics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Problems with mssql_connect() on IIS</title>
		<link>http://codepolice.net/2010/07/14/problems-with-mssql_connect-on-iis/</link>
		<comments>http://codepolice.net/2010/07/14/problems-with-mssql_connect-on-iis/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 09:47:45 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=311</guid>
		<description><![CDATA[Lately I&#8217;ve been reinstalling my Windows servers a couple of time due to some problems. I&#8217;m running both PHP (WordPress) and ASP.NET on my server. From my WordPress blog I sometimes connect to MS SQL to get some data and this time i could not get the MSSQL extension in PHP to work. I got [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been reinstalling my Windows servers a couple of time due to some problems. I&#8217;m running both PHP (WordPress) and ASP.NET on my server. From my WordPress blog I sometimes connect to MS SQL to get some data and this time i could not get the MSSQL extension in PHP to work. I got this error all the time.</p>
<blockquote><p><strong>call to undefined function mssql_connect()</strong></p></blockquote>
<p>When you Google this you mostly get the tip that you should put the file ntwdblib.dll in the /ext folder. I have a vague memory that this helped me the last time i had this problem but this time that didn&#8217;t help. I also noticed that MSSQL was not loaded when i run phpinfo().</p>
<p>Finally I <a href="http://forums.iis.net/t/1162267.aspx">found this post</a> on the IIS forum that recommended me to run the command.</p>
<blockquote><p><strong>php-cgi.exe -v</strong></p></blockquote>
<p>When I did this I got an error message telling me that &#8220;This program cannot start because msvcr71dll is missing from your computer&#8221;. I then <a href=" http://i.justrealized.com/2009/05/16/how-to-fix-missing-msvcr71dll-problem-in-windows/">downloaded this dll file</a>, put it in my C:\Windows\SysWOW64 (/system32 if you are on 32 bit). I also recycled my application on IIS and then everything worked. Hallelulja!</p>
<p>I have no idea if it&#8217;s related but i used &#8220;Web platform installer&#8221; to install PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/07/14/problems-with-mssql_connect-on-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pclzip_err_bad_format (-10) : unable to find end of central dir record signature</title>
		<link>http://codepolice.net/2010/07/07/pclzip_err_bad_format-10-unable-to-find-end-of-central-dir-record-signature/</link>
		<comments>http://codepolice.net/2010/07/07/pclzip_err_bad_format-10-unable-to-find-end-of-central-dir-record-signature/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 08:58:09 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=308</guid>
		<description><![CDATA[I got this error today when i was trying to upgrade some WordPress plugins. It turned out that my disk was full at my webhost. When i googled the error message i got lots of different answers so i just thought i would try to give some google juice to this solution.]]></description>
			<content:encoded><![CDATA[<p>I got this error today when i was trying to upgrade some WordPress plugins. It turned out that my disk was full at my webhost. When i googled the error message i got lots of different answers so i just thought i would try to give some google juice to this solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/07/07/pclzip_err_bad_format-10-unable-to-find-end-of-central-dir-record-signature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS Problems with Windows Process Activation Service</title>
		<link>http://codepolice.net/2010/06/30/iis-problems-with-windows-process-activation-service/</link>
		<comments>http://codepolice.net/2010/06/30/iis-problems-with-windows-process-activation-service/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 11:09:44 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[Windows Process Activation Service]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=301</guid>
		<description><![CDATA[We have moved one of our servers to a VPS. After crash we had to restore the VPS from a backup and when the server was restored we got a couple of strange errors with our IIS server.  The server is a Windows Server 2008 R2 and some of the errors i got where. Windows [...]]]></description>
			<content:encoded><![CDATA[<p>We have moved one of our servers to a VPS. After crash we had to restore the VPS from a backup and when the server was restored we got a couple of strange errors with our IIS server.  The server is a Windows Server 2008 R2 and some of the errors i got where.</p>
<p><em>Windows Process Activation Service (WAS) is stopping because it encountered an error. The data field contains the error number.</em></p>
<p>&#8211;</p>
<p><em>The configuration manager for Windows Process Activation Service (WAS) did not initialize. The data field contains the error number.</em></p>
<p>&#8211;</p>
<p><em>The Windows Process Activation Service failed to generate an application pool config file for application pool &#8216;*&#8217;. The error type is &#8217;0&#8242;. To resolve this issue, please ensure that the applicationhost.config file is correct and recommit the last configuration changes made. The data field contains the error number.</em></p>
<p>&#8211;</p>
<p><em>The Windows Process Activation Service service terminated with the following error:<br />
Transaction support within the specified resource manager is not started or was shut down due to an error.</em></p>
<p>&#8211;</p>
<p>Not awesome errors. Of course i tried to Google for the problem and i found lots of other people with similar errors but most of them had to do with missing or corrupt config files and none of these fixes solved my problem. Then i tried to do a Windows Update and saw that i got an error there to. I googled and those errors and found <a href="http://social.answers.microsoft.com/Forums/en/vistawu/thread/27a21977-f964-4376-bfab-2f29ea127c6a">this thread</a> in one of MS forums. It was a fix for the Window Update error with the Code 80071A91.</p>
<blockquote><p><strong>How-to reset the File System  Resource Manager if you receive error 0x80071A91</strong></p>
<p>1. Click <strong>Start</strong>, click <strong>All  Programs</strong>, click <strong>Accessories</strong>, right-click <strong>Command Prompt</strong>,  and select <strong>Run as administrator</strong>.<br />
2. In the Command Prompt window  you will need to type the following, and press <strong>ENTER</strong>:<strong> fsutil resource setautoreset true C:\</strong><em> </em><br />
<em>3. </em><strong>Note:</strong> <em>You will need to replace the C:\ with the drive  letter that Windows Vista is installed on.</em><br />
4. Restart your computer, and then  attempt to install the failed update(s).</p></blockquote>
<p>I did as described above and to my surprise the updates did work after this. And to my even greater surprise i entered the IIS Manager and (YEY!) the sites where up an running again and the Windows Process Activation Service where started and then i lived happily ever after.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/06/30/iis-problems-with-windows-process-activation-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Only show the sub menu when the parent is selected with the new wp_nav_menu in WordPress 3.0</title>
		<link>http://codepolice.net/2010/06/28/only-show-the-sub-menu-when-the-parent-is-selected-with-the-new-wp_nav_menu-in-wordpress-3-0/</link>
		<comments>http://codepolice.net/2010/06/28/only-show-the-sub-menu-when-the-parent-is-selected-with-the-new-wp_nav_menu-in-wordpress-3-0/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 14:39:07 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress 3]]></category>
		<category><![CDATA[wp_nav_menu]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=296</guid>
		<description><![CDATA[I just spent two hours trying to hide the submenu for a menu item that is not selected in the new menu system in WordPress 3.0. First i found this post in the WordPress forums where someone had built a &#8220;Custom Walker&#8221; but it was for a slightly different scenario and it was also a [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent two hours trying to hide the submenu for a menu item that is not selected in the new menu system in WordPress 3.0. First i found <a href="http://wordpress.org/support/topic/413314">this post in the WordPress forums</a> where someone had built a &#8220;Custom Walker&#8221; but it was for a slightly different scenario and it was also a really complicated solution. Then i realized that i can do this super simple with jQuery. All you need is two lines of codes.</p>
<pre class="brush:javascript">$(document).ready(function () {
 $(".sub-menu").hide();
 $(".current_page_item .sub-menu, .current_page_parent .sub-menu").show();
 $(".sub-menu li").after("&lt;li class='sub-menu-seperator'&gt;|&lt;/li&gt;");
});</pre>
<p>This will hide all sub-menus, and then if a parent happens to have the class .current_page_item we show the sub-menu. My god i love jQuery.</p>
<p><strong>Update:</strong></p>
<p>As sushicodeur suggest you could of course do this only with CSS, it&#8217;s basically the same thing.</p>
<pre class="brush:css">.sub-menu { display: none; }
.current_page_item .sub-menu, .current_page_parent .sub-menu { display: block; }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/06/28/only-show-the-sub-menu-when-the-parent-is-selected-with-the-new-wp_nav_menu-in-wordpress-3-0/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress file upload on IIS, 403, permalinks and all sorts of crap</title>
		<link>http://codepolice.net/2010/06/22/wordpress-file-upload-on-iis-403-permalinks-and-all-sorts-of-crap/</link>
		<comments>http://codepolice.net/2010/06/22/wordpress-file-upload-on-iis-403-permalinks-and-all-sorts-of-crap/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 19:18:45 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[403]]></category>
		<category><![CDATA[image upload]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://codepolice.net/?p=291</guid>
		<description><![CDATA[I have just installed two servers with IIS 7 and IIS 7.5 and i have had all sorts of problems with IIS file uploads. Issues with permissions for PHP and WordPress. Apparently with PHP you must give your IIS_IUSRS (What is the diffrence between IIS_IUSRS and IUSR btw?)  user permission to both your temp direct [...]]]></description>
			<content:encoded><![CDATA[<p>I have just installed two servers with IIS 7 and IIS 7.5 and i have had all sorts of problems with IIS file uploads.</p>
<ol>
<li>Issues with permissions for PHP and WordPress. Apparently with PHP you must give your IIS_IUSRS (What is the diffrence between IIS_IUSRS and IUSR btw?)  user permission to both your temp direct (upload_tmp_dir) and your regular upload directory in WordPress (\wp-content\uploads)</li>
<li>Remember to SAVE YOUR POST AS A DRAFT (or publish it of course) before uploading. I just spent the last ½ hour trying to upload images but all i got was &#8220;403 Access Denied&#8221;. When i saved the post everything worked perfectly.</li>
</ol>
<p>Well .. this is the issues i found so far. Will update this post if i find anything else.</p>
<p>Links: <a href="http://joseph.randomnetworks.com/archives/2007/09/04/wordpress-file-uploads-with-iis/">WordPress File Uploads With IIS</a>, <a href="http://wordpress.org/support/topic/383737">Issue with image upload</a> .. and more</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2010/06/22/wordpress-file-upload-on-iis-403-permalinks-and-all-sorts-of-crap/feed/</wfw:commentRss>
		<slash:comments>1</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! -->