<?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>Arturito.net</title>
	<atom:link href="http://arturito.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://arturito.net</link>
	<description>Come to The Dark Side, We Have Cookies!</description>
	<lastBuildDate>Mon, 30 Jan 2012 16:57:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ASP.MVC 2 &#8211; How to migrate project from  ASP.NET 2.0 .NET Framework 3.5 to  ASP.NET 4.0 .NET Framework 4</title>
		<link>http://arturito.net/2012/01/25/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4/</link>
		<comments>http://arturito.net/2012/01/25/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 10:20:32 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[C sharp]]></category>
		<category><![CDATA[IIS7]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1145</guid>
		<description><![CDATA[TweetSo you have decided to move your ASP.NET MVC2 project  from the Windows Server configured with  ASP.NET 2.0 .NET Framework 3.5
to  ASP.NET 4.0 .NET Framework 4.
Here is how I did it.
My old setup:
Windows Server 2008 R2
IIS 7.5
 ASP.NET
Application Pool : .NET Framework v2.0.50727
.NET Framework installed:  3.5 SP1
My new setup:
Windows Server 2008 R2
IIS 7.5
ASP.NET
Application Pool : .NET [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1145" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2012%2F01%2F25%2Fasp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4%2F&amp;text=ASP.MVC%202%20%26%238211%3B%20How%20to%20migrate%20project%20from%20%20ASP.NET%202.0%20.NET%20Framework%203.5%20to%20%20ASP.NET%204.0%20.NET%20Framework%204&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2012%2F01%2F25%2Fasp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>So you have decided to move your ASP.NET MVC2 project  from the Windows Server configured with  ASP.NET 2.0 .NET Framework 3.5<br />
to  ASP.NET 4.0 .NET Framework 4.</p>
<p>Here is how I did it.</p>
<p>My old setup:</p>
<p>Windows Server 2008 R2<br />
<strong>IIS 7.5</strong><br />
<strong> ASP.NET</strong><br />
Application Pool :<strong> .NET Framework v2.0.50727</strong><br />
.NET Framework installed:  <strong>3.5 SP1</strong></p>
<p>My new setup:</p>
<p>Windows Server 2008 R2<br />
<strong>IIS 7.5<br />
</strong><strong>ASP.NET<br />
</strong>Application Pool : <strong>.NET Framework v4.0.30319<br />
</strong>.NET Framework installed:<strong>  4.0</strong></p>
<p>The good thing is that the ASP.NET is <strong>backward compatible</strong>. You shoud publish the website on the new setup and it should work straight away.</p>
<p>In my case I had to remove these from<strong> web.config</strong>:</p>
<pre class="brush: xml; title: ; notranslate">

&lt;section name=&quot;scriptResourceHandler&quot; type=&quot;System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirepermission=&quot;false&quot; allowdefinition=&quot;MachineToApplication&quot;&gt;&lt;/section&gt;
&lt;section name=&quot;jsonSerialization&quot; type=&quot;System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirepermission=&quot;false&quot; allowdefinition=&quot;Everywhere&quot;&gt;&lt;/section&gt;&lt;section name=&quot;profileService&quot; type=&quot;System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirepermission=&quot;false&quot; allowdefinition=&quot;MachineToApplication&quot;&gt;&lt;/section&gt;&lt;section name=&quot;authenticationService&quot; type=&quot;System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirepermission=&quot;false&quot; allowdefinition=&quot;MachineToApplication&quot;&gt;&lt;/section&gt;&lt;section name=&quot;roleService&quot; type=&quot;System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&quot; requirepermission=&quot;false&quot; allowdefinition=&quot;MachineToApplication&quot;&gt;&lt;/section&gt;
</pre>
<p>If it still gives you problems got to <strong>IIS Manager</strong> and click<strong> Error Pages</strong>:</p>
<p><img class="alignnone size-full wp-image-1138" title="asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_IIS" src="http://arturito.net/wp-content/uploads/2012/01/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_IIS.png" alt="" width="446" height="105" /></p>
<p>Select <strong>500</strong> , right click and select <strong>Edit Feature Settings</strong></p>
<p><a href="http://arturito.net/wp-content/uploads/2012/01/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_IIS_Edit.png"><img class="alignnone size-full wp-image-1140" title="asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_IIS_Edit" src="http://arturito.net/wp-content/uploads/2012/01/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_IIS_Edit.png" alt="" width="593" height="421" /></a></p>
<p>Here select &#8220;Detailed errors&#8221;</p>
<p><img class="alignnone size-full wp-image-1139" title="asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_Error_Details" src="http://arturito.net/wp-content/uploads/2012/01/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4_Error_Details.png" alt="" width="583" height="675" /></p>
<p>Now you should get detailed error within your web.config. Also check <strong>Event Viewer</strong> under the section <strong>Administrative Events</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2012/01/25/asp-mvc-2-how-to-migrate-project-from-asp-net-2-0-net-framework-3-5-to-asp-net-4-0-net-framework-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure library mode in XBMC Apple TV 2G ( movie covers, title, genre) Part 2</title>
		<link>http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2/</link>
		<comments>http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 20:11:46 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[Apple TV 2]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1126</guid>
		<description><![CDATA[Tweet
Now highlight library and press and hold Menu button.






Click button Left and highlight Library Mode








To get the xbmc to create the library properly always put the movie in the directory with the name and the year of the movie.
Let&#8217;s say you have file Armyofdarkness.avi. Stick it to the folder called Army of Darkness (1992)
as it appears [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1126" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F12%2F03%2Fhow-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2%2F&amp;text=How%20to%20configure%20library%20mode%20in%20XBMC%20Apple%20TV%202G%20%28%20movie%20covers%2C%20title%2C%20genre%29%20Part%202&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F12%2F03%2Fhow-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_1-1.jpg" alt="" width="737" height="479" /><br />
Now highlight <em>library</em> and press and hold<strong> Menu</strong> button.</p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_2.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_3.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_4.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_5.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_6.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_7.jpg" alt="" width="737" height="479" /><br />
Click button<strong> Left</strong> and highlight<strong> Library Mode<br />
</strong></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_7a.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_7b.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_8.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_9.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_10.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_11.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_12.jpg" alt="" width="737" height="479" /></p>
<p>To get the xbmc to create the library properly always put the movie in the directory with the name and the year of the movie.<br />
Let&#8217;s say you have file Armyofdarkness.avi. Stick it to the folder called <strong>Army of Darkness (1992)<br />
</strong>as it appears in imdb.com <a href="http://www.imdb.com/title/tt0106308/">http://www.imdb.com/title/tt0106308/</a></p>
<p>Let&#8217;s say xbmc didn&#8217;t get the movie right. No problem. Look at this case. The movie here is a<em> The Dark City 1998</em> but the XBMC detected it as <em>The Director&#8217;s Cut</em> as the folder is called<em> The Dark City &#8211; The Director&#8217;s Cut (1998)<br />
</em><br />
We can fix it quickly:</p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_13.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_14-1.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_15.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_16.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_17.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_18.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_19-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2_19-1.jpg" alt="" width="737" height="479" /></p>
<p>In the next post I will show how to configure TV Shows and Music library</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to configure library mode in XBMC Apple TV 2G ( movie covers, title, genre) Part 1</title>
		<link>http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1/</link>
		<comments>http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 19:22:48 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[Apple TV 2]]></category>
		<category><![CDATA[XBMC]]></category>
		<category><![CDATA[apple-tv2]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1121</guid>
		<description><![CDATA[TweetSo you got yourself XBMC installed and you would like to get the XBMC to automatically download movie and tv shows covers, casts, synopis and rating. Like on the image below:

Well, XBMC has something that is called Library Mode which I will show how to configure.
What we need to do is:
1. Add shared directory with [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1121" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F12%2F03%2Fhow-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1%2F&amp;text=How%20to%20configure%20library%20mode%20in%20XBMC%20Apple%20TV%202G%20%28%20movie%20covers%2C%20title%2C%20genre%29%20Part%201&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F12%2F03%2Fhow-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>So you got yourself XBMC installed and you would like to get the XBMC to automatically download movie and tv shows covers, casts, synopis and rating. Like on the image below:</p>
<p><img class="alignnone" title="how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1-01.jpg" alt="" width="737" height="479" /></p>
<p>Well, XBMC has something that is called Library Mode which I will show how to configure.</p>
<p>What we need to do is:</p>
<p>1. Add shared directory with movies (local or remote). If you haven&#8217;t done it yet check this tutorial:<br />
<a title="http://arturito.net/2011/10/20/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc/" href="http://arturito.net/2011/10/20/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc/" target="_blank"> http://arturito.net/2011/10/20/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc/</a></p>
<p>2. Install IMDB scrapper.<br />
*IMDB scrapper is a plugin that will download movie information and cover from imdb.com</p>
<p>3. Set content</p>
<p>Let&#8217;s install the scrapper:</p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-2.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-3.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-4.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-5.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-6.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-7.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-1.jpg" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-set-the-xbmc-in-the-library-mode-part-1-installing-imdb-add-on-8.jpg" alt="" width="737" height="479" /></p>
<p>Now with the scrapper installed we can start setting up content.</p>
<p>Continue to part 2</p>
<p><a href="http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2/">http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-2/</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/12/03/how-to-configure-library-mode-in-xbmc-apple-tv-2g-movie-covers-title-genre-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Find firmware version of Apple TV 2G (software and system version)</title>
		<link>http://arturito.net/2011/11/30/how-to-find-firmware-version-of-apple-tv-2g-software-and-system-version/</link>
		<comments>http://arturito.net/2011/11/30/how-to-find-firmware-version-of-apple-tv-2g-software-and-system-version/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 11:12:04 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[Apple TV 2]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1114</guid>
		<description><![CDATA[Tweet

In this article I will explain versions of Apple TV as it comes very confusing to some users.
The Apple TV device runs the operating system called iOS.
On this operating system runs Apple TV software system.
Imagine that it is like Microsoft Windows running Windows Media Player.
That&#8217;s why Apple TV 2G comes with two &#8220;version&#8221; numbers.
Software Version [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1114" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F11%2F30%2Fhow-to-find-firmware-version-of-apple-tv-2g-software-and-system-version%2F&amp;text=How%20to%20Find%20firmware%20version%20of%20Apple%20TV%202G%20%28software%20and%20system%20version%29&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F11%2F30%2Fhow-to-find-firmware-version-of-apple-tv-2g-software-and-system-version%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><br/><br />
<br/><br />
In this article I will explain versions of Apple TV as it comes very confusing to some users.</p>
<p>The Apple TV device runs the operating system called iOS.<br />
On this operating system runs Apple TV software system.</p>
<p>Imagine that it is like Microsoft Windows running Windows Media Player.</p>
<p>That&#8217;s why Apple TV 2G comes with two &#8220;version&#8221; numbers.</p>
<p><strong>Software Version</strong> &#8211; which is also called firmware version.<br />
We can find it under <strong>Settings &gt; General &gt; About  </strong>and see<strong> &#8220;Software Version&#8221;</strong></p>
<p><strong>System Version</strong> &#8211; which is the version of iOS.<br />
We can find it under <strong>Settings &gt; General &gt; About</strong> by clicking once on <strong>&#8220;Software Version&#8221;</strong></p>
<p>For example Apple TV Software Version 4.2 runs on iOS version 4.3</p>
<p><br/><br />
<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/11/30/how-to-find-firmware-version-of-apple-tv-2g-software-and-system-version/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC2  Visual Studio Error &#8211; The project type is not supported by this installation</title>
		<link>http://arturito.net/2011/11/16/asp-net-mvc2-visual-studio-error-the-project-type-is-not-supported-by-this-installation/</link>
		<comments>http://arturito.net/2011/11/16/asp-net-mvc2-visual-studio-error-the-project-type-is-not-supported-by-this-installation/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 08:03:03 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[C sharp]]></category>
		<category><![CDATA[asp.net mvc2]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1108</guid>
		<description><![CDATA[Tweet

If you get this error when opening a solution in Visual Studio, just go to the project file (YourProject.csproj) which fails to open and change the line
to

]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1108" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F11%2F16%2Fasp-net-mvc2-visual-studio-error-the-project-type-is-not-supported-by-this-installation%2F&amp;text=ASP.NET%20MVC2%20%20Visual%20Studio%20Error%20%26%238211%3B%20The%20project%20type%20is%20not%20supported%20by%20this%20installation&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F11%2F16%2Fasp-net-mvc2-visual-studio-error-the-project-type-is-not-supported-by-this-installation%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><br/><br />
<br/></p>
<p>If you get this error when opening a solution in <strong>Visual Studio</strong>, just go to the project file (<strong>YourProject.csproj</strong>) which fails to open and change the line</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ProjectTypeGuids&gt;{Some_GUID}&lt;/ProjectTypeGuids&gt;
</pre>
<p>to</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ProjectTypeGuids&gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&lt;/ProjectTypeGuids&gt;
</pre>
<p><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/11/16/asp-net-mvc2-visual-studio-error-the-project-type-is-not-supported-by-this-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC2 in the web farm &#8211; slow page load with high traffic &#8211; where is the bottleneck?</title>
		<link>http://arturito.net/2011/10/24/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck/</link>
		<comments>http://arturito.net/2011/10/24/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 10:59:12 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[C sharp]]></category>
		<category><![CDATA[asp.net mvc2]]></category>
		<category><![CDATA[Bottleneck]]></category>
		<category><![CDATA[Web Farm]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1099</guid>
		<description><![CDATA[TweetRecently I have implemented quite complex e-commerce web application using technologies such as: ASP.NET MVC2, Linq2SQL , .NET 3.5 , SQL Server 2008 R2.
We have the whole thing hosted in the web farm.
We have 4 x IIS7 + 1 SQL SERVER 2008 load balanced with MS NLB
Static content is cached by external cache provider &#8211; [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1099" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F10%2F24%2Fasp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck%2F&amp;text=ASP.NET%20MVC2%20in%20the%20web%20farm%20%26%238211%3B%20slow%20page%20load%20with%20high%20traffic%20%26%238211%3B%20where%20is%20the%20bottleneck%3F&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F10%2F24%2Fasp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Recently I have implemented quite complex e-commerce web application using technologies such as: ASP.NET MVC2, Linq2SQL , .NET 3.5 , SQL Server 2008 R2.</p>
<p>We have the whole thing hosted in the web farm.</p>
<p>We have 4 x IIS7 + 1 SQL SERVER 2008 load balanced with MS NLB</p>
<p>Static content is cached by external cache provider &#8211; Akamai, which reduces 86% of the requests.</p>
<p>Each web server has 32 GB of RAM and 4 x quad core CPUs so there are 64 cores on the front-end.</p>
<p>We store session state in tables of SQL server.</p>
<p>It works prefectly with medium traffic (page load = 0.2 -0.3 s)</p>
<p><img class="alignnone" title="asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck-after.jpg" alt="" width="708" height="73" /></p>
<p>but the company does the tv ads and during those ads the traffic hits up to 20,000 -30,000 users within 20-30 seconds.</p>
<p>In this moment the page slows down to 39 seconds. However, the usage of CPU&#8217;s and the memory doesn&#8217;t even arrive to 40% on any machine.</p>
<p><img class="alignnone" title="ASP.NET MVC2 in the web farm - slow page load with high traffic - where is the bottleneck?" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck-before.jpg" alt="" width="689" height="49" /></p>
<p>The bandwidth of the data centre does not arrive to the half of its limits.</p>
<p>Pages which are slow generate data from simple SELECTs of maximum 10 records from 1-2 tables only.</p>
<p>I gone through all possible things: I already had my queries compiled but I also optimized selects, created additional indexes studied a lot the problems of storing session in tables that sql server 2005 had (temdb) and I couldn&#8217;t figure out what was going on.</p>
<p>You could reproduce the the problem by launching stress tools against the web. The worst thing was that we could freeze the web just by launching stress tools from only two pc&#8217;s located in our offices.</p>
<p>I have also posted the question on stackoverflow<br />
<a href="http://stackoverflow.com/questions/7644339/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic" target="_blank">http://stackoverflow.com/questions/7644339/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic<br />
</a>where people suggested to check indexes and use CompiledQuery.</p>
<p>In practice 90% of the bottlenecks are caused by database. After the whole week of tests and studying the problem I have possibly found a bug in the ASP.NET MVC2 library.<br />
It was incredible how silly the thing was:</p>
<p>Let&#8217;s have a look at this code:</p>
<pre class="brush: csharp; title: ; notranslate">

public ActionResult Index(){
var model = new SomeModel();
// Get data
....
return View(model);
}
</pre>
<p>In this code the <strong>View</strong> is generated using file<strong> Index.aspx</strong>.<br />
However, this <strong>View</strong> needs to be found in some way and I guess the search of the this <strong>View</strong> is causing the problem.</p>
<p>Unbelievable but true &#8211; <strong>adding the name of the View removed the problem</strong>:</p>
<pre class="brush: csharp; title: ; notranslate">

public ActionResult Index() {
 var model = new SomeModel();
// Get data
....
return View(&quot;Index&quot;,model);
}
</pre>
<p>I say it again, this problem does exists only when the web has a high number of users.<br />
The MVC version I&#8217;m using is</p>
<p>Version: 2.0.0.0<br />
Runtime: v2.0.50727</p>
<p>I have contacted the geeks responsible for the design and development of this great library to see what they say.</p>
<p>By all means I don&#8217;t  want to discourage anyone to use this library as it is absolutely fantastic and I use it a lot and I will carry on using it.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/10/24/asp-net-mvc2-in-the-web-farm-slow-page-load-with-high-traffic-where-is-the-bottleneck/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to remove Server, X-AspNet-Version, X-AspNetMvc-Version and X-Powered-By from the response header in IIS7</title>
		<link>http://arturito.net/2011/10/21/how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7/</link>
		<comments>http://arturito.net/2011/10/21/how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 07:07:12 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[C sharp]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[ASP:NET MVC2]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1095</guid>
		<description><![CDATA[TweetYou can check your response headers by using Firebug add-on for Firefox or just hit Ctrl+J in Chrome.

Unwanted info:
Server Microsoft-IIS/7.5
X-AspNetMvc-Version 3.0
X-AspNet-Version 4.0.303319
X-Powered-By ASP.NET
&#160;
1. Removing X-AspNet-Version
In web.config stick this line in
2. Removing X-AspNetMvc-Version
In Global.asax.cs add this line:
3. Removing or changing Server
Add this module class to your project.
And add set it in web config
4. Removing or changing [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1095" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F10%2F21%2Fhow-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7%2F&amp;text=How%20to%20remove%20Server%2C%20X-AspNet-Version%2C%20X-AspNetMvc-Version%20and%20X-Powered-By%20from%20the%20response%20header%20in%20IIS7&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F10%2F21%2Fhow-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>You can check your response headers by using<strong> Firebug</strong> add-on for <strong>Firefox</strong> or just hit <strong>Ctrl+J</strong> in <strong>Chrome</strong>.</p>
<p><img class="alignnone" title="how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7-1.jpg" alt="" width="735" height="516" /></p>
<p>Unwanted info:</p>
<p>Server Microsoft-IIS/7.5<br />
X-AspNetMvc-Version 3.0<br />
X-AspNet-Version 4.0.303319<br />
X-Powered-By ASP.NET</p>
<p>&nbsp;</p>
<p>1. Removing <strong>X-AspNet-Version</strong></p>
<p>In <strong>web.config</strong> stick this line in</p>
<pre class="brush: xml; title: ; notranslate">

&lt;system.web&gt;
      &lt;httpRuntime enableVersionHeader=&quot;false&quot;/&gt;
	...
</pre>
<p>2. Removing <strong>X-AspNetMvc-Version</strong></p>
<p>In <strong>Global.asax.cs</strong> add this line:</p>
<pre class="brush: csharp; title: ; notranslate">

protected void Application_Start()
{
    MvcHandler.DisableMvcResponseHeader = true;
}
</pre>
<p>3. Removing or changing <strong>Server</strong></p>
<p>Add this module class to your project.</p>
<pre class="brush: csharp; title: ; notranslate">

using System;
using System.Web;

namespace Project.Infrastructure.Web.Modules.Http
{
    public class CustomHeaderModule : IHttpModule
    {
        public void Init(HttpApplication context)
        {
            context.PreSendRequestHeaders += OnPreSendRequestHeaders;
        }

        public void Dispose() { }

        void OnPreSendRequestHeaders(object sender, EventArgs e)
        {
	     //HttpContext.Current.Response.Headers.Remove(&quot;Server&quot;);
            // Or you can set something funny
	    HttpContext.Current.Response.Headers.Set(&quot;Server&quot;, &quot;CERN httpd&quot;);
        }
    }
}
</pre>
<p>And add set it in <strong>web config</strong></p>
<pre class="brush: xml; title: ; notranslate">

	&lt;system.webServer&gt;
		&lt;modules&gt;
        &lt;add name=&quot;CustomHeaderModule&quot; type=&quot;StrongNamespace.HttpModules.CustomHeaderModule&quot; /&gt;
</pre>
<p>4. Removing or changing<strong> X-Powered-By</strong></p>
<p>Go to <strong>IIS7 Management Console</strong> and open <strong>HTTP Response Headers</strong></p>
<p><img class="alignnone" title="how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7-2.jpg" alt="" width="774" height="344" /></p>
<p>And that should be it!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/10/21/how-to-remove-server-x-aspnet-version-x-aspnetmvc-version-and-x-powered-by-from-the-response-header-in-iis7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add network drive (NAS storage) or windows share in XBMC</title>
		<link>http://arturito.net/2011/10/20/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc/</link>
		<comments>http://arturito.net/2011/10/20/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 06:35:32 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[Apple TV 2]]></category>
		<category><![CDATA[XBMC]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1087</guid>
		<description><![CDATA[Tweet



 
Please specify drive hostname or ip address of the device and the name of the hared folder.
Depending on your security settings you might also provide username and password.
(My network storage is Synology DS110j
http://www.synology.com/us/products/DS110j/index.php)
 


]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1087" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F10%2F20%2Fhow-to-add-network-drive-nas-storage-or-windows-share-in-xbmc%2F&amp;text=How%20to%20add%20network%20drive%20%28NAS%20storage%29%20or%20windows%20share%20in%20XBMC&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F10%2F20%2Fhow-to-add-network-drive-nas-storage-or-windows-share-in-xbmc%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><img class="alignnone" title="how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc-1.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc-2.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc-3.jpg" alt="" width="737" height="479" /></p>
<p><img class="alignnone" title="how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc-4.jpg" alt="" width="921" height="599" /></p>
<p> <br />
Please specify drive hostname or ip address of the device and the name of the hared folder.<br />
Depending on your security settings you might also provide username and password.</p>
<p>(My network storage is Synology DS110j<br />
<a title="Synology DS110j" href="http://www.synology.com/us/products/DS110j/index.php" target="_blank">http://www.synology.com/us/products/DS110j/index.php</a>)</p>
<p> <br />
<img class="alignnone" title="how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc-5.jpg" alt="" width="921" height="599" /></p>
<p><img class="alignnone" title="how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc" src="http://i1134.photobucket.com/albums/m614/Arturito_Net/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc-6.jpg" alt="" width="921" height="599" /></p></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/10/20/how-to-add-network-drive-nas-storage-or-windows-share-in-xbmc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InstallSqlState.sql errors: ASPState_Job_DeleteExpiredSessions does not exist and The specified @name (&#8216;[Uncategorized (Local)]&#8216;) already exists</title>
		<link>http://arturito.net/2011/09/19/installsqlstate-sql-errors-aspstate_job_deleteexpiredsessions-does-not-exist-and-the-specified-name-uncategorized-local-already-exists/</link>
		<comments>http://arturito.net/2011/09/19/installsqlstate-sql-errors-aspstate_job_deleteexpiredsessions-does-not-exist-and-the-specified-name-uncategorized-local-already-exists/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 11:59:58 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[IIS7]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1082</guid>
		<description><![CDATA[TweetSo........... you are configuring ASP.NET SQL session state and Microsoft's
documentation tells you to execute InstallSqlState.sql found in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
but you always get this:

If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.
Msg 14262, Level 16, State 1, Procedure sp_verify_job_identifiers, Line 67
The specified @job_name ('ASPState_Job_DeleteExpiredSessions') does not exist.
If the category already exists, an error from msdb.dbo.sp_add_category [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1082" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F09%2F19%2Finstallsqlstate-sql-errors-aspstate_job_deleteexpiredsessions-does-not-exist-and-the-specified-name-uncategorized-local-already-exists%2F&amp;text=InstallSqlState.sql%20errors%3A%20ASPState_Job_DeleteExpiredSessions%20does%20not%20exist%20and%20The%20specified%20%40name...%20&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F09%2F19%2Finstallsqlstate-sql-errors-aspstate_job_deleteexpiredsessions-does-not-exist-and-the-specified-name-uncategorized-local-already-exists%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><pre>So........... you are configuring ASP.NET SQL session state and Microsoft's
documentation tells you to execute <strong>InstallSqlState.sql</strong> found in
<strong>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\</strong>
but you always get this:

If the job does not exist, an error from msdb.dbo.sp_delete_job is expected.
<span style="color: #ff0000;">Msg 14262, Level 16, State 1, Procedure sp_verify_job_identifiers, Line 67</span>
<span style="color: #ff0000;">The specified @job_name ('ASPState_Job_DeleteExpiredSessions') does not exist.</span>
If the category already exists, an error from msdb.dbo.sp_add_category is expected.
<span style="color: #ff0000;">Msg 14261, Level 16, State 1, Procedure sp_add_category, Line 32</span>
<span style="color: #ff0000;">The specified @name ('[Uncategorized (Local)]') already exists.</span>
Well then..... you are doing it wrong. Open command line (Start-&gt;Run-&gt; cmd)

1.cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
2) Execute:

<strong>aspnet_regsql.exe –ssadd -U &lt;username&gt; -P &lt;passowrd&gt; -S &lt;servername&gt;</strong>

For example

<strong>aspnet_regsql.exe –ssadd -U webuser -P d4rk!s1de -S mssql.arturito.net </strong>You can also do 

<strong>aspnet_regsql.exe –ssadd -E -S mssql.arturito.net </strong>- if you use Windows authentication</pre>
<p>b) aspnet_regsql.exe –ssadd -U &lt;username&gt; -P &lt;passowrd&gt; -S &lt;servername&gt;for exampleb) aspnet_regsql.exe –ssadd -U webuser -P d4rk!s1de -S mssql.arturito.net</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/09/19/installsqlstate-sql-errors-aspstate_job_deleteexpiredsessions-does-not-exist-and-the-specified-name-uncategorized-local-already-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master.</title>
		<link>http://arturito.net/2011/08/05/how-to-switch-between-http-and-https-in-asp-net-mvc2-and-allow-ajax-requests-from-site-master/</link>
		<comments>http://arturito.net/2011/08/05/how-to-switch-between-http-and-https-in-asp-net-mvc2-and-allow-ajax-requests-from-site-master/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 16:12:30 +0000</pubDate>
		<dc:creator>arturito</dc:creator>
				<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[C sharp]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP:NET MVC2]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Site.Master]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=1055</guid>
		<description><![CDATA[TweetIn order to serve the request throught SSL in ASP.NET MVC2 we can simple use Action attribute [RequireHttps]:
Let&#8217;s say I served a login form here. Then the user logs in.
Note that the redirection ( RedirectToAction(&#8220;List&#8221;, &#8220;Home&#8221;) ) is taking us to HomeController List action.
However the action List in HomeController is not decorated in [RequireHttps] so [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton1055" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2011%2F08%2F05%2Fhow-to-switch-between-http-and-https-in-asp-net-mvc2-and-allow-ajax-requests-from-site-master%2F&amp;text=How%20to%20Switch%20Between%20HTTP%20and%20HTTPS%20in%20ASP.NET%20MVC2%20And%20Allow%20AJAX%20Requests%20From%20Site%20Master.&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2011%2F08%2F05%2Fhow-to-switch-between-http-and-https-in-asp-net-mvc2-and-allow-ajax-requests-from-site-master%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>In order to serve the request throught <strong>SSL</strong> in <strong>ASP.NET MVC2</strong> we can simple use Action attribute <strong>[RequireHttps]</strong>:</p>
<pre class="brush: csharp; title: ; notranslate">
		//LoginController
        [RequireHttps]
        public ActionResult Index()
        {
            return View();
        }
</pre>
<p>Let&#8217;s say I served a login form here. Then the user logs in.</p>
<pre class="brush: csharp; title: ; notranslate">
		//LoginController
        [RequireHttps]
        [HttpPost]
        public ActionResult Index(LoginModel model)
        {
            if (model != null &amp;&amp; model.Username == &quot;arturito&quot;)
                 return RedirectToAction(&quot;List&quot;, &quot;Home&quot;);
            else
                return RedirectToAction(&quot;Login&quot;);
        }
</pre>
<p>Note that the redirection (<strong> RedirectToAction(&#8220;List&#8221;, &#8220;Home&#8221;)</strong> ) is taking us to <strong>HomeController</strong> <strong>List</strong> action.<br />
However the action <strong>List</strong> in <strong>HomeController</strong> is not decorated in<strong> [RequireHttps]</strong> so it should return to<strong> HTTP</strong>.</p>
<pre class="brush: csharp; title: ; notranslate">
        //HomeController
		public ActionResult List()
        {
            return View();
        }
</pre>
<p><span style="color: #993300;"><strong>BUT IT DOESN&#8217;T!</strong></span><br />
You will remain in <strong>HTTPS</strong>.</p>
<p>Jeff Widmer worked out a great solution and posted it in his <a title="http://weblogs.asp.net/jeffwids/archive/2010/08/19/how-to-switch-between-http-and-https-in-asp-net-mvc2.aspx" href="http://weblogs.asp.net/jeffwids/archive/2010/08/19/how-to-switch-between-http-and-https-in-asp-net-mvc2.aspx" target="_blank">article</a>.<br />
In his solution we have <strong>BaseController</strong> and we are overriding<strong> OnAuthorization</strong> method</p>
<pre class="brush: csharp; title: ; notranslate">
    public class BaseController : Controller
    {
            protected override void OnAuthorization(AuthorizationContext filterContext)
            {

                //the RequireHttpsAttribute set on the Controller Action will handle redirecting to Https.
                // We just need to handle any requests that are already under SSL but should not be.
                if (Request.IsSecureConnection)
                {
                    Boolean requireHttps = false;
                    requireHttps = filterContext.ActionDescriptor.GetCustomAttributes(typeof(RequireHttpsAttribute), false).Count() &gt;= 1;

                    //If this request is under ssl but yet the controller action
                    // does not require it, then redirect to the http version.
                    if (!requireHttps &amp;&amp; !filterContext.IsChildAction)
                    {
                        UriBuilder uriBuilder = new UriBuilder(Request.Url);

                        //change the scheme
                        uriBuilder.Scheme = &quot;http&quot;;
                        uriBuilder.Port = 80;

                        filterContext.Result = this.Redirect(uriBuilder.Uri.AbsoluteUri);
                    }
                }

                base.OnAuthorization(filterContext);
            }

    }
</pre>
<p>But there is one problem left!</p>
<p>Let&#8217;s say that all pages served through <strong>HTTP</strong> and <strong>HTTPS</strong> use <strong>the same site master page</strong> which contains a<strong> link or the form that creates ajax request</strong>.<br />
As an example let&#8217;s look at this simple action:</p>
<pre class="brush: csharp; title: ; notranslate">
		// Home Controller
        [HttpPost]
        public ActionResult Ajax()
        {
            return Content(&quot;This is Ajax&quot;);
        }
</pre>
<p>This works great from HTTP page!</p>
<p><img class="alignnone" title="How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master." src="http://i1134.photobucket.com/albums/m614/Arturito_Net/01-how-to-switch-between-http-and-https-in-aspnet-mvc2-and-allow-ajax-requests.jpg" alt="How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master." width="565" height="395" /></p>
<p><img class="alignnone" title="How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master." src="http://i1134.photobucket.com/albums/m614/Arturito_Net/02-how-to-switch-between-http-and-https-in-aspnet-mvc2-and-allow-ajax-requests.jpg" alt="How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master." width="565" height="395" /></p>
<p>&#8230;.but when we call the same action from HTTPS page it doesn&#8217;t work!<br />
<img class="alignnone" title="How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master." src="http://i1134.photobucket.com/albums/m614/Arturito_Net/03-how-to-switch-between-http-and-https-in-aspnet-mvc2-and-allow-ajax-requests.jpg" alt="How to Switch Between HTTP and HTTPS in ASP.NET MVC2 And Allow AJAX Requests From Site Master." width="565" height="529" /></p>
<p>Why? This is called <strong>crossdomain ajax request</strong>, which by default is not allowed for security reasons. There are some methods/libraries/proxies to achieve this but it is not very common yet.</p>
<p>If we decorate it with <strong>[RequireHttps]</strong> attribute:</p>
<pre class="brush: csharp; title: ; notranslate">
		// Home Controller
		[RequireHttps]
        [HttpPost]
        public ActionResult Ajax()
        {
            return Content(&quot;This is Ajax&quot;);
        }
</pre>
<p>This action becomes available only if requested from the page served through HTTPS. We can <strong>no longer</strong> call it from the page served through http.</p>
<p>Well then, let&#8217;s allow to perform all ajax request from pages served by <strong>both HTTP and HTTPS</strong>:</p>
<pre class="brush: csharp; title: ; notranslate">
protected override void OnAuthorization(AuthorizationContext filterContext)
            {

                //the RequireHttpsAttribute set on the Controller Action will handle redirecting to Https.
                // We just need to handle any requests that are already under SSL but should not be.
                if (Request.IsSecureConnection)
                {
                    Boolean requireHttps = false;
                    requireHttps = filterContext.ActionDescriptor.GetCustomAttributes(typeof(RequireHttpsAttribute), false).Count() &gt;= 1;

                    // Allow Ajax request from both http and https pages
                    if (Request.IsAjaxRequest())
                    {
                        base.OnAuthorization(filterContext);
                        return;
                    }

                    //If this request is under ssl but yet the controller action
                    // does not require it, then redirect to the http version.
                    if (!requireHttps &amp;&amp; !filterContext.IsChildAction)
                    {
                        UriBuilder uriBuilder = new UriBuilder(Request.Url);

                        //change the scheme
                        uriBuilder.Scheme = &quot;http&quot;;
                        uriBuilder.Port = 80;

                        filterContext.Result = this.Redirect(uriBuilder.Uri.AbsoluteUri);
                    }
                }

                base.OnAuthorization(filterContext);
            }

    }
</pre>
<p>Now whether we are on login page (HTTPS) or any other page (HTTP) <strong>we can create ajax requests in the site master</strong> without decorating ajax actions with additional attributes or messing around<br />
with url scheme in the Views.</p>
<p>Here is a downloadable example: <a title=" http://www.mediafire.com/?0d6dn6w489yalgo" href=" http://www.mediafire.com/?0d6dn6w489yalgo" target="_blank"> http://www.mediafire.com/?0d6dn6w489yalgo</a></p>
<p>GL</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2011/08/05/how-to-switch-between-http-and-https-in-asp-net-mvc2-and-allow-ajax-requests-from-site-master/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

