<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Imran Akram&#039;s Blog</title>
	<atom:link href="http://imak47.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://imak47.wordpress.com</link>
	<description>My experiences with life, ASP .NET, C# and VB .NET etc</description>
	<lastBuildDate>Wed, 22 May 2013 12:58:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='imak47.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Imran Akram&#039;s Blog</title>
		<link>http://imak47.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://imak47.wordpress.com/osd.xml" title="Imran Akram&#039;s Blog" />
	<atom:link rel='hub' href='http://imak47.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How to make DynaTree nodes expand only on clicking the arrows at the corners</title>
		<link>http://imak47.wordpress.com/2012/03/15/how-to-make-dynatree-nodes-expand-only-on-clicking-the-arrows-at-the-corners/</link>
		<comments>http://imak47.wordpress.com/2012/03/15/how-to-make-dynatree-nodes-expand-only-on-clicking-the-arrows-at-the-corners/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 10:52:21 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[clickfoldermode]]></category>
		<category><![CDATA[collapse]]></category>
		<category><![CDATA[dyna tree]]></category>
		<category><![CDATA[Dynatree]]></category>
		<category><![CDATA[expand]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=409</guid>
		<description><![CDATA[In DynaTree sometimes you may want the nodes to not expand when yo click on them -  usually it expands it whether you click on the arrow at the corner or anywhere on the entire node text &#8211; so if you don&#8217;t want that behavior you need to initialize the tree with clickFolderMode: 1 and [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=409&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In DynaTree sometimes you may want the nodes to not expand when yo click on them -  <em>usually it expands it whether you click on the arrow at the corner or anywhere on the entire node text</em> &#8211; so if you don&#8217;t want that behavior you need to initialize the tree with <strong>clickFolderMode: 1</strong> and that&#8217;s it!</p>
<p>For details of how to initialize the DynaTree, check out the sample code in section 4.1 in <a title="DynaTree Documentation" href="http://wwwendt.de/tech/dynatree/doc/dynatree-doc.html" target="_blank">DynaTree Documentation</a></p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/web-development/javascript/'>Javascript</a>, <a href='http://imak47.wordpress.com/category/web-development/'>Web Development</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=409&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2012/03/15/how-to-make-dynatree-nodes-expand-only-on-clicking-the-arrows-at-the-corners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>
	</item>
		<item>
		<title>How to add memcached to system start-up in Windows Server 2008</title>
		<link>http://imak47.wordpress.com/2012/01/24/how-to-add-memcached-to-system-startup-in-windows-server-2008/</link>
		<comments>http://imak47.wordpress.com/2012/01/24/how-to-add-memcached-to-system-startup-in-windows-server-2008/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 10:27:35 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[auto start]]></category>
		<category><![CDATA[automatic startup]]></category>
		<category><![CDATA[Failed to ignore SIGHUP]]></category>
		<category><![CDATA[how to add memcached as service]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[memcached.exe]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[SIGHUP]]></category>
		<category><![CDATA[system restart]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=395</guid>
		<description><![CDATA[I have spent a whole day or two only in trying to make memcached start-up automatically on system restart in Windows 2008 Server system. I was getting this error &#8220;memcached.exe exits with Failed to ignore SIGHUP&#8221; when I tried to use the -d switch. In the end, it turned out to be pretty simple but [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=395&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I have spent a whole day or two only in trying to make memcached start-up automatically on system restart in Windows 2008 Server system. I was getting this error <strong>&#8220;memcached.exe exits with Failed to ignore SIGHUP&#8221;</strong> when I tried to use the -d switch. In the end, it turned out to be pretty simple but trying to do it with Windows NT Resource Kit, PowerShell&#8217;s New-Service command, srvany.exe or the likes did NOT work at all for me. What worked for me was this:</p>
<ol>
<li>You go to Run &gt; &#8220;RegEdit&#8221; hit enter.</li>
<li>Then you find the key: <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run</strong></li>
<li>Add a string value to it, name it whatever you want and put the full path to the memcached.exe file into the value of it.</li>
</ol>
<div id="attachment_396" class="wp-caption aligncenter" style="width: 630px"><a href="http://imak47.files.wordpress.com/2012/01/memcached.png"><img src="http://imak47.files.wordpress.com/2012/01/memcached.png?w=620&#038;h=200" alt="Add memcached.exe to startup in Registry" title="Add memcached.exe to startup" width="620" height="200" class="size-full wp-image-396" /></a><p class="wp-caption-text">Add memcached.exe to startup in Registry in Windows 2008 Server</p></div>
<p>Now you should be able to see the memcached startup when you reboot the system.</p>
<p>PS: In case you have a dependent service on memcached, change its start-up type to Automatic(delayed)</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/system-administration/'>System Administration</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/395/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=395&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2012/01/24/how-to-add-memcached-to-system-startup-in-windows-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>

		<media:content url="http://imak47.files.wordpress.com/2012/01/memcached.png" medium="image">
			<media:title type="html">Add memcached.exe to startup</media:title>
		</media:content>
	</item>
		<item>
		<title>How to manipulate a Windows Forms control from another thread and get return value via Invoke() method</title>
		<link>http://imak47.wordpress.com/2011/06/27/how-to-manipulate-a-windows-forms-control-from-another-thread-and-get-return-value-via-invoke-method/</link>
		<comments>http://imak47.wordpress.com/2011/06/27/how-to-manipulate-a-windows-forms-control-from-another-thread-and-get-return-value-via-invoke-method/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 14:49:07 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[.net 3.5]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[Invoke function]]></category>
		<category><![CDATA[Invoke method]]></category>
		<category><![CDATA[TreeListView]]></category>
		<category><![CDATA[Windows Application]]></category>
		<category><![CDATA[Windows Forms]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=378</guid>
		<description><![CDATA[I was working on a Windows Forms project and I had this requirement to basically do some manipulation on a TreeListView on the parent form (MainForm in this case) for which we already had a developed a method and also to get the return value back from it. To make life even easier, we needed [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=378&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>I was working on a Windows Forms project and I had this requirement to basically do some manipulation on a TreeListView on the parent form (MainForm in this case) for which we already had a developed a method and also to get the return value back from it. To make life even easier, we needed to do this from a BackGroundWorker thread in this case. Now, the problem with Windows Forms controls is that they can&#8217;t be manipulated apart from the main thread, so I had to look for a work around of some sort. So here&#8217;s a little modified snippet of the code for your understanding:-</p>
<p>if (m.treeListView.InvokeRequired)<br />
{<br />
ra= (ReportData?)m.treeListView.Invoke(new Func&lt;ReportData?&gt;(<br />
() =&gt; m.CreateDataforReport(&#8220;Rpt type&#8221;, false)));<br />
//m is the main form&#8217;s reference!</p>
<p>}</p>
<p>So what I&#8217;ve done is that I passed the main form&#8217;s reference to the child form in the constructor and made the TreeListView and the CreateDataforReport public. Notice that I called CreateDataforReport method inside the <a title="Func" href="http://msdn.microsoft.com/en-us/library/bb534960.aspx" target="_blank">Func&lt;ReportData?&gt; </a> and not directly. This is what enables you to get the appropriate return value, be it string, integer or any complex type like I have it here.</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/c/'>C#</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=378&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/06/27/how-to-manipulate-a-windows-forms-control-from-another-thread-and-get-return-value-via-invoke-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>
	</item>
		<item>
		<title>What&#8217;s the difference between a mediocre and successful person&#8217;s mindset</title>
		<link>http://imak47.wordpress.com/2011/06/17/whats-the-difference-between-a-mediocre-and-successful-persons-mindset/</link>
		<comments>http://imak47.wordpress.com/2011/06/17/whats-the-difference-between-a-mediocre-and-successful-persons-mindset/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 08:11:25 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[Inspirational Quotes]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[comfort zone]]></category>
		<category><![CDATA[greatness]]></category>
		<category><![CDATA[mediocre]]></category>
		<category><![CDATA[middle class]]></category>
		<category><![CDATA[sucess]]></category>
		<category><![CDATA[taking risks]]></category>
		<category><![CDATA[world class]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=372</guid>
		<description><![CDATA[The Middle Class competes&#8230;the World Class creates. The Middle Class avoids risk&#8230;the World Class manages risk. The Middle Class loves to be comfortable. The World Class is comfortable being uncomfortable. The Middle Class hungers for security&#8230;The World Class doesn&#8217;t believe security exists. The Middle Class sacrifices growth for safety. The World Class sacrifices safety for [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=372&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The Middle Class competes&#8230;the World Class creates.<a href="http://imak47.files.wordpress.com/2011/06/sowc.png"><img class="alignright size-full wp-image-374" title="Secrets of the World Class" src="http://imak47.files.wordpress.com/2011/06/sowc.png?w=620" alt="What's the difference between a mediocre and successful mindset"   /></a></p>
<p>The Middle Class avoids risk&#8230;the World Class manages risk.</p>
<p>The Middle Class loves to be comfortable. The World Class is comfortable being uncomfortable.</p>
<p>The Middle Class hungers for security&#8230;The World Class doesn&#8217;t believe security exists.</p>
<p>The Middle Class sacrifices growth for safety. The World Class sacrifices safety for growth.</p>
<p>The Middle Class focuses on having&#8230;The World Class focuses on being.</p>
<p>The Middle Class is frustrated&#8230;The World Class is grateful.</p>
<p>The Middle Class has pipe dreams&#8230;The World Class has vision.</p>
<p>The Middle Class trades time for money&#8230;The World Class trades ideas for money.</p>
<p>The Middle Class is problem oriented&#8230;The World Class is solution oriented.</p>
<p>The Middle Class sees itself as a victim. The World Class sees itself as responsible.</p>
<p>The Middle Class thinks it knows enough&#8230;The World Class is eager to learn.</p>
<p>The Middle Class chooses fear&#8230;The World Class chooses growth.</p>
<p><strong>Taken from: The Secrets of the World Class by Steve Siebold</strong></p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/inspirational-quotes/'>Inspirational Quotes</a>, <a href='http://imak47.wordpress.com/category/life/'>Life</a>, <a href='http://imak47.wordpress.com/category/miscellaneous/'>Miscellaneous</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/372/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/372/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=372&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/06/17/whats-the-difference-between-a-mediocre-and-successful-persons-mindset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>

		<media:content url="http://imak47.files.wordpress.com/2011/06/sowc.png" medium="image">
			<media:title type="html">Secrets of the World Class</media:title>
		</media:content>
	</item>
		<item>
		<title>The type &#8216;System.IO.Packaging.Package&#8217; is defined in an assembly that is not referenced. You must add a reference to assembly &#8216;WindowsBase&#8217;</title>
		<link>http://imak47.wordpress.com/2011/06/01/the-type-system-io-packaging-package-is-defined-in-an-assembly-that-is-not-referenced-you-must-add-a-reference-to-assembly-windowsbase/</link>
		<comments>http://imak47.wordpress.com/2011/06/01/the-type-system-io-packaging-package-is-defined-in-an-assembly-that-is-not-referenced-you-must-add-a-reference-to-assembly-windowsbase/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 13:06:13 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[VB .NET]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[.NET 3.0]]></category>
		<category><![CDATA[.net 3.5]]></category>
		<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[OOXML 2.0]]></category>
		<category><![CDATA[Open Office XML SDK]]></category>
		<category><![CDATA[System.IO.Packaging.Package]]></category>
		<category><![CDATA[Windows Forms]]></category>
		<category><![CDATA[WindowsBase]]></category>
		<category><![CDATA[Word]]></category>
		<category><![CDATA[XLSX]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=367</guid>
		<description><![CDATA[While I was working with the Open Office XML SDK 2.0, after I added the reference to the DocumentFormat.OpenXml assembly and tried to build the application I ran into this error message. The type &#8216;System.IO.Packaging.Package&#8217; is defined in an assembly that is not referenced. You must add a reference to assembly &#8216;WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8242; [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=367&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>While I was working with the Open Office XML SDK 2.0, after I added the reference to the <strong>DocumentFormat.OpenXml</strong> assembly and tried to build the application I ran into this error message.</p>
<p><strong>The type &#8216;System.IO.Packaging.Package&#8217; is defined in an assembly that is not referenced. You must add a reference to assembly &#8216;WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8242;</strong></p>
<p>Turns out, all you need to do to fix it is to just add another reference to WindowsBase assembly that is found in the .NET Tab.</p>
<p><a href="http://imak47.files.wordpress.com/2011/06/windowsbase.png"><img class="aligncenter size-full wp-image-368" title="WindowsBase" src="http://imak47.files.wordpress.com/2011/06/windowsbase.png?w=620" alt=""   /></a></p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/c/'>C#</a>, <a href='http://imak47.wordpress.com/category/vb-net/'>VB .NET</a>, <a href='http://imak47.wordpress.com/category/xml/'>XML</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/367/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/367/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=367&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/06/01/the-type-system-io-packaging-package-is-defined-in-an-assembly-that-is-not-referenced-you-must-add-a-reference-to-assembly-windowsbase/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>

		<media:content url="http://imak47.files.wordpress.com/2011/06/windowsbase.png" medium="image">
			<media:title type="html">WindowsBase</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010: Unable to see web parts deployment on a seperate server</title>
		<link>http://imak47.wordpress.com/2011/05/19/sharepoint-2010-unable-to-see-web-parts-deployment-on-a-seperate-server/</link>
		<comments>http://imak47.wordpress.com/2011/05/19/sharepoint-2010-unable-to-see-web-parts-deployment-on-a-seperate-server/#comments</comments>
		<pubDate>Thu, 19 May 2011 12:56:42 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[cannot find web part after installation]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[Owner]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Sharepoint 2010 administration]]></category>
		<category><![CDATA[Site administrator]]></category>
		<category><![CDATA[Site Collection Administration]]></category>
		<category><![CDATA[site collection features]]></category>
		<category><![CDATA[SP2010]]></category>
		<category><![CDATA[Web part]]></category>
		<category><![CDATA[web part not visible after deployment]]></category>
		<category><![CDATA[web parts]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=358</guid>
		<description><![CDATA[Okay, we know SharePoint 2010 has a great feature of deployment where you can just press the F5 button to debug or right click and deploy the project on the local server BUT, how about when it comes to deploying the web parts on another server, lets say the production machine?! Well, when I did [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=358&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Okay, we know SharePoint 2010 has a great feature of deployment where you can just press the F5 button to debug or right click and deploy the project on the local server BUT, how about when it comes to deploying the web parts on another server, lets say the production machine?! Well, when I did that for the first time, it was a really tiring and annoying experience. Here&#8217;s what happened: I packaged up the web part project, transported it to the other machine, ran the scripts for the deployment &#8211; everything was going so smooth until I found out that I just couldn&#8217;t see the damn web part anywhere when I tried to Insert them on a page there!!! Naturally, you&#8217;d think that okay I&#8217;m done deploying the web parts so let&#8217;s just add them up on the appropriate page and be done with it. After hours and hours of banging my head with this issue and chat with my friend here in office, Mathias Gustafsson. I finally found out that you need to go and enable the feature first in &#8220;The Site Collection Features&#8221; section in order to see those web parts. And to make things even worse, I had to to have higher administrative rights to do that, otherwise, you don&#8217;t even see the menu given in the screenshot here.</p>
<div id="attachment_360" class="wp-caption alignright" style="width: 336px"><a href="http://imak47.files.wordpress.com/2011/05/sharepoint_2010_site_collection_administration_.png"><img class="size-full wp-image-360" title="Sharepoint_2010_Site_Collection_Administration" src="http://imak47.files.wordpress.com/2011/05/sharepoint_2010_site_collection_administration_.png?w=620" alt="Sharepoint 2010 Site Collection Administration"   /></a><p class="wp-caption-text">Sharepoint 2010 Site Collection Administration</p></div>
<p>In the beginning I was able to install the web parts being the <strong>&#8220;Owner&#8221;</strong> of the site collection BUT NO!! To see those web parts in the SharePoint 2010 site and actually put them to some use, you need to be the <strong>&#8220;Site Administrator&#8221;</strong> not just the owner. YEAH RIGHT! Very intuitive!! That thing just cost me some 5-6 hours can you imagine that?! Anyways, I hope it helps relieve the pain of some of you out there.</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/sharepoint-2010/'>SharePoint 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/358/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/358/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=358&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/05/19/sharepoint-2010-unable-to-see-web-parts-deployment-on-a-seperate-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://imak47.files.wordpress.com/2011/05/sharepoint_2010_site_collection_administration_.png?w=150" />
		<media:content url="http://imak47.files.wordpress.com/2011/05/sharepoint_2010_site_collection_administration_.png?w=150" medium="image">
			<media:title type="html">Sharepoint_2010_Site_Collection_Administration</media:title>
		</media:content>

		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>

		<media:content url="http://imak47.files.wordpress.com/2011/05/sharepoint_2010_site_collection_administration_.png" medium="image">
			<media:title type="html">Sharepoint_2010_Site_Collection_Administration</media:title>
		</media:content>
	</item>
		<item>
		<title>Install-SPSolution: Admin SVC must be running in order to create deployment timer job</title>
		<link>http://imak47.wordpress.com/2011/05/11/install-spsolution-admin-svc-must-be-running-in-order-to-create-deployment-timer-job/</link>
		<comments>http://imak47.wordpress.com/2011/05/11/install-spsolution-admin-svc-must-be-running-in-order-to-create-deployment-timer-job/#comments</comments>
		<pubDate>Wed, 11 May 2011 08:58:23 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[deployment]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[on another server]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[ps1]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Web part]]></category>
		<category><![CDATA[web parts]]></category>
		<category><![CDATA[webpart]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=352</guid>
		<description><![CDATA[When I was trying to deploy the SharePoint 2010 WSP on another server using PowerShell, I got this error when I tried to run the Install -SPSolution command saying that: Install-SPSolution: Admin SVC must be running in order to create deployment timer job So all you need to do is to go to the Services [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=352&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>When I was trying to deploy the SharePoint 2010 WSP on another server using PowerShell, I got this error when I tried to run the Install -SPSolution command saying that:<br />
<strong>Install-SPSolution: Admin SVC must be running in order to create deployment timer job</strong></p>
<p>So all you need to do is to go to the <strong>Services</strong> section in Control Panel\System and Security\Administrative Tools and look for the service called<strong> SharePoint 2010 Administration</strong>, it was on manual start up, changed it to automatic and started it and gotten rid of this error. Simple isn&#8217;t it!</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/sharepoint-2010/'>SharePoint 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=352&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/05/11/install-spsolution-admin-svc-must-be-running-in-order-to-create-deployment-timer-job/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>
	</item>
		<item>
		<title>Where/How do we place/refer to images in SharePoint 2010 WebParts</title>
		<link>http://imak47.wordpress.com/2011/04/17/wherehow-do-we-place-refer-to-images-in-sharepoint-2010-webparts/</link>
		<comments>http://imak47.wordpress.com/2011/04/17/wherehow-do-we-place-refer-to-images-in-sharepoint-2010-webparts/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 16:01:17 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.net 3.5]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Images]]></category>
		<category><![CDATA[Images in Sharepoint]]></category>
		<category><![CDATA[Location of images in Sharepoint 2010]]></category>
		<category><![CDATA[location of images in webparts]]></category>
		<category><![CDATA[URL of images in Sharepoint 2010]]></category>
		<category><![CDATA[URL of images in Webparts]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=341</guid>
		<description><![CDATA[This one is especially useful for the new bie because when you start with building webparts for SharePoint 2010, you often come to a point where you wanna add a URL somewhere, lets say programatically or in the CSS or may be in the ASCX code and you wonder, hey wait a minute where are [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=341&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div id="attachment_342" class="wp-caption alignright" style="width: 500px"><a href="http://imak47.files.wordpress.com/2011/04/images-location-in-sp2010.png"><img class="size-full wp-image-342 " title="Images-location-in-SharePoint-2010" src="http://imak47.files.wordpress.com/2011/04/images-location-in-sp2010.png?w=620" alt="Where are the images located in SharePoint project or webpart"   /></a><p class="wp-caption-text">The location of images in SharePoint 2010 Project/web part</p></div>
<p>This one is especially useful for the new bie because when you start with building webparts for SharePoint 2010, you often come to a point where you wanna add a URL somewhere, lets say programatically or in the CSS or may be in the ASCX code and you wonder, hey wait a minute where are the images for SharePoint placed anyway? How do I refer to them? So here&#8217;s your answer.</p>
<p>What you do is that you <strong>Right Click the Web parts project &gt; Add &gt; SharePoint &#8220;Images&#8221; Mapped Folder</strong> option. Doing that will give you an images folder inside your project directory and you can refer to that like this:</p>
<p><strong>&#8220;~/_layouts/Images/ProjectNamesETC/xyz.png&#8221;</strong></p>
<p>Have fun!</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://imak47.wordpress.com/category/web-development/'>Web Development</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/341/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/341/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=341&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/04/17/wherehow-do-we-place-refer-to-images-in-sharepoint-2010-webparts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>

		<media:content url="http://imak47.files.wordpress.com/2011/04/images-location-in-sp2010.png" medium="image">
			<media:title type="html">Images-location-in-SharePoint-2010</media:title>
		</media:content>
	</item>
		<item>
		<title>SPGridView&#8217;s OnRowDataBound event returning nulls &#8211; Unable to FindControls</title>
		<link>http://imak47.wordpress.com/2011/04/15/spgridviews-onrowdatabound-event-returning-nulls-unable-to-findcontrols/</link>
		<comments>http://imak47.wordpress.com/2011/04/15/spgridviews-onrowdatabound-event-returning-nulls-unable-to-findcontrols/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 15:59:03 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[ASP .NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.net 3.5]]></category>
		<category><![CDATA[ASCX]]></category>
		<category><![CDATA[Bind]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Data binding]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Dotnet 3.5]]></category>
		<category><![CDATA[Eval]]></category>
		<category><![CDATA[FindControl]]></category>
		<category><![CDATA[null reference exception]]></category>
		<category><![CDATA[Nulls]]></category>
		<category><![CDATA[OnRowDataBound]]></category>
		<category><![CDATA[RowDataBound]]></category>
		<category><![CDATA[RowIndex out of range]]></category>
		<category><![CDATA[Share point]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SPGridView]]></category>
		<category><![CDATA[TemplateFields]]></category>
		<category><![CDATA[Web part]]></category>
		<category><![CDATA[webpart]]></category>
		<category><![CDATA[Webparts]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=338</guid>
		<description><![CDATA[Earlier today I was just playing around with SharePoint 2010 and thought I should do a simple task with SPGridView, that is to display the data and show an appropriate image in the &#8220;Status&#8221; column instead of the text. Hmm, sounds quite simple doesn&#8217;t it! But no, it turned into a misery. Well, when I [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=338&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Earlier today I was just playing around with SharePoint 2010 and thought I should do a simple task with SPGridView, that is to display the data and show an appropriate image in the &#8220;Status&#8221; column instead of the text. Hmm, sounds quite simple doesn&#8217;t it! But no, it turned into a misery. Well, when I started it was quite natural to use the OnRowDataBound event on that to capture the data and do some modifications with the controls (I was using TemplateFields in the SPGridView by the way), so I did that and I tried  doing things like <strong>e.Row.FindControl(&#8220;xyz&#8221;)</strong>, <strong>e.Row.Cells[2] </strong>and using<strong> RowIndex </strong>property which was returning -1 where e refers to an object of <strong>GridViewRowEventArgs</strong> and there was nothing to get over there. It was nulls all around!</p>
<p>So here&#8217;s a sample of the code in the visual webpart that I was writing:-</p>
<p>&lt;SharePoint:SPGridView ID=&#8221;spGvWorkOrders&#8221;  runat=&#8221;server&#8221; &gt;<br />
&lt;Columns&gt;<br />
&lt;asp:TemplateField&gt;<br />
&lt;ItemTemplate&gt;<br />
&lt;asp:Label ID=&#8221;lbl_workOrderId&#8221; Text=&#8217;&lt;% # Bind(&#8220;Id&#8221;) %&gt;&#8217;  runat=&#8221;server&#8221;&gt;&lt;/asp:Label&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;/asp:TemplateField&gt;</p>
<p>&lt;asp:TemplateField&gt;<br />
&lt;ItemTemplate&gt;<br />
&lt;asp:Label ID=&#8221;lbl_workOrderTitle&#8221;  runat=&#8221;server&#8221; Text=&#8217;&lt;% # Bind(&#8220;Title&#8221;) %&gt;&#8217; &gt;&lt;/asp:Label&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;/asp:TemplateField&gt;<br />
&lt;asp:TemplateField&gt;<br />
&lt;ItemTemplate&gt;</p>
<p>&lt;asp:Image ID=&#8221;img_status&#8221; Width=&#8221;10px&#8221; <strong>ImageUrl=&#8217;&lt;% #StatusToImage(&#8220;\&#8221;"+ Eval(&#8220;Status&#8221;)+&#8221;\&#8221;") %&gt;&#8217;</strong> runat=&#8221;server&#8221; /&gt;<br />
&lt;/ItemTemplate&gt;<br />
&lt;/asp:TemplateField&gt;</p>
<p><strong>&#8230;</strong></p>
<p>And here is the function:-</p>
<p>protected string StatusToImage(string status)<br />
{<br />
if ( ( rowcount++ % 2) == 0)<br />
return &#8220;~/_layouts/Images/WorkOrders/add.png&#8221;;<br />
else<br />
return &#8220;~/_layouts/Images/WorkOrders/arrow_up_green.png&#8221;;<br />
}</p>
<p>Notice that I had been using the <strong>Bind</strong> function earlier but when I tried using it to send the value to <strong>StatusToImage</strong> function it did not work. <strong>Eval</strong> is the better option anyway in case you&#8217;re just interesting in displaying the data.</p>
<p>So what I did was that instead of using the event I just put the function call inside the ascx code so that whenever a row is created that function is called with the value of <strong>Status</strong> from the Data Source and with that value sent to a function, we can return back a string to give the path to the image file. The syntax however, is quite tricky and it took me a while to figure that out correctly but it worked in the end. Hope it will save you some time though!</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/web-development/asp-net/'>ASP .NET</a>, <a href='http://imak47.wordpress.com/category/c/'>C#</a>, <a href='http://imak47.wordpress.com/category/sharepoint-2010/'>SharePoint 2010</a>, <a href='http://imak47.wordpress.com/category/web-development/'>Web Development</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/338/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=338&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/04/15/spgridviews-onrowdatabound-event-returning-nulls-unable-to-findcontrols/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>
	</item>
		<item>
		<title>Assignment List Web Part generates an error during configuration of SharePoint Learning Kit</title>
		<link>http://imak47.wordpress.com/2011/01/27/assignment-list-web-part-generates-an-error-during-configuration-of-sharepoint-learning-kit/</link>
		<comments>http://imak47.wordpress.com/2011/01/27/assignment-list-web-part-generates-an-error-during-configuration-of-sharepoint-learning-kit/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 10:37:08 +0000</pubDate>
		<dc:creator>Imran Akram</dc:creator>
				<category><![CDATA[SharePoint Learning Kit (SLK)]]></category>
		<category><![CDATA[SharePoint Server 2007 (MOSS 07)]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[An error occurred]]></category>
		<category><![CDATA[AssignmenListWebPart]]></category>
		<category><![CDATA[Assignment List web part]]></category>
		<category><![CDATA[How to grant db access]]></category>
		<category><![CDATA[Management Studio]]></category>
		<category><![CDATA[MOSS 07]]></category>
		<category><![CDATA[Share point]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint Learning Kit]]></category>
		<category><![CDATA[SLK]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[Web part]]></category>

		<guid isPermaLink="false">http://imak47.wordpress.com/?p=328</guid>
		<description><![CDATA[Well, I started working with the SharePoint Learning Kit (SLK) 1.4 in MOSS 2007 and I was following the GettingStarted.pdf document that accompanies the package. So on Page 10 where you&#8217;re supposed to add the SLK Assignment List Web Part to a site, as I followed the instruction the site would not show anything, then [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=328&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Well, I started working with the SharePoint Learning Kit (SLK) 1.4 in MOSS 2007 and I was following the GettingStarted.pdf document that accompanies the package. So on Page 10 where you&#8217;re supposed to add the SLK Assignment List Web Part to a site, as I followed the instruction the site would not show anything, then I went back to the <strong>Site Actions &#8211;&gt; Site Setting &#8211;&gt; Web Parts </strong> and clicked on the <strong>AssignmentListWebPart.webpart. </strong>It showed the following message</p>
<p><strong>&#8220;An error occurred. More information may be available in the server event log.&#8221;</strong></p>
<p>Now it is important to note that the logs being referred to here are NOT the ones at C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\LOGS because these are the WSS logs.</p>
<p>The logs you need to see are the ones in the<strong> Administrative Tools &#8211;&gt; Events Viewer. </strong>So when I checked that it said</p>
<p><strong>SharePoint Learning Kit Error</strong><br />
<strong>System.Data.SqlClient.SqlException: Cannot open database &#8220;SharePointLearningKit&#8221; requested by the login. The login failed.Login failed for user &#8216;NT AUTHORITY\NETWORK SERVICE&#8217;.</strong></p>
<p>So now I knew that all I need to do is to grant access to the <strong>SharePointLearningKit </strong>database to the user <strong>NT AUTHORITY\NETWORK SERVICE </strong>and to do that just fire up SQL Server Management Studio, go to Security node &#8211;&gt;Logins &#8211;&gt; right click NT Authority\Network Service &#8211;&gt; Properties &#8211;&gt; User Mappings &#8211;&gt; check the database SharePointLearningKit and simply check the db_owner  role for it to give it maximum access for the time being &#8211;&gt; Press the OK button and you should be able to see the Web Part now!</p>
<br />Filed under: <a href='http://imak47.wordpress.com/category/sharepoint-server-2007-moss-07/sharepoint-learning-kit-slk/'>SharePoint Learning Kit (SLK)</a>, <a href='http://imak47.wordpress.com/category/sharepoint-server-2007-moss-07/'>SharePoint Server 2007 (MOSS 07)</a>, <a href='http://imak47.wordpress.com/category/web-development/'>Web Development</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/imak47.wordpress.com/328/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/imak47.wordpress.com/328/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=imak47.wordpress.com&#038;blog=4008988&#038;post=328&#038;subd=imak47&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://imak47.wordpress.com/2011/01/27/assignment-list-web-part-generates-an-error-during-configuration-of-sharepoint-learning-kit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://2.gravatar.com/avatar/e78749383252d910ae07993192b8f31b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ak-47</media:title>
		</media:content>
	</item>
	</channel>
</rss>
