<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Željko Filipin&#039;s Blog on Software and Testing &#187; .NET</title>
	<atom:link href="http://zeljkofilipin.com/category/software/dot-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeljkofilipin.com</link>
	<description>Test like you do not need the money.</description>
	<lastBuildDate>Fri, 13 Jan 2012 11:26:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<copyright>Copyright &#xA9; Željko Filipin&#039;s Blog on Software and Testing 2010 </copyright>
	<managingEditor>zeljko.filipin@gmail.com (Željko Filipin&#039;s Blog on Software and Testing)</managingEditor>
	<webMaster>zeljko.filipin@gmail.com (Željko Filipin&#039;s Blog on Software and Testing)</webMaster>
	<image>
		<url>http://zeljkofilipin.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Željko Filipin&#039;s Blog on Software and Testing</title>
		<link>http://zeljkofilipin.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Test like you do not need the money.</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>Željko Filipin&#039;s Blog on Software and Testing</itunes:author>
	<itunes:owner>
		<itunes:name>Željko Filipin&#039;s Blog on Software and Testing</itunes:name>
		<itunes:email>zeljko.filipin@gmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://zeljkofilipin.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Jenkins, Windows and Git</title>
		<link>http://zeljkofilipin.com/jenkins-windows-and-git/</link>
		<comments>http://zeljkofilipin.com/jenkins-windows-and-git/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 13:25:28 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/?p=1407</guid>
		<description><![CDATA[Update: managed to clone Git repository via Git/SSH. Recently I have successfully set up Jenkins CI (called Hudson CI until recently) in Windows 2008 virtual machine. It was not hard once I figured all the stuff that needs to be done, but it was far from trivial. At one point I almost gave up on [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://zeljkofilipin.com/wp-content/uploads/2011/10/jenkins_logo.png" alt="jenkins logo" title="jenkins logo" /></p>
<p><strong>Update</strong>: managed to clone Git repository via Git/SSH.</p>
<p>Recently I have successfully set up <a href="http://jenkins-ci.org/">Jenkins CI</a> (called <a href="http://hudson-ci.org/">Hudson CI</a> until recently) in Windows 2008 virtual machine. It was not hard once I figured all the stuff that needs to be done, but it was far from trivial. At one point I almost gave up on Jenkins because I could not get it to clone Git repository. But with help from <a href="https://twitter.com/#!/adamgoucher">Adam Goucher</a> I  was able to get it working. More about that later in the post.</p>
<p>Since then I have been reading <a href="http://www.wakaleo.com/download-jenkins-the-definitive-guide">Jenkins: The Definitive Guide</a> book and playing with Jenkins in the virtual machine. (By the way, there is free pdf version of the book, and $34.99-$49.49 print and ebook versions.) I am almost done with the book and I plan to write a short review after I read it.</p>
<p><a href="http://en.wikipedia.org/wiki/Continuous_integration">Continuous integration</a> server is not really useful when it is in a virtual machine on my laptop. Neither my laptop nor virtual machine work 24/7, and the point of continuous integration server is exactly that. Running 24/7.</p>
<p>So, today the time was right to get Jenkins working on a server. I am writing this to have a reminder how to set up Jenkins and Git on Windows, so I do not have to repeat setup nightmare ever again.</p>
<p><strong>Jenkins</strong></p>
<p>Jenkins installation is pretty simple and it is covered pretty well, both on the Jenkins web site and in the book. I have installed it as Windows native package, and I made my first mistake there. By default, Jenkins installs in <code>C:\Program Files\Jenkins\</code> (on 32-bit Windows) or <code>C:\Program Files (x86)\Jenkins\</code> (on 64-bit). I am really surprised that they do that. I had so many problems with Jenkins because it was installed in a folder with spaces in name. Install Jenkins in <code>C:\Jenkins</code>. (Ruby installed is smarter. It installs by default in <code>C:\Ruby</code>. But that is another story.)</p>
<p>After the installation, Jenkins will open your default web browser and go to it&#8217;s home page, <code>http://localhost:8080/</code>. Another surprise. Since the server is in Switzerland, Internet Explorer language was set to French, and Jenkins was in French. Since I do not know any French, I had to change it to English. Go to <em>Internet Explorer > Tools > Internet Options > General > Languages</em> to change the default language.</p>
<p><strong>Jenkins Build Job</strong></p>
<p>With everything back to a language I know, it is the time to create a new job. Click link <em>New Job</em>. Another warning. Do not use spaces in job names. Jenkins creates folders for each job in <code>C:\Jenkins\jobs</code>, and if you name the job <em>build job</em>, it will create <code>C:\Jenkins\jobs\build job</code> folder. You already know spaces in folder names are a bad idea. Call your job something like <em>build</em>. After entering job name, select <em>Build a free-style software project</em> and click <em>OK</em>. <em>Configure job</em> page opens. Just click <em>Save</em> for now. That is it. You have created a job. It does not do anything for now, but we will get there. By the way, take a look at <code>C:\Jenkins\jobs\build</code>. There is just a <code>config.xml</code> file there for the moment. Do not change it.</p>
<p><strong>Jenkins Git Plugin</strong></p>
<p>The next thing we have to do is to get some source code on the machine. If you did not navigate away from the job page (<code>http://localhost:8080/job/build/</code>), click <em>Configure</em> link. You will notice that Git is not listed under <em>Source Code Management</em> at job configuration page. You have to install a plugin.</p>
<p>Go to Jenkins home page (it is <code>http://localhost:8080/</code>, to get there click <em>Jenkins</em> link in the top-left part of the page) and then click <em>Manage Jenkins > Manage Plugins > Available</em>. Check <em>Git Plugin</em> checkbox and click <em>Install</em>. Check <em>Restart Jenkins when installation is complete and no jobs are running</em> checkbox and wait for Jenkins to restart. This restarting Jenkins step is the strangest part. I am never sure when it has restarted. When I get bored waiting, I just go to Jenkins home page and it usually just works.</p>
<p>Go back to job configuration page, and you will see <em>Git</em> listed under <em>Source Code Management</em>. Click it and enter <em>URL of repository</em>. I will use Git read only URL from <a href="https://github.com/zeljkofilipin/watirbook">watirbook</a> project. So, I will use <code>git://github.com/zeljkofilipin/watirbook.git</code>. Click button <em>Save</em>.</p>
<p>If you have Git installed, you are ready for the first build. It will actually just clone the repository, but it is a start. Click <em>Build Now</em> link. In <em>Build History</em> you will notice the first build. It failed for me. To debug the problem, click the build link (something like <em>Oct 20, 2011 7:57:19 PM</em>) and then <em>Console Output</em>. For me it said <code>Cannot run program "git.exe": CreateProcess error=2, The system cannot find the file specified</code>.</p>
<p><strong>Git</strong></p>
<p>Time to install Git. Download it from <a href="http://git-scm.com/">Git home page</a>. On download page select <em>Full installer for official Git for Windows</em>. I did not want to install it in <code>Program Files</code> folder, so I have installed it in <code>C:\Git</code>.</p>
<p>Try building the job again. It failed for me again, with the same error message. To fix the problem, you have to let Jenkins know where to find Git. Go to Jenkins configuration (<em>Jenkins > Manage Jenkins</em>) and click <em>Configure System</em> (Do not confuse it with job configuration at <em>job > Configure</em>.)</p>
<p>Under <em>Path to Git executable</em> you will see something like this: <code>There's no such executable git.exe in PATH...</code>. Replace <code>git.exe</code> with <code>C:\Git\cmd\git.cmd</code> and click button <em>Save</em>.</p>
<p>Do not replace <code>git.exe</code> with <code>C:\Git\bin\git.exe</code>. <a href="http://stackoverflow.com/questions/7850395/jenkins-can-not-clone-git-repository-over-git-ssh-on-windows-2008-64-bit">Cloning repositories via Git/SSH will not work</a>. Do not ask. I have spent an entire day on that.</p>
<p>Go back to <em>Configure System</em> page, and if you did everything right, there should not be any error message under <em>Path to Git executable</em>. Leave the page open for 5-10 seconds. I have noticed that sometimes the error message does not appear immediately.</p>
<p>Go back to the job and build it again. It should work now. Finally. You will notice blue ball next to the newest build (instead of red ball for failing builds). I am not sure why they use blue for passing builds when green is a convention. But, there is a fix for that. Install <em>Green Balls</em> plugin (<em>Jenkins > Manage Jenkins > Manage Plugins > Available > Green Balls> Install > Restart Jenkins.</em>) If you do not see the green balls, click ctrl+f5 to refresh the page.</p>
<p><strong>The Fun Starts Here</strong></p>
<p>The fun starts if you want to clone Git repository that is not public. Change repository URL to <code>git@github.com:zeljkofilipin/watirbook.git</code>. Build again. <em>Console Output</em> page was stuck for me at <code>Cloning repository origin</code> for a long time. You can cancel the build by clicking red <em>x</em> button in the top-right corner of the <em>Console Output</em> page. You will get the whole error message then. It said <code>ERROR: Could not clone repository</code>. I am not surprised since I did not even set up this machine for Git/SSH authentication.</p>
<p>Go to <em>Start > Git GUI > Help > Show SSH key > Generate Key</em>. When it asks for passphrase, leave it empty. Copy the key to clipboard and close Git GUI.</p>
<p>At GitHub go to <em>Account Settings > SSH Public Keys > Add another public key</em>. Enter something in <em>Title</em>, paste the key in <em>Key</em> and click <em>Add key</em>.</p>
<p>(If you are using Unfuddle go to <em>Personal Settings > Public Keys > New Public Key&#8230;</em>. Enter something in <em>Title</em>, paste the key in <em>Value</em> and click <em>Add</em>.)</p>
<p>Sometimes it takes a couple of minutes for the key to become valid.</p>
<p>Test the Git setup by opening Command Prompt and cloning the repository there. So, go to your <em>Desktop</em> folder in Command Prompt and clone the repository. Example for my watirbook repository would be:</p>
<p><code>git clone git@github.com:zeljkofilipin/watirbook.git</code></p>
<p>If Git complains that <code>The authenticity of host can't be established</code>, type <em>yes</em> when it asks <code>Are you sure you want to continue connecting (yes/no)</code>.</p>
<p>Everything worked just fine from the command line. Now I have Git repository at my desktop. But I want it in Jenkins. Try to build the job from Jenkins again. It still does not work. The same error message as the last time. This is the part where I almost gave up. The problem is that you have set Git/SSH authentication to work for your user (<em>zfilipin</em> in my case). But Jenkins is using Git as <em>Local System Account</em> instead of using it as <em>zfilipin</em>.</p>
<p>To fix this go to <em>Start > Services > Jenkins > right click > Properties > Log On > This account</em>, enter username and password and click <em>OK</em>. Restart Jenkins service (<em>right click > Restart</em>). When I was trying this in virtual machine, my user did not have any password, so this did not work. The workaround is to create a password for the user.</p>
<p>Try building the job again. Everything should work just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/jenkins-windows-and-git/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ruby Mail and benchmark.rb on CRuby, JRuby, IronRuby and RubyInstaller</title>
		<link>http://zeljkofilipin.com/ruby-mail-and-benchmark-rb-on-cruby-jruby-ironruby-and-rubyinstaller/</link>
		<comments>http://zeljkofilipin.com/ruby-mail-and-benchmark-rb-on-cruby-jruby-ironruby-and-rubyinstaller/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 17:15:42 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/?p=981</guid>
		<description><![CDATA[Update: Steve suggested I should try the script also with RubyInstaller, and I did it. This blog post is update of my recent Ruby Mail on CRuby, JRuby and IronRuby post. Mikel and Jimmy have commented on the post saying I did a poor job, and I would agree. I decided to do a better [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Steve suggested I should try the script also with <a href="http://rubyinstaller.org/">RubyInstaller</a>, and I did it.</strong></p>
<p>This blog post is update of my recent <a href="http://zeljkofilipin.com/2009/12/24/ruby-mail-on-cruby-jruby-and-ironruby/">Ruby Mail on CRuby, JRuby and IronRuby</a> post. Mikel and Jimmy have commented on the post saying I did a poor job, and I would agree. I decided to do a better job this time. Please let me know if measurements can be further improved.</p>
<p>So, I have an e-mail file called <code>1.eml</code>:</p>
<pre class="brush: plain; title: ; notranslate">
Date: Thu, 24 Dec 2009 14:37:34 Central European Standard Time
From: from@test.com
To: to@test.com
Message-ID: &lt;4b336e9e762a0_a1014263a4689d3@2003-ie7.mail&gt;
Subject: This is a test email
Mime-Version: 1.0
Content-Type: text/plain;
	charset=&quot;US-ASCII&quot;;
Content-Transfer-Encoding: 7bit

Some text for mail body
</pre>
<h2>The First Try</h2>
<p>This is the test from the first post. (RubyInstaller was not included in the first post.) It is included here so all code and numbers are at the same page, I guess it is easier to compare that way. Read the file, display subject and total time elapsed (in seconds).</p>
<pre class="brush: ruby; title: ; notranslate">
time = Time.now
require &quot;rubygems&quot;
require &quot;mail&quot;
mail = Mail.read(&quot;1.eml&quot;)
puts mail.subject.to_s
puts Time.now - time
</pre>
<p>Executed the script three times for each Ruby implementation. RubyInstaller the fastest, CRuby and JRuby were similar in speed, IronRuby was way slower.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
<tr>
<th>CRuby</th>
<td>2.594</td>
<td>2.109</td>
<td>2.11</td>
</tr>
<tr>
<th>JRuby</th>
<td>3.0</td>
<td>2.016</td>
<td>2.0</td>
</tr>
<tr>
<th>IronRuby</th>
<td>9.8125</td>
<td>7.796875</td>
<td>7.6875</td>
</tr>
<tr>
<th>RubyInstaller</th>
<td>1.21875</td>
<td>1.203125</td>
<td>1.203125</td>
</tr>
</tbody>
</table>
<table>
<h2>The Second Try</h2>
<p>Since both Mikel and Jimmy said <code>require</code> could take the majority of the time, and I was not really interested in measuring that, I excluded it from the measurement. </p>
<pre class="brush: ruby; title: ; notranslate">
require &quot;rubygems&quot;
require &quot;mail&quot;

time = Time.now
mail = Mail.read(&quot;1.eml&quot;)
puts mail.subject.to_s
puts Time.now - time
</pre>
<p>Times were way shorter. RubyInstaller the fastest (can not get much faster that 0.0 seconds), CRuby and JRuby in the same order of magnitude, IronRuby order of magnitude slower. JRuby has surprisingly the same numbers every time.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
<tr>
<th>CRuby</th>
<td>0.015</td>
<td>0.016</td>
<td>0.0</td>
</tr>
<tr>
<th>JRuby</th>
<td>0.047</td>
<td>0.047</td>
<td>0.047</td>
</tr>
<tr>
<th>IronRuby</th>
<td>0.5</td>
<td>0.46875</td>
<td>0.484375</td>
</tr>
<tr>
<th>RubyInstaller</th>
<td>0.0</td>
<td>0.0</td>
<td>0.0</td>
</tr>
</tbody>
</table>
<table>
<h2>Benchmark</h2>
<p>Mikel and Jimmy have suggested that I should use <a href="http://ruby-doc.org/stdlib/libdoc/benchmark/rdoc/index.html">benchmark.rb</a>, so I took a look. I have slightly modified the script. This time the file was read 1000 times.</p>
<pre class="brush: ruby; title: ; notranslate">
require &quot;rubygems&quot;
require &quot;mail&quot;
require &quot;benchmark&quot;

Benchmark.bm do |x|
  x.report { 1000.times do; puts Mail.read(&quot;1.eml&quot;).subject.to_s; end }
end
</pre>
<p>This measurement said JRuby was the fastest, followed closely by RubyInstaller and CRuby, IronRuby again order of magnitude slower.</p>
<table border="1">
<tbody>
<tr>
<th>Test Run</th>
<th>user</th>
<th>system</th>
<th>total</th>
<th>real</th>
</tr>
<tr>
<th>CRuby</th>
<td>11.000000</td>
<td>0.657000</td>
<td>11.657000</td>
<td>13.485000</td>
</tr>
<tr>
<th>JRuby</th>
<td>6.187000</td>
<td>0.000000</td>
<td>6.187000</td>
<td>6.187000</td>
</tr>
<tr>
<th>IronRuby</th>
<td>69.984375</td>
<td>7.140625</td>
<td>77.125000</td>
<td>60.656250</td>
</tr>
<tr>
<th>RubyInstaller</th>
<td>7.297000</td>
<td>0.766000</td>
<td>8.063000</td>
<td>9.953125</td>
</tr>
</tbody>
</table>
<h2>Environment</h2>
<p>Tests were run in VMware Fusion 2.0.6 virtual machine, 512 MB RAM, Microsoft Windows Sever 2003 R2 (Standard Edition, Service pack 2).<br />
Host machine is MacBook Pro, 2.4 GHz Intel Core 2 Duo, Mac OS X 10.6.2, 4 GB RAM.</p>
<pre class="brush: bash; title: ; notranslate">
&gt;ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

&gt;jruby -v
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_10) [x86-java]

&gt;ir -v
IronRuby 0.9.3.0 on .NET 2.0.0.0

&gt;ruby -v
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
</pre>
<p>Mail version 1.3.4 on all platforms.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/ruby-mail-and-benchmark-rb-on-cruby-jruby-ironruby-and-rubyinstaller/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ASP.NET &#8211; Install Everything You Need</title>
		<link>http://zeljkofilipin.com/aspnet-install-everything-you-need/</link>
		<comments>http://zeljkofilipin.com/aspnet-install-everything-you-need/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 14:16:03 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/04/20/aspnet-install-everything-you-need/</guid>
		<description><![CDATA[Recently I started to play with ASP.NET. I found asp.net, The Official Microsoft ASP.NET 2.0 Site. The first thing you have to do is to install required software. In my opinion, they made the installation to complicated for total beginner. There are too many choices. I wish they had something like Instant Rails. I lost [...]]]></description>
			<content:encoded><![CDATA[<p>Recently <a href="http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/">I started to play with ASP.NET</a>. I found <a href="http://www.asp.net/">asp.net</a>, The Official Microsoft ASP.NET 2.0 Site. The first thing you have to do is to install required software.</p>
<p>In my opinion, they made the installation to complicated for total beginner. There are too many choices. I wish they had something like <a href="http://instantrails.rubyforge.org/wiki/wiki.pl">Instant Rails</a>. I lost some time figuring it out, so I decided to share my experience. Maybe it will help somebody. If you have comments, improvements, or if I did something wrong, please leave a comment.</p>
<p>At asp.net home page there is link GET ASP.NET. It leads to Essential Downloads page. There they say you need Microsoft .NET Framework Version 2.0 (framework) and Visual Web Developer 2005 Express Edition (<a href="http://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a>). Language version was easy to choose (English), but do I need Framework or SDK version of framework? That was also easily answered when I saw</p>
<blockquote><p>If you are new to web development, select the Framework download.</p></blockquote>
<p>The truth is that you do not have to download framework. It will automatically be downloaded when you download IDE. I selected English version of IDE.</p>
<p>Download page opens with four <em>easy</em> steps.</p>
<p>The first step was to check if my computer meets the System Requirements. It did. That was easy enough. Also, uninstall any previous versions of SQL Server 2005, IDE and framework. I did not have any installed.</p>
<p>The second step is to download IDE. But, there is just to many options. Six. I just want to download an IDE for language I do not know nothing about, and they make me choose. I just knew that <a href="http://edge4dev.wordpress.com/">my developer</a> uses ASP.NET and C#. And at that page there are Visual Web Developer and Visual C# IDE-s. Later I found out that I do not need Visual C#. (But after I downloaded and installed it. Do not make the same mistake.)</p>
<p>After download (Visual Web Developer is what you need), execute downloaded file. Of course, you have to be logged in as administrator. At the third screen of installation wizard there is option to also download and install Microsoft MSDN 2005 Express Edition and Microsoft SQL Server 2005 Express Edition x86. You need only SQL Server. At the next screen I noticed that Microsoft .NET Framework 2.0 will also be installed.</p>
<p>The third step is to download updates and additional components. You can install additional components later if you want to, no need to do it now. You do not have to download updates if you perform Microsoft Update after installation. That is what I did. There was two updates for .NET Framework and one for Visual Studio. I just wonder why they just do not offer the newest version of IDE and .NET framework, but instead you have to download an old version and than update it.</p>
<p>The fourth step is registration. You have 30 days, so there is no rush. But beware (from <a href="http://msdn.microsoft.com/vstudio/express/register/faq/">FAQ</a>):</p>
<blockquote><p>Without a registration key, downloaded Editions will no longer work after 30 days.</p></blockquote>
<p>So, all you have to do is to <a href="http://msdn.microsoft.com/vstudio/express/downloads/">download Visual Web Developer</a>, make sure that SQL Server is also downloaded (while installing IDE) and perform <a href="http://update.microsoft.com/">Microsoft Update</a> after installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/aspnet-install-everything-you-need/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Steps in ASP.NET</title>
		<link>http://zeljkofilipin.com/first-steps-in-aspnet/</link>
		<comments>http://zeljkofilipin.com/first-steps-in-aspnet/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 12:13:11 +0000</pubDate>
		<dc:creator>Željko Filipin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://zeljkofilipin.com/2007/03/22/first-steps-in-aspnet/</guid>
		<description><![CDATA[My developer is using ASP.NET. I decided to learn basics of it. After all, you have to know your enemy. As it usually goes, pretty soon I got into trouble. Internet Information Services (IIS 5.1) at my machine (Windows XP Professional, Service Pack 2) was processing server code of asp pages, but not of aspx. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeljkofilipin.com/wp-content/uploads/2007/03/asp.png"><img src='http://zeljkofilipin.com/wp-content/uploads/2007/03/asp.png' title='asp.png' alt='asp.png' /></a></p>
<p><a href="http://edge4dev.wordpress.com/">My developer</a> is using <a href="http://msdn2.microsoft.com/en-us/asp.net/default.aspx">ASP.NET</a>. I decided to learn basics of it. After all, you have to <a href="http://www.youtube.com/watch?v=wzkGHoOp3AQ">know your enemy</a>. As it usually goes, pretty soon I got into trouble. <a href="http://www.microsoft.com/WindowsServer2003/iis/default.mspx">Internet Information Services</a> (IIS 5.1) at my machine (Windows XP Professional, Service Pack 2) was processing server code of asp pages, but not of aspx. Internet Explorer would show HTML portion of aspx page, but server code was ignored. Firefox was showing asp pages, but for aspx pages I was getting &#8220;open with&#8221; pop-up.</p>
<p>What went wrong? <a href="http://msdn2.microsoft.com/en-us/netframework/default.aspx">.NET Framework</a> and IIS are installed.</p>
<p>I started looking at Internet Information Services (Start > All Programs > Administrative Tools > Internet Information Services). At ASP.NET tab of Web Sites Properties window (Internet Information Services > local computer > Web Sites > right click > Properties ) I saw that ASP.NET version is not selected, so I selected 2.0.50727 (1.1.4322 was also available).</p>
<p>No luck. I started getting this error page.</p>
<blockquote><p>Server Application Unavailable</p></blockquote>
<p>Time to ask my <a href="http://en.wikipedia.org/wiki/Artillery">developer</a> for help. He said I should create virtual directory.</p>
<ul>
<li>at C:\Inetpub\wwwroot\ create directory asp</li>
<li>Internet Information Services > local computer > Web Sites > Default Web Site > right click > New > Virtual Directory&#8230; > enter alias (&#8220;asp&#8221; sounds good) > browse to directory > make sure &#8220;Read&#8221; and &#8220;Run scripts (such as ASP)&#8221; checkboxes are checked</li>
<li>Internet Information Services > local computer > Web Sites > Default Web Site > virtual directory alias (&#8220;asp&#8221;, remember) > right click > Properties > ASP.NET > ASP.NET version > 2.0.50727</li>
</ul>
<p>Then I got different error message.</p>
<blockquote><p>Failed to access IIS metabase.</p></blockquote>
<p>According to <a href="http://blog.devstone.com/Aaron/archive/2006/05/08/1586.aspx">Failed to access IIS metabase</a> blog post from R. Aaron Zupancic, the problem was:</p>
<blockquote><p>You may have installed IIS after installing the .NET framework.</p></blockquote>
<p>True. I installed .NET framework immediately after I installed Windows, and I installed IIS later when I needed it. Solution? Open command prompt, go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and execute</p>
<blockquote><p>aspnet_regiis -i</p></blockquote>
<p>Everything works fine now. Firefox needed some time to start recognizing aspx pages (I was still getting &#8220;open with&#8221; pop-up), but now it works.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeljkofilipin.com/first-steps-in-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

