<?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>douglasmcgregor.co.uk</title>
	<atom:link href="http://www.douglasmcgregor.co.uk/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.douglasmcgregor.co.uk</link>
	<description>Personal website of Douglas McGregor</description>
	<lastBuildDate>Sat, 04 Sep 2010 17:39:00 +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>.NET Error and Solution</title>
		<link>http://www.douglasmcgregor.co.uk/?p=188</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=188#comments</comments>
		<pubDate>Sat, 04 Sep 2010 17:39:00 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=188</guid>
		<description><![CDATA[While coding, you might come accross the following error: &#8216;LoginView1&#8242; is not declared. It may be inaccessible due to its protection level The solution is to use the FindControl method. An example is below: Dim lblMessage As Label = CType(LoginView1.FindControl("lblMessage"), Label) Dim tbFirstName As TextBox = CType(LoginView1.FindControl("tbFirstName"), TextBox) Dim tbLastName As TextBox = CType(LoginView1.FindControl("tbLastName"), TextBox) [...]]]></description>
			<content:encoded><![CDATA[<p>While coding, you might come accross the following error:</p>
<blockquote><p> &#8216;LoginView1&#8242; is not declared. It may be inaccessible due to its protection level</p></blockquote>
<p>The solution is to use the FindControl method.  An example is below:</p>
<p><code></p>
<p>Dim lblMessage As Label = CType(LoginView1.FindControl("lblMessage"), Label)<br />
Dim tbFirstName As TextBox = CType(LoginView1.FindControl("tbFirstName"), TextBox)<br />
Dim tbLastName As TextBox = CType(LoginView1.FindControl("tbLastName"), TextBox)<br />
Dim tbEmail As TextBox = CType(LoginView1.FindControl("tbEmail"), TextBox)<br />
Dim tbUsername As TextBox = CType(LoginView1.FindControl("tbUsername"), TextBox)<br />
Dim tbPassword As TextBox = CTYpe(LoginView1.FindControl("tbPassword"), TextBox)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=188</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Note to Self: How to Solve &#8220;Cannot load type&#8221; error in ASP.NET</title>
		<link>http://www.douglasmcgregor.co.uk/?p=186</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=186#comments</comments>
		<pubDate>Wed, 04 Aug 2010 17:36:08 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=186</guid>
		<description><![CDATA[This error commonly occurs when you try to install an ASP.NET application with DLL files in the bin folder. These files do not have to be in the root (wwwroot) folder. Say I have a web application on my localhost website that has the following structure: wwwroot (root IIS folder) website forum The website folder [...]]]></description>
			<content:encoded><![CDATA[<p>This error commonly occurs when you try to install an ASP.NET application with DLL files in the bin folder.</p>
<p>These files do not have to be in the root (wwwroot) folder.  Say I have a web application on my localhost website that has the following structure:</p>
<p>wwwroot (root IIS folder)<br />
      website<br />
            forum</p>
<p>The website folder is the root of the application you are testing locally.  The solution to solving this error is to convert the forum folder to an application in Internet Information Services (IIS). </p>
<p>Hope that helped someone out there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=186</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frustration with the .NET Compiler</title>
		<link>http://www.douglasmcgregor.co.uk/?p=179</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=179#comments</comments>
		<pubDate>Fri, 11 Jun 2010 12:54:35 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=179</guid>
		<description><![CDATA[One of my ongoing projects is to connect to Facebook using Visual Basic .NET. Getting back to it now after some time, I&#8217;ve encountered the following very annoying problem: Type &#8216;Components.FacebookService&#8217; is not defined All the DLL&#8217;s are in the Bin folder and all the Namespaces are imported on the aspx page. At first, it [...]]]></description>
			<content:encoded><![CDATA[<p>One of my ongoing projects is to connect to Facebook using Visual Basic .NET.</p>
<p>Getting back to it now after some time, I&#8217;ve encountered the following very annoying problem: </p>
<blockquote><p>Type &#8216;Components.FacebookService&#8217; is not defined</p></blockquote>
<p>All the DLL&#8217;s are in the Bin folder and all the Namespaces are imported on the aspx page.  At first, it looked like it was a problem with the version of the Facebook Developer Toolkit, however it worked after changing the version of the Developer Toolkit to 2.1, it worked, but when I refreshed the browser again, it went back to its usual tricks.  To me this very much looks like a problem with the .NET compiler, because I noticed when I refreshed the browser there was a bit of my code missing that was definatley in the saved web page document in Dreamweaver.  </p>
<p>I really can&#8217;t think why this should be the case, since my .NET setup is the same as any other production server setup &#8211; IIS 7.5 and .NET Framework 4.  Windows 7 is up to date with the latest Windows Updates.  If anyone has found a solution to this problem I&#8217;d really appreciate to hear from you.</p>
<p>Thanks</p>
<p>Douglas</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=179</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 &#8211; The User Profile Service failed the logon</title>
		<link>http://www.douglasmcgregor.co.uk/?p=176</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=176#comments</comments>
		<pubDate>Fri, 11 Jun 2010 10:11:12 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=176</guid>
		<description><![CDATA[This is an error that had me very worried. It seems to appear randomly after using Windows Update. After doing some Googling, there doesn&#8217;t seem to be much on this error apart from the most common solution seems to be to do a system restore. What I&#8217;ve found is that the problem looks like it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>This is an error that had me very worried.</p>
<p>It seems to appear randomly after using Windows Update.  After doing some Googling, there doesn&#8217;t seem to be much on this error apart from the most common solution seems to be to do a system restore.  What I&#8217;ve found is that the problem looks like it&#8217;s related to McAfee &#8211; it threw an error message saying &#8220;Real time scanning has been disabled&#8221;.  </p>
<p>The problem seems to be that the main user profile is set as a backup profile.  The solution seems to be to go into the Control Panel, go to User Accounts, click on &#8220;Configure advanced user profile properties&#8221;, look for the profile where the status is set to &#8220;backup&#8221;, and hit the delete button.  It&#8217;s very inconvenient, since obviously it would be ideal to make sure all your files are backed up, especially for users who encounter this error for the first time and who know nothing about computers.  </p>
<p>Windows Updates and McAfee updates are essential for security purposes, so I don&#8217;t want to just stop Windows Updates until Microsoft provide a fix for this, which I hope they do.  It looks like there&#8217;ll be a Service Pack 1 released for Windows 7 over the next few months so it will be interesting to see what improvements that will bring.</p>
<p>Thankfully I have the only essential file I&#8217;m working on right now backed up on my memory stick, so it&#8217;s not that bad.  Hope this has helped someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=176</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Experiences with Flight Simulator 2004</title>
		<link>http://www.douglasmcgregor.co.uk/?p=171</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=171#comments</comments>
		<pubDate>Sat, 22 May 2010 15:25:56 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Planes]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=171</guid>
		<description><![CDATA[Or should that be My Experiences &#8220;so far&#8221; with Flight Simulator 2004. Having now got a beautiful, new, powerful laptop, I&#8217;ve got right into Flight Simulator. I can do things on this new laptop that I would never have dreamed of doing on my old one. I&#8217;ve discovered the secrets of how to fly a [...]]]></description>
			<content:encoded><![CDATA[<p>Or should that be My Experiences &#8220;so far&#8221; with Flight Simulator 2004.</p>
<p>Having now got a beautiful, new, powerful laptop, I&#8217;ve got right into Flight Simulator.  I can do things on this new laptop that I would never have dreamed of doing on my old one.  I&#8217;ve discovered the secrets of how to fly a plane (on Flight Simulator anyway) as I went.  My landings are vastly improving &#8211; when I first started I kept on crash landing, and was very frustrated with myself, so it was a plesant surprise when I discovered the secret.  I won&#8217;t say anything about the secrets on here, since I strongly believe in learning for yourself and not being lazy.  </p>
<p>The addons make Flight Simulator all the more realistic, and there&#8217;s lots of addons out there.  Unfortunately you have to pay for all the best ones, however the software is often available for download as a demo or shareware.  The amount of aircraft you can download is incredible too.  I prefer flying the Boeing 737 jets, since I find them easiest to keep under control.  There&#8217;s all sorts of passenger jets available for free download &#8211; from British Airways and Aer Lingus to Icelandair and Air 2000.  I haven&#8217;t looked at the military planes yet, but needless to say, there&#8217;s hundreds.  I also found great Boing 757&#8242;s with very realistic sound, like the screeching engines of concorde, and they also have cabin announcements which are fun, and the virtual cockpits are excellent.  </p>
<p>Keeping with the 757&#8242;s, my only woe is with Edinburgh Airport.  This would probably be even worse with the default scenery, but I downloaded xtreme scenery from the UK 2000 web page.  I&#8217;d like to take a moment here to say that the UK 2000 scenery is really impressive.  Anyway, Flight Simulator has taught me a thing or two about flying, and one of the things I&#8217;ve learned that the runway in use depends on the weather.  If it&#8217;s cloudy, in Edinburgh airport it&#8217;s runway 24 that&#8217;s used, and if it&#8217;s fair weather it&#8217;s runway 6 that&#8217;s used.  However, I noticed that Air Traffic Control in Edinburgh Airport told me to taxi to runway 30, which is the smallest runway I&#8217;ve ever seen.  I don&#8217;t know what Air Traffic Control are playing at telling a Boeing 737 to take off from that.  No chance.  It&#8217;s not long enough to take off from.  </p>
<p>A good thing now about Flight Simulator 2004 is the AI traffic.  This makes it all the more realistic.  There&#8217;s literally lots of AI flight plans available for download around the net.  World of AI is probably the best, although I had a problem with Flight Simulator when I was trying to uninstall it and when I reinstalled it and tried to install the AI traffic in it again it said it was already there, but there was no sign of the AI traffic on the simulator.  This won&#8217;t be a big issue, since I&#8217;m upgrading to Flight Simulator X soon, but I just don&#8217;t understand why this is happening.  You can also program your own AI traffic, which I now understand how to do, but it takes a lot of time, and if like me, you just want to fly, it&#8217;s faster to install AI flight plans.  </p>
<p>What I really need to practice is landing planes when the visibility is poor.  Maybe an idea would be to practice on a small jet first, so that I don&#8217;t get too frustrated with myself.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=171</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back up and running!</title>
		<link>http://www.douglasmcgregor.co.uk/?p=158</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=158#comments</comments>
		<pubDate>Mon, 19 Apr 2010 22:28:19 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=158</guid>
		<description><![CDATA[The website is finally back up and running! As most of you know, my website is hosted on my old laptop now, so I&#8217;ve been migrating from Windows XP Home Edition to Windows Server 2003, so I&#8217;m now proudly hosted by Internet Information Services (IIS) 6. The home edition of Windows XP was doing my [...]]]></description>
			<content:encoded><![CDATA[<p>The website is finally back up and running!  </p>
<p>As most of you know, my website is hosted on my old laptop now, so I&#8217;ve been migrating from Windows XP Home Edition to Windows Server 2003, so I&#8217;m now proudly hosted by Internet Information Services (IIS) 6.  The home edition of Windows XP was doing my head in, purely because of the file sharing difficulties&#8230;. XP Home uses something called Simple File Sharing, which is very hard to turn of&#8230;. I think you have to boot in safe mode in order to turn it off.  Windows Server 2003 makes all that so much easier.</p>
<p>It&#8217;s still amazing what I can do with computers now&#8230;.. Windows 7 comes with IIS 7, but also comes with the IIS 6 manager, so I can connect to my web server from this laptop, and restart it, and edit ISAPI filters, and all that lark.  I&#8217;ve discovered that I can connect remotely to my web server at home from this cafe/bar here in Glasgow, which is pretty cool&#8230; they have excellent WiFi, plus they have good food, cider, and a great atmosphere.  Anyway, back to business.  </p>
<p>I&#8217;ve spent the past couple of days trying to get IIS and Apache Tomcat to play nicely together.  I&#8217;ve got the Tomcat examples working &#8211; <a href="http://www.douglasmcgregor.co.uk/examples" target="_blank">JSP examples</a> &#8211; but I&#8217;m finding it hard to understand how to serve simple JSP pages outside of Tomcat.  I&#8217;ll get there in the end.  I&#8217;m pretty good at web server administration, and I enjoy it.  </p>
<p>Anyway, that&#8217;s all for now.  Back to the old drawing board.</p>
<p>Cheers</p>
<p>Douglas</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=158</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Python with SharpDevelop</title>
		<link>http://www.douglasmcgregor.co.uk/?p=156</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=156#comments</comments>
		<pubDate>Tue, 23 Mar 2010 23:06:54 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=156</guid>
		<description><![CDATA[After getting my new super laptop with Windows 7 and 500GB hard drive space, I have begun to get back into programming. I have an idea for a project, which involves Facebook and Skype (that&#8217;s all I&#8217;m going to say just now!) and was wanting to use a programming language that I am familiar with. [...]]]></description>
			<content:encoded><![CDATA[<p>After getting my new super laptop with Windows 7 and 500GB hard drive space, I have begun to get back into programming.</p>
<p>I have an idea for a project, which involves Facebook and Skype (that&#8217;s all I&#8217;m going to say just now!) and was wanting to use a programming language that I am familiar with.  Since I studied Python at Uni, and I have a big thick book on it, it seemed like the logical choice.</p>
<p>At the moment, I&#8217;m writing a simple console application in Python, just to get back into the swing of it.  When I ran the project in SharpDevelop, the console immediatley dissappeared, without giving me the chance to read it.  The way to make it stay on the screen is to use the following at the end of the code:</p>
<p><code>raw_input()</code></p>
<p>This is mainly just for my future reference, but I hope it will help someone else out there who has the same issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=156</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook &#8211; Wrong Number of Fan Pages</title>
		<link>http://www.douglasmcgregor.co.uk/?p=154</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=154#comments</comments>
		<pubDate>Tue, 23 Mar 2010 16:24:09 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=154</guid>
		<description><![CDATA[So, I decided to reactivate my old Facebook account, now that I&#8217;ve risen above all the awkwardness and that kind of rubbish that has been going on between supposed friends. Before I deactivated my old Facebook account, I did a big clear out of all the groups and fan pages that I joined. Now I [...]]]></description>
			<content:encoded><![CDATA[<p>So, I decided to reactivate my old Facebook account, now that I&#8217;ve risen above all the awkwardness and that kind of rubbish that has been going on between supposed friends.</p>
<p>Before I deactivated my old Facebook account, I did a big clear out of all the groups and fan pages that I joined.  Now I find that there seems to be some sort of bug &#8211; so far I&#8217;ve only become a fan of two pages, and yet Facebook says I&#8217;m a member of 19.  It only displays two pages in the list.  I noticed that when I found a page that looked familiar, and clicked &#8220;Become a fan&#8221;, it said &#8220;You are already a fan&#8221;.  I just don&#8217;t remember at all what the other 17 pages could be that I supposedly am a fan of.  Facebook seem to have changed their help section as well &#8211; I eventually found a form to report the bug on, and sent them a screenshot as requested, but it appears that with Facebook being so &#8220;big&#8221;, they just ignore individual emails.</p>
<p>If anyone has a solution to this bizarre problem, I&#8217;d love to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=154</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET Error:  No http handler was found for request type &#039;GET&#039;</title>
		<link>http://www.douglasmcgregor.co.uk/?p=149</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=149#comments</comments>
		<pubDate>Fri, 12 Feb 2010 14:28:41 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=149</guid>
		<description><![CDATA[How to solve. Simply open the IIS manager, go to Application Pools, and change Managed Pipeline Mode to &#8220;Classic&#8221;. Works perfectly after this. I haven&#8217;t found anything to suggest why it would do that in &#8220;Integrated&#8221; mode. Thankfully it&#8217;s working again now. I can relax]]></description>
			<content:encoded><![CDATA[<p>How to solve.</p>
<p>Simply open the IIS manager, go to Application Pools, and change Managed Pipeline Mode to &#8220;Classic&#8221;.<br />
Works perfectly after this.</p>
<p>I haven&#8217;t found anything to suggest why it would do that in &#8220;Integrated&#8221; mode.<br />
Thankfully it&#8217;s working again now.  I can relax</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=149</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Successfully Installed DotNetNuke</title>
		<link>http://www.douglasmcgregor.co.uk/?p=146</link>
		<comments>http://www.douglasmcgregor.co.uk/?p=146#comments</comments>
		<pubDate>Sat, 06 Feb 2010 00:08:40 +0000</pubDate>
		<dc:creator>Douglas McGregor</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>

		<guid isPermaLink="false">http://www.douglasmcgregor.co.uk/?p=146</guid>
		<description><![CDATA[Now that my website and email server are successful, I can start exploring other CMS&#8217;s.   Enter in DotNetNuke. We used DotNetNuke at Strathclyde University, where I was on work experience.  DotNetNuke is basically an open source content management system based on ASP.NET, using SQL Server.  My whole idea is to install these CMS&#8217;s and play [...]]]></description>
			<content:encoded><![CDATA[<p>Now that my website and email server are successful, I can start exploring other CMS&#8217;s.   Enter in DotNetNuke.</p>
<p>We used DotNetNuke at Strathclyde University, where I was on work experience.  DotNetNuke is basically an open source content management system based on ASP.NET, using SQL Server.  My whole idea is to install these CMS&#8217;s and play around with them and see how they work.  I got to know how DotNetNuke worked at Strathclyde, but I have bad memories of working there, so those memories are better left in the past.</p>
<p>A couple of errors were encountered during the install wizard, but most of them were very simple to fix.  I Googled them in desperation, and for the database error people went as technical as saying to delete the instance folder of SQL Server in Program Files.  No need, you simply have to choose SQL Server 2008, NOT the Express File option.  Also, choose integrated security, assuming you have installed SQL Server 2008 Express.  The other error looked like an Ajax related error, and there were quite a few discussions about it on forums, but that seemed to go away after I installed .NET Framework 4 Beta.</p>
<p>I wanted to boast about this on Facebook, but didn&#8217;t want to annoy everyone, then I remembered that that&#8217;s what my website is for.</p>
<p>Link to my installation of DotNetNuke:</p>
<p><a href="http://www.douglasmcgregor.co.uk/DotNetNuke" target="_blank">douglasmcgregor.co.uk/DotNetNuke</a></p>
<p>Hope everyone has a good weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.douglasmcgregor.co.uk/?feed=rss2&amp;p=146</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
