<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Zuhaib</title>
	
	<link>http://www.zuhaib.in</link>
	<description>A very lazy but meticulous blogger</description>
	<lastBuildDate>Mon, 04 Jan 2010 07:22:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Zuhaib" /><feedburner:info uri="zuhaib" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-nc-sa/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>Zuhaib</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>.NET Type Forwarding – Moving Types Between Assemblies</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/5zaVGnanPo4/net-type-forwarding-moving-types-between-assemblies</link>
		<comments>http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies#comments</comments>
		<pubDate>Mon, 04 Jan 2010 07:22:14 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Attribute]]></category>
		<category><![CDATA[Type Forwarding]]></category>
		<category><![CDATA[TypeForwardedTo]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies</guid>
		<description><![CDATA[


I learned about this really cool feature in the .NET framework while reading an MS certification book, and could not stop blogging about it. Type forwarding in .NET allows you to move type from one assembly to another without recompiling applications that use the old assembly. 
Important Notes:

Microsoft Visual Basic 2005 does not support the [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically' rel='bookmark' title='Permanent Link: C# &#8211; Change log4net Log Path and Level Programmatically'>C# &#8211; Change log4net Log Path and Level Programmatically</a></li>
<li><a href='http://www.zuhaib.in/asp-net/writing-provide-independent-adonet-data-access-layer' rel='bookmark' title='Permanent Link: Writing Provider Independent .NET Data Access Code'>Writing Provider Independent .NET Data Access Code</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I learned about this really cool feature in the .NET framework while reading an MS certification book, and could not stop blogging about it. Type forwarding in .NET allows you to move type from one assembly to another without recompiling applications that use the old assembly. </p>
<p><strong>Important Notes:</strong></p>
<ol>
<li>Microsoft Visual Basic 2005 does not support the use of the TypeForwardedToAttribute attribute to forward types written in Visual Basic 2005. Applications written in Visual Basic 2005 can use forwarded types written in other languages. </li>
<li>The compilers do not support forwarding generic types in .NET 2.0, 3.0 and 3.5. Support for this was added in .NET 4.0. </li>
</ol>
<p>For this example, I would write one assembly called Animal that would contain a class called Dog, which would be consumed by an application called Consumer1. Later, I would move the Dog class to a new assembly called Canine, and we would see how we can make the Consumer1 application still work using .NET type forwarding feature.</p>
<h3><strong>Animal (Class Library)</strong></h3>
<p>As discussed here is the Dog class that would reside inside the Animal assembly.</p>
<p><strong>Dog.cs</strong></p>
<pre class="brush: csharp; toolbar: false;">namespace Animal
{
    using System;
    public class Dog
    {
        /// &lt;summary&gt;
        /// Make the dog bark.
        /// &lt;/summary&gt;
        public void Bark()
        {
            Console.WriteLine(&quot;Arrgh.... Woof Woof!&quot;);
        }
    }
}</pre>
<p>It&#8217;s a very simple class that contains a public method called Bark, which would output &quot;Arrgh&#8230;. Woof Woof!&quot; to the console when invoked.</p>
<h3><strong>Consumer1 (Console Application)</strong></h3>
<p>I would now write our first application that would consume the animal assembly. Its a simple console application that has reference to the Animal assembly.</p>
<pre class="brush: csharp; toolbar: false;">namespace Consumer1
{
    using System;
    using Animal;
    /// &lt;summary&gt;
    /// The program.
    /// &lt;/summary&gt;
    internal class Program
    {
        #region Methods
        /// &lt;summary&gt;
        /// The entry point.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;args&quot;&gt;
        /// The command line arguments.
        /// &lt;/param&gt;
        private static void Main(string[] args)
        {
            Console.WriteLine(&quot;Consumer 1 Application&quot;);
            Dog dog = new Dog();
            dog.Bark();
            Console.ReadKey();
        }
        #endregion
    }
}</pre>
<p>In the main method of the Consumer1 application I have created an instance of the Dog class and then called its Bark method. When we run this application we would get the following output.</p>
<p><strong>Output:</strong></p>
<p>Consumer 1 Application<br />
  <br />Arrgh&#8230;. Woof Woof!</p>
<h3><strong>Canine (Class Library)</strong></h3>
<p>I moved the Dog class from Animal assembly to the new assembly called Canine.</p>
<pre class="brush: csharp; toolbar: false;">namespace Animal
{
    using System;
    public class Dog
    {
        /// &lt;summary&gt;
        /// Make the dog bark.
        /// &lt;/summary&gt;
        public void Bark()
        {
            Console.WriteLine(&quot;Arrgh.... Woof Woof! (Inside New Assembly)&quot;);
        }
    }
}</pre>
<p>The only difference in the class definition here, is the text that I output to the console when the Bark method is invoked. I have changed it so that we can easily spot out that our old application (Consumer1) is accessing the Dog class from the new Canine assembly.</p>
<p>Also you might wonder, if the assembly name is Canine then why is the namespace for the Dog class still Animal? It&#8217;s necessary to keep the old namespaces while moving types between assemblies for the old applications to find the type in the new assembly.</p>
<p>If we deploy the Animal assembly without the Dog class then existing installed applications that were compiled against the old Animal assembly would break. Unless, we use type forwarding in the modified Animal assembly and let it know where to look for the Dog class when its requested. To enable type forwarding we need to do the following things:</p>
<ol>
<li>Add a reference of the new Canine assembly to the Animal assembly. </li>
<li>Add the TypeForwardedToAttribute attribute to the animal assembly and specify the type to be forwarded. </li>
</ol>
<p>Normally we add all assembly attributes to the AssemblyInfo.cs file. The TypeForwardedToAttribute attribute resides in the System.Runtime.CompilerServices namespace. Add the following line to the AssemblyInfo.cs.</p>
<pre class="brush: csharp; toolbar: false;">using System.Runtime.CompilerServices;

// Type forward the dog class to the Canine assembly
[assembly: TypeForwardedTo(typeof(Animal.Dog))]</pre>
<p>When any application would look for the Dog class in the Animal assembly it would be forwarded to the Canine assembly. Now when we deploy the new Animal &amp; Canine assembly though the Consumer1 application does not have a reference to the Canine assembly, it would still find the Dog class and produce the following output.</p>
<p><strong>Output:</strong></p>
<p>Consumer 1 Application<br />
  <br />Arrgh&#8230;. Woof Woof! (Inside New Assembly)</p>
<p>Deploying both the assemblies are important. Otherwise the Consumer1 application will not find the Dog class, and would crash.</p>
<p><strong>Source Code:</strong></p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:8eb9d37f-1541-4f29-b6f4-1eea890d4876:a58e34f0-f1ca-4068-b2a3-e74fd361c797" class="wlWriterEditableSmartContent">
<div>Download the source code accompanying this post here. <a href="http://www.zuhaib.in/wp-content/uploads/2010/01/TypeForwardedToSample.zip" target="_self">TypeForwardedToSample.zip</a></div>
</p>
</div>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;title=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;title=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;title=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;submitHeadline=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies&amp;submitSummary=I%20learned%20about%20this%20really%20cool%20feature%20in%20the%20.NET%20framework%20while%20reading%20an%20MS%20certification%20book%2C%20and%20could%20not%20stop%20blogging%20about%20it.%20Type%20forwarding%20in%20.NET%20allows%20you%20to%20move%20type%20from%20one%20assembly%20to%20another%20without%20recompiling%20applications%20that%20use%20the%20old%20assembly.%20%20%20Important%20Notes%3A%20%20%20%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;title=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;t=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;t=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZINVqbhtoquy5L0GMNMkDPY4zDAJG_5oBz2BSN7e2sBJ5u5JkcMd-MpdmeNkEALCUBFsmRpwEL_TEbeoBXVhmZ-ulUhCJf9lNmybuQT--VStkaLu0ABYkKvuID7UC5OEtspJHmzRoN_BNXkVy1rpcf8mf3XRdgViaxWq2rQ6aYpY' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZINVqbhtoquy5L0GMNMkDPY4zDAJG_5oBz2BSN7e2sBJ5u5JkcMd-MpdmeNkEALCUBFsmRpwEL_TEbeoBXVhmZ-ulUhCJf9lNmybuQT--VStkaLu0ABYkKvuID7UC5OEtspJHmzRoN_BNXkVy1rpcf8mf3XRdgViaxWq2rQ6aYpY', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;title=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies&amp;summary=I%20learned%20about%20this%20really%20cool%20feature%20in%20the%20.NET%20framework%20while%20reading%20an%20MS%20certification%20book%2C%20and%20could%20not%20stop%20blogging%20about%20it.%20Type%20forwarding%20in%20.NET%20allows%20you%20to%20move%20type%20from%20one%20assembly%20to%20another%20without%20recompiling%20applications%20that%20use%20the%20old%20assembly.%20%20%20Important%20Notes%3A%20%20%20%20&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies&amp;title=.NET+Type+Forwarding+-+Moving+Types+Between+Assemblies" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically' rel='bookmark' title='Permanent Link: C# &#8211; Change log4net Log Path and Level Programmatically'>C# &#8211; Change log4net Log Path and Level Programmatically</a></li>
<li><a href='http://www.zuhaib.in/asp-net/writing-provide-independent-adonet-data-access-layer' rel='bookmark' title='Permanent Link: Writing Provider Independent .NET Data Access Code'>Writing Provider Independent .NET Data Access Code</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/R90ZojcNtI_pBDRz8DlhsDOYbBo/0/da"><img src="http://feedads.g.doubleclick.net/~a/R90ZojcNtI_pBDRz8DlhsDOYbBo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/R90ZojcNtI_pBDRz8DlhsDOYbBo/1/da"><img src="http://feedads.g.doubleclick.net/~a/R90ZojcNtI_pBDRz8DlhsDOYbBo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/5zaVGnanPo4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>C# – Change log4net Log Path and Level Programmatically</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/qcm3xlN4QS0/c-change-log4net-log-path-and-level-programmatically</link>
		<comments>http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically#comments</comments>
		<pubDate>Tue, 10 Nov 2009 15:07:30 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[log level]]></category>
		<category><![CDATA[log path]]></category>
		<category><![CDATA[log4net]]></category>
		<category><![CDATA[RollingFileAppender]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically</guid>
		<description><![CDATA[Log4Net makes it incredibly easy to implement logging functionality in your application. Log4Net configuration can be little bit tricky, but its easy to learn.
Most of the time when I am working on a project the application configurations including log path and level are fetched from the database.
Log4Net doesn’t provide any straight forward way of fetching [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/asp-net/writing-provide-independent-adonet-data-access-layer' rel='bookmark' title='Permanent Link: Writing Provider Independent .NET Data Access Code'>Writing Provider Independent .NET Data Access Code</a></li>
<li><a href='http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies' rel='bookmark' title='Permanent Link: .NET Type Forwarding &#8211; Moving Types Between Assemblies'>.NET Type Forwarding &#8211; Moving Types Between Assemblies</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Log4Net makes it incredibly easy to implement logging functionality in your application. Log4Net configuration can be little bit tricky, but its easy to learn.</p>
<p>Most of the time when I am working on a project the application configurations including log path and level are fetched from the database.</p>
<p>Log4Net doesn’t provide any straight forward way of fetching log file path or level from database (because its not necessary). To change the log file path and level programmatically we have to write our own log file appender.</p>
<p>For this demonstration I will write one rolling file appender. The custom file appender class should inherit from the log4net’s RollingFileAppender class.  We have to override the <strong>File</strong> property of the appender and change the log path. My rolling file appender class looks like this:</p>
<h3><strong>My Rolling File Appender:</strong></h3>
<pre class="brush: csharp">namespace MyLog4Net.LogAppenders
{
    using System;

    using log4net;
    using log4net.Appender;

    using MyLog4Net.Interfaces;
    using MyLog4Net.Services;

    /// &lt;summary&gt;
    /// My log4net Rolling file appender.
    /// &lt;/summary&gt;
    public class MyLog4NetFileAppender : RollingFileAppender
    {
        #region Constants and Fields

        /// &lt;summary&gt;
        /// Component parameter business layer
        /// &lt;/summary&gt;
        private static IConfigService service;

        #endregion

        #region Constructors and Destructors

        /// &lt;summary&gt;
        /// Initializes a new instance of the &lt;see cref="MyLog4NetFileAppender"/&gt; class.
        /// &lt;/summary&gt;
        public MyLog4NetFileAppender()
            : this(new ConfigService())
        {
        }

        /// &lt;summary&gt;
        /// Initializes a new instance of the &lt;see cref="MyLog4NetFileAppender"/&gt; class.
        /// &lt;/summary&gt;
        /// &lt;param name="configService"&gt;
        /// The config service.
        /// &lt;/param&gt;
        public MyLog4NetFileAppender(IConfigService configService)
        {
            service = configService;

            // get the log level
            // must be a proper log4net Threshold
            string logLevel = service.GetLogLevel();

            // set the log level
            LogManager.GetRepository().Threshold = LogManager.GetRepository().LevelMap[logLevel];
        }

        #endregion

        #region Properties

        /// &lt;summary&gt;
        /// Gets or sets the log file name.
        /// &lt;/summary&gt;
        /// &lt;value&gt;The log file name.&lt;/value&gt;
        public override string File
        {
            get
            {
                return base.File;
            }

            set
            {
                try
                {
                    // get the log directory
                    string logDirectory = service.GetLogPath();

                    // get the log file name from the config file.
                    string logFileName = value.Substring(value.LastIndexOf('\\') + 1);

                    // build the new log path
                    if (!logDirectory.EndsWith("\\") || !logDirectory.EndsWith("/"))
                    {
                        logDirectory += "\\";
                    }

                    // replace the new log file path
                    base.File = logDirectory + logFileName;
                }
                catch (Exception ex)
                {
                    // TODO: Log the error
                    // use the default
                    base.File = value;
                }
            }
        }

        #endregion
    }
}</pre>
<h3><strong> </strong></h3>
<h3><strong>Setting The Log Level (Threshold):</strong></h3>
<pre class="brush: csharp">public MyLog4NetFileAppender(IConfigService configService)
{
    // Service layer that will be used to fetch config data
    service = configService;

    // get the log level
    // must be a proper log4net Threshold
    string logLevel = service.GetLogLevel();

    // set the log level
    LogManager.GetRepository().Threshold = LogManager.GetRepository().LevelMap[logLevel];
}</pre>
<p>In the constructor of this class I fetch the log threshold configured in the database using the service.GetLogLevel() method. The LogManager.GetRepository() returns the default log4net repository of the calling assembly. LogManager.GetRepository().LevelMap gives us a set of default log4net levels. We change the log level by pasing the value fetched from the database to the current repositories Threshold property.</p>
<h3><strong>Setting The Log Path:</strong></h3>
<pre class="brush: csharp">public override string File
{
    get
    {
        return base.File;
    }

    set
    {
        try
        {
            // get the log directory
            string logDirectory = service.GetLogPath();

            // get the log file name from the config file.
            string logFileName = value.Substring(value.LastIndexOf('\\') + 1);

            // build the new log path
            if (!logDirectory.EndsWith("\\") || !logDirectory.EndsWith("/"))
            {
                logDirectory += "\\";
            }

            // replace the new log file path
            base.File = logDirectory + logFileName;
        }
        catch (Exception ex)
        {
            // TODO: Log the error
            // use the default
            base.File = value;
        }
    }
}</pre>
<p>When log4net is initializing the File property of the file appender would be called. Here the value would be the file name that was set in the log4net configuration file. In this property we extract the file name and then append the log path that we fetched from the database.</p>
<h3><strong>Using Our Custom Appender:</strong></h3>
<p>To use our custom appender we would create a log4net appender section in the config file and use our appender in the appender type. I like placing my log4net configuration is a different file. My log4net configuration file looks like:</p>
<h3><strong>Log4Net Configuration File:</strong></h3>
<pre class="brush: xml">&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;configuration&gt;

    &lt;configSections&gt;
        &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/&gt;
    &lt;/configSections&gt;

    &lt;!-- log4net --&gt;
    &lt;log4net&gt;
        &lt;!-- Define some output appenders --&gt;
        &lt;appender name="MyRollingFileAppender" type="MyLog4Net.LogAppenders.MyLog4NetFileAppender"&gt;
            &lt;param name="File" value="..\\Log\\MyApplication-log-file.txt" /&gt;
            &lt;param name="AppendToFile" value="true" /&gt;
            &lt;param name="RollingStyle" value="Size" /&gt;
            &lt;param name="StaticLogFileName" value="true" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout"&gt;
                &lt;param name="Header" value="[Header]&amp;#13;&amp;#10;" /&gt;
                &lt;param name="Footer" value="[Footer]&amp;#13;&amp;#10;" /&gt;
                &lt;param name="ConversionPattern" value="%d [%t] %-5p %C %M - %m%n" /&gt;
            &lt;/layout&gt;
        &lt;/appender&gt;
        &lt;!-- Setup the root category, add the appenders and set the default level --&gt;
        &lt;!-- Setup the root category, add the appenders and set the default level
                ALL
                DEBUG
                INFO
                WARN
                ERROR
                FATAL
                OFF
            For example, setting the threshold of an appender to DEBUG will also allow INFO,
            WARN, ERROR and FATAL messages to log along with DEBUG messages. (DEBUG is the
            lowest level). This is usually acceptable as there is little use for DEBUG
            messages without the surrounding INFO, WARN, ERROR and FATAL messages.
            Similarly, setting the threshold of an appender to ERROR will filter out DEBUG,
            INFO and ERROR messages but not FATAL messages.
        --&gt;
        &lt;root&gt;
            &lt;level value="ALL" /&gt;
            &lt;appender-ref ref="MyRollingFileAppender" /&gt;
        &lt;/root&gt;
    &lt;/log4net&gt;
&lt;/configuration&gt;</pre>
<p>Notice that instead of using log4net’s RollingFileAppender class I am using our MyLog4NetFileAppender class.</p>
<h3><strong>Initializing Log4Net:</strong></h3>
<p>To initialize log4net put the following code in the AssemblyInfo.cs file.</p>
<pre class="brush: csharp">/* Configure log4net
   log4net configuration will be searched in the .config file*/
[assembly: XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]</pre>
<p>The above code tells log4net to look for log4net.config file in the application and initialize itself.</p>
<p>Now everything is ready you can now run your application. To check if the code works or not you can put breakpoints in the constructor and File property of the appender.</p>
<h3><strong>Source:</strong></h3>
<p>Download the source code for this article <a href="http://www.zuhaib.in/wp-content/uploads/2009/11/MyLog4Net.zip" target="_self">MyLog4Net.zip</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;title=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;title=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;title=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;submitHeadline=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically&amp;submitSummary=Log4Net%20makes%20it%20incredibly%20easy%20to%20implement%20logging%20functionality%20in%20your%20application.%20Log4Net%20configuration%20can%20be%20little%20bit%20tricky%2C%20but%20its%20easy%20to%20learn.%0D%0A%0D%0AMost%20of%20the%20time%20when%20I%20am%20working%20on%20a%20project%20the%20application%20configurations%20including%20log%20path%20and%20level%20are%20fetched%20from%20the%20database&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;title=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;t=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;t=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZO93scQB1nVYPC4x_EMVw6MdvgOilE99mle5LO5XhLNPJEm3F41qeKSCE5EuccaQNdN9VNJV4n_Ik8pZygMu813ooUyqWxhcNMMCEPHK03BIVlnRTm1pUbMz1zzje7Ib2wnVrIAqK7RBbJXGb-ZDvIfXvHk1ujo-shE0wVK4wq4q' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZO93scQB1nVYPC4x_EMVw6MdvgOilE99mle5LO5XhLNPJEm3F41qeKSCE5EuccaQNdN9VNJV4n_Ik8pZygMu813ooUyqWxhcNMMCEPHK03BIVlnRTm1pUbMz1zzje7Ib2wnVrIAqK7RBbJXGb-ZDvIfXvHk1ujo-shE0wVK4wq4q', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;title=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically&amp;summary=Log4Net%20makes%20it%20incredibly%20easy%20to%20implement%20logging%20functionality%20in%20your%20application.%20Log4Net%20configuration%20can%20be%20little%20bit%20tricky%2C%20but%20its%20easy%20to%20learn.%0D%0A%0D%0AMost%20of%20the%20time%20when%20I%20am%20working%20on%20a%20project%20the%20application%20configurations%20including%20log%20path%20and%20level%20are%20fetched%20from%20the%20database&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically&amp;title=C%23+-+Change+log4net+Log+Path+and+Level+Programmatically" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/asp-net/writing-provide-independent-adonet-data-access-layer' rel='bookmark' title='Permanent Link: Writing Provider Independent .NET Data Access Code'>Writing Provider Independent .NET Data Access Code</a></li>
<li><a href='http://www.zuhaib.in/how-to/net-type-forwarding-moving-types-between-assemblies' rel='bookmark' title='Permanent Link: .NET Type Forwarding &#8211; Moving Types Between Assemblies'>.NET Type Forwarding &#8211; Moving Types Between Assemblies</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/-Nx24VadFamUhKFCZh7Fu48JvRw/0/da"><img src="http://feedads.g.doubleclick.net/~a/-Nx24VadFamUhKFCZh7Fu48JvRw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-Nx24VadFamUhKFCZh7Fu48JvRw/1/da"><img src="http://feedads.g.doubleclick.net/~a/-Nx24VadFamUhKFCZh7Fu48JvRw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/qcm3xlN4QS0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/how-to/c-change-log4net-log-path-and-level-programmatically?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Visual Studio 2010 Beta 2 Now Out For Public</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/qEv-7MDEuvc/visual-studio-2010-beta-2-now-out-for-public</link>
		<comments>http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public#comments</comments>
		<pubDate>Thu, 22 Oct 2009 11:49:14 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public</guid>
		<description><![CDATA[Finally Visual Studio 2010 Beta 2 is out for public (and not just subscribers).&#160; To download visit this link or download the ISO from here. Make sure you completely uninstall Visual Studio 2010 Beta 1 before installing Beta 2.
 
Visual Studio 2010 brings many new features that we were only able to achieve using 3rd [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/misc/trying-out-windows-7-beta' rel='bookmark' title='Permanent Link: Trying Out Windows 7 Beta'>Trying Out Windows 7 Beta</a></li>
<li><a href='http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer' rel='bookmark' title='Permanent Link: MSBuild Context Menu: Build .NET Project/Solution From Explorer'>MSBuild Context Menu: Build .NET Project/Solution From Explorer</a></li>
<li><a href='http://www.zuhaib.in/how-to/clearing-ankhsvn-saved-username-password-authentication-data' rel='bookmark' title='Permanent Link: Clearing AnkhSVN Saved UserName/Password/Authentication Data'>Clearing AnkhSVN Saved UserName/Password/Authentication Data</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Finally Visual Studio 2010 Beta 2 is out for public (and not just subscribers).&#160; To download visit this <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=dc333ac8-596d-41e3-ba6c-84264e761b81&amp;displaylang=en#filelist" target="_blank">link</a> or download the ISO from <a href="http://download.microsoft.com/download/F/C/9/FC9131D2-688C-43DC-91CF-53359D4882E7/VS2010B2Ult.iso" target="_blank">here</a>. <strong>Make sure you completely uninstall Visual Studio 2010 Beta 1 before installing Beta 2.</strong></p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/2009/10/image_thumb_04B9B051.png"><img title="image_thumb_04B9B051" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="496" alt="image_thumb_04B9B051" src="http://www.zuhaib.in/wp-content/uploads/2009/10/image_thumb_04B9B051_thumb.png" width="708" border="0" /></a> </p>
<p>Visual Studio 2010 brings many new features that we were only able to achieve using 3rd party add-ins like CodeRush/Resharper. </p>
<h3><strong>Please visit the below links to learn more about VS 2010 and .NET 4.0 features:</strong></h3>
<ul>
<li><a href="http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx" target="_blank">ScottGu’s VS 2010 and .NET 4 Blog Post series</a>. </li>
<li><a href="http://www.hanselman.com/blog/TheMinutesOn9Channel9VideoInterviewsWithTheASPNET4Team.aspx" target="_blank">Interview with ASP.NET 4 team on channel 9 by Scott Hanselman</a> </li>
<li><a href="http://channel9.msdn.com/shows/10-4/" target="_blank">Channel 9 shows discussing VS 2010 and .NET 4.0</a> </li>
</ul>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;title=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;title=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;title=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;submitHeadline=Visual+Studio+2010+Beta+2+Now+Out+For+Public&amp;submitSummary=Finally%20Visual%20Studio%202010%20Beta%202%20is%20out%20for%20public%20%28and%20not%20just%20subscribers%29.%26%23160%3B%20To%20download%20visit%20this%20link%20or%20download%20the%20ISO%20from%20here.%20Make%20sure%20you%20completely%20uninstall%20Visual%20Studio%202010%20Beta%201%20before%20installing%20Beta%202.%20%20%20%20%20Visual%20Studio%202010%20brings%20many%20new%20features%20that%20we%20were%20only%20ab&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;title=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;t=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;t=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZMnMmcuJrlHTDYYNvHRR5jNR3tawR4Vg-Sr9T9lj_APQuobtWhcTbYBu5LelPupDkViPHiICDLGzhqFpzipuUdrphpojnyRhz8gHPR3fLEwSoMUMXnWwTgxDIB8ab0JGUYYkhjN1qzXBqpKmsyIwDP4=' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZMnMmcuJrlHTDYYNvHRR5jNR3tawR4Vg-Sr9T9lj_APQuobtWhcTbYBu5LelPupDkViPHiICDLGzhqFpzipuUdrphpojnyRhz8gHPR3fLEwSoMUMXnWwTgxDIB8ab0JGUYYkhjN1qzXBqpKmsyIwDP4=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;title=Visual+Studio+2010+Beta+2+Now+Out+For+Public&amp;summary=Finally%20Visual%20Studio%202010%20Beta%202%20is%20out%20for%20public%20%28and%20not%20just%20subscribers%29.%26%23160%3B%20To%20download%20visit%20this%20link%20or%20download%20the%20ISO%20from%20here.%20Make%20sure%20you%20completely%20uninstall%20Visual%20Studio%202010%20Beta%201%20before%20installing%20Beta%202.%20%20%20%20%20Visual%20Studio%202010%20brings%20many%20new%20features%20that%20we%20were%20only%20ab&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public&amp;title=Visual+Studio+2010+Beta+2+Now+Out+For+Public" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/misc/trying-out-windows-7-beta' rel='bookmark' title='Permanent Link: Trying Out Windows 7 Beta'>Trying Out Windows 7 Beta</a></li>
<li><a href='http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer' rel='bookmark' title='Permanent Link: MSBuild Context Menu: Build .NET Project/Solution From Explorer'>MSBuild Context Menu: Build .NET Project/Solution From Explorer</a></li>
<li><a href='http://www.zuhaib.in/how-to/clearing-ankhsvn-saved-username-password-authentication-data' rel='bookmark' title='Permanent Link: Clearing AnkhSVN Saved UserName/Password/Authentication Data'>Clearing AnkhSVN Saved UserName/Password/Authentication Data</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/kGLP5UfhWzjqYHr_H5Yx0J8BNGY/0/da"><img src="http://feedads.g.doubleclick.net/~a/kGLP5UfhWzjqYHr_H5Yx0J8BNGY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kGLP5UfhWzjqYHr_H5Yx0J8BNGY/1/da"><img src="http://feedads.g.doubleclick.net/~a/kGLP5UfhWzjqYHr_H5Yx0J8BNGY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/qEv-7MDEuvc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Building The E-TextEditor On Ubuntu 9.04 64 Bit</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/mwnsQ4g3oMw/building-and-running-etexteditor-on-ubuntu-64-bit</link>
		<comments>http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit#comments</comments>
		<pubDate>Sat, 30 May 2009 21:35:20 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[etexteditor]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/?p=212</guid>
		<description><![CDATA[E-TextEditor a.k.a e is my favorite text editor on windows. AFAIK there is no text editor on linux that matches what e can do except for VIM. When I saw the post about making e open source I was pretty exited and wanted to try it out.
So I grabbed the source from GitHub and thought [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit' rel='bookmark' title='Permanent Link: Installing Adobe Air and TweetDeck on Ubuntu 9.04 64 Bit'>Installing Adobe Air and TweetDeck on Ubuntu 9.04 64 Bit</a></li>
<li><a href='http://www.zuhaib.in/how-to/ubuntu-getting-the-multmedia-keys-to-work-with-amarok-in-dell-xps-m1330' rel='bookmark' title='Permanent Link: Ubuntu &#8211; Getting The Multimedia Keys To Work With Amarok In Dell XPS M1330'>Ubuntu &#8211; Getting The Multimedia Keys To Work With Amarok In Dell XPS M1330</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>E-TextEditor a.k.a e is my favorite text editor on windows. AFAIK there is no text editor on linux that matches what e can do except for VIM. When I saw the post about making <a href="http://e-texteditor.com/blog/2009/releasing-the-source" target="_blank">e open source </a>I was pretty exited and wanted to try it out.</p>
<p>So I grabbed the source from GitHub and thought of building it. I am making this post to explain all the problems that I faced while building e. You may or may not face the same problem or you may face different problem altogether, so good luck.</p>
<h3>Grab The Source</h3>
<p>Download the latest source code from <a href="http://github.com/etexteditor/e/tree/master" target="_blank">http://github.com/etexteditor/e/tree/master</a> using the download button available or by using git tool to clone the repository.</p>
<p>Extract the source code somewhere and open the <strong>linux-notes.txt</strong> in your favorite text editor.</p>
<h3>Downloading &amp; Building E-TextEditor</h3>
<p>I am a linux n00b so I choose the easiest way to build e according to linux-notes.txt   </p>
<pre class="brush: bash;"># The easiest way to build is to use the supplied scripts (example shows debug build):
cd external
sudo ./get-packages-ubuntu.sh bakefile
./get_externals_linux.sh
./build_externals_linux.sh debug
cd ..
cd src
make DEBUG=1
./e.debug</pre>
<p>&#160;</p>
<p>I face problem while getting external packages for linux and while building WebKit. The problem was <strong>get-packages-ubuntu.sh</strong> was unable to install <strong>libwxgtk2.8-dev</strong> due to header mismatch (Sorry but I don&#8217;t remember the exact error. I guess it includes wxWidgets header files) and the link to download <strong>tomcrypt</strong> and <strong>tommath</strong> libraries were not found.</p>
<p>I had to download wxWidget headers from their site. I downloaded the amd64 package because I am running Ubuntu 9.04 64 bit</p>
<p><a href="http://apt.wxwidgets.org/dists/jaunty-wx/main/binary-amd64/wx2.8-headers_2.8.10.1-1_amd64.deb" target="_blank">http://apt.wxwidgets.org/dists/jaunty-wx/main/binary-amd64/wx2.8-headers_2.8.10.1-1_amd64.deb</a></p>
<p>The url&#8217;s mentioned in <strong>get-external-linux.sh</strong> to download tomcrypt and math libraries didn&#8217;t resolve because libtomcrypt.com is down at the moment.</p>
<pre class="brush: bash;">wget -nc http://libtomcrypt.com/files/crypt-1.11.tar.bz2
wget -nc http://math.libtomcrypt.com/files/ltm-0.39.tar.bz2</pre>
<p>So I had download the <a href="http://safari.iki.fi/tom/crypt-1.11.tar.bz2" target="_blank">crypt-1.11.tar.bz2</a> and <a href="http://safari.iki.fi/tom/ltm-0.39.tar.bz2" target="_blank">ltm-0.39.tar.bz2</a> files from <a href="http://safari.iki.fi/tom/" target="_blank">http://safari.iki.fi/tom/</a>. You need to be careful here download the exact version mentioned in the script or else it won&#8217;t compile.</p>
<p>Now that we have all the dependencies we are now ready to install them and then we can build e.</p>
<h3>Install The Dependencies</h3>
<p>Double click on the<strong> wx2.8-headers_2.8.10.1-1_amd64.deb</strong> file and then click on<strong> Install Package</strong> button to install the file.</p>
<p>Now its time to fix problems in <strong>get_external_linux.sh</strong> file. If you can write your own script after reading <strong>get_external_linux.sh</strong> its great, but I am lazy so I just created the <strong>arch</strong> directory inside the <strong>external</strong> directory and copied all the files that were supposed to be downloaded by the _download function.</p>
<pre class="brush: bash;">_download()
{
    # Download external libraries
    echo &quot;Downloading external libraries...&quot;
    echo
    pushd arch
    wget -nc http://libtomcrypt.com/files/crypt-1.11.tar.bz2
    wget -nc http://math.libtomcrypt.com/files/ltm-0.39.tar.bz2
    wget -nc http://www.equi4.com/pub/mk/metakit-2.4.9.7.tar.gz
    wget -nc ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.6.tar.gz
    wget -nc http://kent.dl.sourceforge.net/sourceforge/tinyxml/tinyxml_2_5_3.tar.gz
    wget -nc http://biolpc22.york.ac.uk/pub/2.8.10/wxWidgets-2.8.10.tar.bz2
    wget -nc http://builds.nightly.webkit.org/files/trunk/src/WebKit-r43163.tar.bz2
    popd
}</pre>
<p>I actually downloaded all the files mentioned in the _download function to some location to save me download time just in case if anything goes wrong. You may copy only the missing files and the script will download rest of the files.</p>
<p>Now run the <strong>get_external_linux.sh</strong> file again by issuing the command <strong>./get_external_linux.sh.</strong></p>
<p>Everything would work fine after this step (worked fine for me). Now issue rest of the commands</p>
<pre class="brush: bash;">./build_externals_linux.sh debug
cd ..
cd src
make DEBUG=1</pre>
<p>It will take sometime to complete all these commands. If you get any error here that mean something is wrong with the code and you are missing a patch. All you need to do now is Google the error or fix it yourself or post it <a href="http://github.com/etexteditor/e/issues" target="_blank">here </a>and wait for somebody to answer.</p>
<p>If everything goes fine as expected you can now see <strong>e.debug</strong>. But as you can see the size of e.debug file is more than 200MB use the strip command to remove all debug information.</p>
<pre class="brush: bash;"># source : http://fixnum.org/blog/2009/e_on_fedora
strip e.debug -o e.stripped</pre>
<p>&#160;</p>
<p>Now you will have a e.stripped executable weighing approximately 26MB.</p>
<h3>Getting Themes &amp; Bundles</h3>
<p>E-TextEditor will not run without the Themes &amp; Bundles. So it needs to be downloaded and placed inside .e folder in your home directory. Issue the following commands to download and export e themes and bundles.</p>
<p>Install Subversion if you haven&#8217;t already.</p>
<pre class="brush: bash;">sudo apt-get install subversion
svn checkout http://ebundles.googlecode.com/svn/trunk/ ebundles-read-onlysvn export ebundles-read-only ~/.e/</pre>
<p>&#160;</p>
<p>You will see an message <strong>Export Complete</strong>. Now you can run the e.stripped or e.debug and e should run.</p>
<p><img class="alignnone size-full wp-image-214" title="E-TextEditor Running In Ubuntu" alt="e-texteditor" src="http://www.zuhaib.in/wp-content/uploads/2009/05/e-texteditor.png" width="541" height="507" /></p>
<p>Though I was able to build and run E-TextEditor on my machine but its pretty much useless, it has got lots of bugs and it keeps crashing. I still have to download patches from e repository and rebuild my source.</p>
<p>Hope it helps</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;title=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;title=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;title=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;submitHeadline=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit&amp;submitSummary=E-TextEditor%20a.k.a%20e%20is%20my%20favorite%20text%20editor%20on%20windows.%20AFAIK%20there%20is%20no%20text%20editor%20on%20linux%20that%20matches%20what%20e%20can%20do%20except%20for%20VIM.%20When%20I%20saw%20the%20post%20about%20making%20e%20open%20source%20I%20was%20pretty%20exited%20and%20wanted%20to%20try%20it%20out.%20%20So%20I%20grabbed%20the%20source%20from%20GitHub%20and%20thought%20of%20building%20it.%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;title=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;t=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;t=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZKdmaAroWKs4EBrGbOR88wL4VJ0MD-zszc-qOp_ADad5mMKW8TMtNuly0Nic_OdaK5dheCDmJg2tbGaFJY8C2K6ndxlAPNExubF0lbcobFuAU2X_3E2ZCUYql4HolmnUdbPqTOgNqCsa3B-o9ZM445k=' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZKdmaAroWKs4EBrGbOR88wL4VJ0MD-zszc-qOp_ADad5mMKW8TMtNuly0Nic_OdaK5dheCDmJg2tbGaFJY8C2K6ndxlAPNExubF0lbcobFuAU2X_3E2ZCUYql4HolmnUdbPqTOgNqCsa3B-o9ZM445k=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;title=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit&amp;summary=E-TextEditor%20a.k.a%20e%20is%20my%20favorite%20text%20editor%20on%20windows.%20AFAIK%20there%20is%20no%20text%20editor%20on%20linux%20that%20matches%20what%20e%20can%20do%20except%20for%20VIM.%20When%20I%20saw%20the%20post%20about%20making%20e%20open%20source%20I%20was%20pretty%20exited%20and%20wanted%20to%20try%20it%20out.%20%20So%20I%20grabbed%20the%20source%20from%20GitHub%20and%20thought%20of%20building%20it.%20&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit&amp;title=Building+The+E-TextEditor+On+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit' rel='bookmark' title='Permanent Link: Installing Adobe Air and TweetDeck on Ubuntu 9.04 64 Bit'>Installing Adobe Air and TweetDeck on Ubuntu 9.04 64 Bit</a></li>
<li><a href='http://www.zuhaib.in/how-to/ubuntu-getting-the-multmedia-keys-to-work-with-amarok-in-dell-xps-m1330' rel='bookmark' title='Permanent Link: Ubuntu &#8211; Getting The Multimedia Keys To Work With Amarok In Dell XPS M1330'>Ubuntu &#8211; Getting The Multimedia Keys To Work With Amarok In Dell XPS M1330</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/x-dYg-SQN2uWRNp4xxnIegG4F70/0/da"><img src="http://feedads.g.doubleclick.net/~a/x-dYg-SQN2uWRNp4xxnIegG4F70/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/x-dYg-SQN2uWRNp4xxnIegG4F70/1/da"><img src="http://feedads.g.doubleclick.net/~a/x-dYg-SQN2uWRNp4xxnIegG4F70/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/mwnsQ4g3oMw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>MSBuild Context Menu: Build .NET Project/Solution From Explorer</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/qngfze0_3X4/msbuild-context-menu-build-net-projectsolution-from-explorer</link>
		<comments>http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer#comments</comments>
		<pubDate>Fri, 15 May 2009 14:50:04 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[MSBuild]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer</guid>
		<description><![CDATA[Sometimes I don’t like opening visual studio just for building the latest source code from the repository. I don’t remember who wrote the original registry tweak for this, but the credit goes to the original author.
The original tweak allowed to compile Visual Studio 2005 solutions as I use Visual Studio 2008 I had to modify [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public' rel='bookmark' title='Permanent Link: Visual Studio 2010 Beta 2 Now Out For Public'>Visual Studio 2010 Beta 2 Now Out For Public</a></li>
<li><a href='http://www.zuhaib.in/how-to/clearing-ankhsvn-saved-username-password-authentication-data' rel='bookmark' title='Permanent Link: Clearing AnkhSVN Saved UserName/Password/Authentication Data'>Clearing AnkhSVN Saved UserName/Password/Authentication Data</a></li>
<li><a href='http://www.zuhaib.in/misc/trying-out-windows-7-beta' rel='bookmark' title='Permanent Link: Trying Out Windows 7 Beta'>Trying Out Windows 7 Beta</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes I don’t like opening visual studio just for building the latest source code from the repository. I don’t remember who wrote the original registry tweak for this, but the credit goes to the original author.</p>
<p>The original tweak allowed to compile Visual Studio 2005 solutions as I use Visual Studio 2008 I had to modify the original tweak to make it work with VS2008. <a href="http://www.zuhaib.in/wp-content/uploads/2009/05/msbuildvs2005vs2008.zip">Click Here</a> to download the modified files.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="image1" src="http://www.zuhaib.in/wp-content/uploads/2009/05/image1.jpg" border="0" alt="image1" width="220" height="92" align="left" /></p>
<p>Unzip the files and you will see two folders. VS2005 is the original one and VS2008 is the modified version. Each  folder contains two registry files. One to add the commands to windows explorer and another to remove them. If you have both VS2005 and VS2008 installed on your machine you can add both the versions to the registry or you can add either of them.</p>
<p><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="image2" src="http://www.zuhaib.in/wp-content/uploads/2009/05/image2.jpg" border="0" alt="image2" width="262" height="78" align="right" /> Once you have merged the files in your windows registry you can see two commands added to your explorer context menu when you right click on any solution or project file. One for Debug build and one for Release build.</p>
<p>When you click on either of the commands a command window will open and you can see you build status.</p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/2009/05/image3.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image3" src="http://www.zuhaib.in/wp-content/uploads/2009/05/image3-thumb.jpg" border="0" alt="image3" width="595" height="352" /></a></p>
<div id="scid:12CF4F9E-00D5-4d59-A727-42B7641FBD93:00f8dfe1-5efb-4fc0-a4a1-4c000969b7f1" class="wlWriterEditableSmartContent" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">
<div>Download the modified files <a href="http://www.zuhaib.in/wp-content/uploads/2009/05/msbuildvs2005vs2008.zip" target="_self">MSBuild-VS2005-VS2008.zip</a></div>
</div>
<p><strong>Credit goes to the original author.</strong></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;title=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;title=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;title=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;submitHeadline=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer&amp;submitSummary=Sometimes%20I%20don%E2%80%99t%20like%20opening%20visual%20studio%20just%20for%20building%20the%20latest%20source%20code%20from%20the%20repository.%20I%20don%E2%80%99t%20remember%20who%20wrote%20the%20original%20registry%20tweak%20for%20this%2C%20but%20the%20credit%20goes%20to%20the%20original%20author.%0D%0A%0D%0AThe%20original%20tweak%20allowed%20to%20compile%20Visual%20Studio%202005%20solutions%20as%20I%20use%20V&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;title=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;t=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;t=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZI6S2CePUG-J4SObbRfixVfaK34YCmOcaYeNllIlq1JjcI76c_zUhyCR3ZkQmnRuVjQSm_uwEmBASSHSyWFDHL4Rn_jiI_yi5pJ_qKJBXoVbTxVtDAut_zGrSVTSYid_zoDvbkOEhczesAnZggQN5CAkzN75To0USw7MAsv5_Gz6' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZI6S2CePUG-J4SObbRfixVfaK34YCmOcaYeNllIlq1JjcI76c_zUhyCR3ZkQmnRuVjQSm_uwEmBASSHSyWFDHL4Rn_jiI_yi5pJ_qKJBXoVbTxVtDAut_zGrSVTSYid_zoDvbkOEhczesAnZggQN5CAkzN75To0USw7MAsv5_Gz6', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;title=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer&amp;summary=Sometimes%20I%20don%E2%80%99t%20like%20opening%20visual%20studio%20just%20for%20building%20the%20latest%20source%20code%20from%20the%20repository.%20I%20don%E2%80%99t%20remember%20who%20wrote%20the%20original%20registry%20tweak%20for%20this%2C%20but%20the%20credit%20goes%20to%20the%20original%20author.%0D%0A%0D%0AThe%20original%20tweak%20allowed%20to%20compile%20Visual%20Studio%202005%20solutions%20as%20I%20use%20V&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer&amp;title=MSBuild+Context+Menu%3A+Build+.NET+Project%2FSolution+From+Explorer" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public' rel='bookmark' title='Permanent Link: Visual Studio 2010 Beta 2 Now Out For Public'>Visual Studio 2010 Beta 2 Now Out For Public</a></li>
<li><a href='http://www.zuhaib.in/how-to/clearing-ankhsvn-saved-username-password-authentication-data' rel='bookmark' title='Permanent Link: Clearing AnkhSVN Saved UserName/Password/Authentication Data'>Clearing AnkhSVN Saved UserName/Password/Authentication Data</a></li>
<li><a href='http://www.zuhaib.in/misc/trying-out-windows-7-beta' rel='bookmark' title='Permanent Link: Trying Out Windows 7 Beta'>Trying Out Windows 7 Beta</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/uGvadfqpGnYUcBKQ-XB9YTS2u-U/0/da"><img src="http://feedads.g.doubleclick.net/~a/uGvadfqpGnYUcBKQ-XB9YTS2u-U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uGvadfqpGnYUcBKQ-XB9YTS2u-U/1/da"><img src="http://feedads.g.doubleclick.net/~a/uGvadfqpGnYUcBKQ-XB9YTS2u-U/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/qngfze0_3X4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/windows/msbuild-context-menu-build-net-projectsolution-from-explorer?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Installing Adobe Air and TweetDeck on Ubuntu 9.04 64 Bit</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/bVNjteLkuM4/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit</link>
		<comments>http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit#comments</comments>
		<pubDate>Wed, 06 May 2009 17:08:19 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/?p=189</guid>
		<description><![CDATA[After installing Ubuntu 9.04 x64 when I installed Adobe AIR and TweetDeck it all got installed normally, but TweetDeck or any other AIR application didn&#8217;t work.
As of now Adobe AIR binaries are not available for 64 bit OS. However, Adobe AIR 32 bit will work if 32 bit libraries and packages are installed. To install [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit' rel='bookmark' title='Permanent Link: Building The E-TextEditor On Ubuntu 9.04 64 Bit'>Building The E-TextEditor On Ubuntu 9.04 64 Bit</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After installing Ubuntu 9.04 x64 when I installed Adobe AIR and TweetDeck it all got installed normally, but TweetDeck or any other AIR application didn&#8217;t work.</p>
<p>As of now Adobe AIR binaries are not available for 64 bit OS. However, Adobe AIR 32 bit will work if 32 bit libraries and packages are installed. To install Adobe AIR on a 64 bit OS follow these instructions.</p>
<h3><strong>Download Adobe AIR Installer</strong></h3>
<p>Download the Adobe AIR Installer from <a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/get.adobe.com&#39;);" href="http://get.adobe.com/air/">http://get.adobe.com/air/</a></p>
<h3><strong>Download 32 bit Files</strong></h3>
<p>Now you need to install all the 32 bit dependencies. To do so use the getlibs utility from <a href="http://frozenfox.freehostia.com/cappy/" target="_blank">http://frozenfox.freehostia.com/cappy/</a> (thanks to <a href="http://www.affinitywebsolutions.co.uk/" target="_blank">Laurie Cope</a> for the updated link)</p>
<p>After installing getlibs utility issue the following commands in the console.</p>
<pre class="brush: bash;">zuhaib@NerdBox:/$ sudo apt-get install lib32asound2 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32z1 libc6 libc6-i386 lib32nss-mdns
zuhaib@NerdBox:/$ sudo apt-get install ia32-libs
zuhaib@NerdBox:/$ sudo getlibs -l libgnome-keyring.so
zuhaib@NerdBox:/$ sudo getlibs -l libgnome-keyring.so.0
zuhaib@NerdBox:/$ sudo getlibs -l libgnome-keyring.so.0.1.1</pre>
<h3>&#160;</h3>
<h3><strong>Install Adobe AIR</strong></h3>
<p>Open console and goto the change directory to the location where you downloaded Adobe AIR installer and issue the following commands.</p>
<pre class="brush: bash;">zuhaib@NerdBox:~/Desktop$ chmod +x AdobeAIRInstaller.bin
zuhaib@NerdBox:~/Desktop$ sudo ./AdobeAIRInstaller.bin
zuhaib@NerdBox:~/Desktop$ sudo cp /usr/lib/libadobecertstore.so /usr/lib32</pre>
<p>&#160;</p>
<p>You are good to go now.</p>
<h3><strong>Sources</strong></h3>
<p><a href="http://goblog.vergilhost.info/?p=5" target="_blank">http://goblog.vergilhost.info/?p=5</a></p>
<p><a href="http://kb2.adobe.com/cps/408/kb408084.html" target="_blank">http://kb2.adobe.com/cps/408/kb408084.html</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;title=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;title=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;title=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;submitHeadline=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit&amp;submitSummary=After%20installing%20Ubuntu%209.04%20x64%20when%20I%20installed%20Adobe%20AIR%20and%20TweetDeck%20it%20all%20got%20installed%20normally%2C%20but%20TweetDeck%20or%20any%20other%20AIR%20application%20didn%27t%20work.%20%20As%20of%20now%20Adobe%20AIR%20binaries%20are%20not%20available%20for%2064%20bit%20OS.%20However%2C%20Adobe%20AIR%2032%20bit%20will%20work%20if%2032%20bit%20libraries%20and%20packages%20are%20ins&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;title=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;t=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;t=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZNe7o4CzN0FJdvPSYcz4daZMbdpMJExRnndeKX6t36UHfGRF9xUgGdBmAz_3E8r3vPRZfgC7DAgLiWbruIwPMrgtFr9q7jSYJHU4LiVJWPr6gRH3Gvssm4QIbrAsmXBYAZdVnP_8jyKv8PfdBYtx9YVVZ93SROR2rKjwW27VSsei' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZNe7o4CzN0FJdvPSYcz4daZMbdpMJExRnndeKX6t36UHfGRF9xUgGdBmAz_3E8r3vPRZfgC7DAgLiWbruIwPMrgtFr9q7jSYJHU4LiVJWPr6gRH3Gvssm4QIbrAsmXBYAZdVnP_8jyKv8PfdBYtx9YVVZ93SROR2rKjwW27VSsei', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;title=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit&amp;summary=After%20installing%20Ubuntu%209.04%20x64%20when%20I%20installed%20Adobe%20AIR%20and%20TweetDeck%20it%20all%20got%20installed%20normally%2C%20but%20TweetDeck%20or%20any%20other%20AIR%20application%20didn%27t%20work.%20%20As%20of%20now%20Adobe%20AIR%20binaries%20are%20not%20available%20for%2064%20bit%20OS.%20However%2C%20Adobe%20AIR%2032%20bit%20will%20work%20if%2032%20bit%20libraries%20and%20packages%20are%20ins&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit&amp;title=Installing+Adobe+Air+and+TweetDeck+on+Ubuntu+9.04+64+Bit" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/how-to/building-and-running-etexteditor-on-ubuntu-64-bit' rel='bookmark' title='Permanent Link: Building The E-TextEditor On Ubuntu 9.04 64 Bit'>Building The E-TextEditor On Ubuntu 9.04 64 Bit</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/AKZffw3sYmSXln95PA-2F1e05Kc/0/da"><img src="http://feedads.g.doubleclick.net/~a/AKZffw3sYmSXln95PA-2F1e05Kc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AKZffw3sYmSXln95PA-2F1e05Kc/1/da"><img src="http://feedads.g.doubleclick.net/~a/AKZffw3sYmSXln95PA-2F1e05Kc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/bVNjteLkuM4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/how-to/installing-adobe-air-and-tweetdeck-on-ubuntu-904-64-bit?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Preventing Or Removing Autorun.inf virus</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/PQvXG-2ktC8/preventing-or-removing-autoruninf-virus</link>
		<comments>http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus#comments</comments>
		<pubDate>Sun, 08 Mar 2009 20:12:16 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[autorun virus]]></category>
		<category><![CDATA[autorun.inf virus]]></category>
		<category><![CDATA[disable autorun]]></category>
		<category><![CDATA[removing autorun.inf]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus</guid>
		<description><![CDATA[How many times have you plugged in your removable drive into some pc and next time you insert your removable drive and you see an autorun command. You double click on the removable drive and bam your pc is infected. Sometimes the clicking on the Open and Explore command will also execute the virus and [...]]]></description>
			<content:encoded><![CDATA[<p>How many times have you plugged in your removable drive into some pc and next time you insert your removable drive and you see an autorun command. You double click on the removable drive and bam your pc is infected. Sometimes the clicking on the Open and Explore command will also execute the virus and your pc will be infected.</p>
<p>When your flash drive is infected it normally contains two files autorun.inf and some executable file. The autorun.inf can be found in the root of your flash drive.</p>
<p>If your system is infected formatting the media also will not clean the virus and sometimes you can’t even show hidden files. When you try to show hidden files from the folder options it simply won’t work.</p>
<p>If you have ever faced such problems then read along. When I plug-in any removable media to my pc I follow few steps to avoid such malwares. Even if you get infected its easy to eliminating such viruses.</p>
<h3><strong>Prevention Is Better Than Cure</strong></h3>
<p><strong>Method 1:</strong></p>
<p>Disable Autorun by running this reg file.&#160; This will turn off the autorun feature.</p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:8eb9d37f-1541-4f29-b6f4-1eea890d4876:4c9607fa-fe0a-408d-a482-6f394fe2ef99" class="wlWriterEditableSmartContent">
<div><a href="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/DISABLEAUTORUN.reg" target="_self">DISABLE-AUTORUN.reg</a></div>
</p>
</div>
<p><strong>Method 2:</strong></p>
<p>If you do not want to turn off the autorun feature and still want to be safe then follow these few steps before opening any flash drive to avoid triggering the virus.</p>
<p><strong>Do not double click and open your flash drive. Always open it from the explorer folder list.</strong></p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/explorer.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="explorer" border="0" alt="explorer" src="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/explorer_thumb.jpg" width="570" height="428" /></a> </p>
<p>This way you avoid triggering the virus via autorun.inf.</p>
<p>To check if your flash drive contains the virus. Open folder options from the tools menu. Select the View tab and select <strong>Show hidden files and folders</strong> radio button under the Hidden files and folders tree. Also uncheck the <strong>Hide protected operating system files (recomended)</strong> check box. Click on apply and the OK.</p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/folderoptions.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="folderoptions" border="0" alt="folderoptions" src="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/folderoptions_thumb.jpg" width="423" height="508" /></a> </p>
<p>Now you should be able to view hidden files and folders. Open your flash drive and explorer from the explorer folder tree. If you see see autorun.inf file in the root of your flash drive then open it in notepad. Delete any executable file or batch files it is pointing to and then the autorun.inf file itself.</p>
<p>If you still can’t see the hidden files then open command prompt and type the command <strong>dir /AH </strong>to view all the hidden and system files.</p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/cmd.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="cmd" border="0" alt="cmd" src="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/cmd_thumb.jpg" width="435" height="342" /></a> </p>
<p>If you get an access denied error while deleting the files then it means that you are already infected by the virus.</p>
<p>If Show Hidden Files &amp; Folders option in the folder options dialog doesn’t work then follow the steps mentioned at the end of the post to fix this issue.</p>
<h3><strong>Manually Deleting The Autorun.inf Virus</strong></h3>
<p>If you can’t show hidden files or you are not able to delete the autorun.inf file and the executable then you are already infected by the virus. Now you need to manually delete the virus.</p>
<p><strong>Step 1</strong></p>
<p>The first place to look for the virus is the startup program list. Open Run dialog from the start menu and type msconfig and press enter. This will bring the System Configuration dialog box. Under the startup tab look for any suspicious unwanted program.</p>
<p>If you suspect any program then google the executable name and gather some information about it. Usually all the viruses copy themselves to the windows or system32 folders and sometimes to the root or program files.</p>
<p>After un-checking all the unwanted programs click Ok. The dialog will prompt you to restart for the changes to apply. Click on Exit without restarting. We still have some steps to complete.</p>
<p><strong>Step 2</strong></p>
<p>Some viruses hook into the shell. Open the run dialog from the start menu and type regedit and press enter, this will open the registry editing tool.</p>
<p>Navigate to <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</strong> using the tree in the left hand panel. Check the value of the Shell key.</p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/regedit.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="regedit" border="0" alt="regedit" src="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/regedit_thumb.jpg" width="499" height="361" /></a> </p>
<p>The value of the Shell key should be explorer.exe if you see name of any other executable file along with the explorer.exe, double click on the Shell key and delete anything except the explorer.exe and click ok.</p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/regsvr.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="regsvr" border="0" alt="regsvr" src="http://www.zuhaib.in/wp-content/uploads/PreventingOrRemovingAutorun.infvirus_1248/regsvr_thumb.jpg" width="429" height="225" /></a> </p>
<p>Now reboot your pc. After rebooting your pc you should now be able to delete the autofun.inf and any other virus that you were not able to delete before.</p>
<p><strong>Folder Options – Fix For “Show Hidden Files &amp; Folders” Not Working</strong></p>
<p>Sometimes even after removing the virus you won’t be able to show the hidden files. After settings the options in the folder options they get back to the old settings. You need to do change another key in the registry to fix this problem.</p>
<h2><strong>Method 1: </strong></h2>
<p>Go to registry editor by running regedit in the run box.    <br />Go to this key:     <br />HKEY_CURRENT_USER\Software\Microsoft\     <br />Windows\CurrentVersion\Explorer\Advanced </p>
<p>In the right hand area, double click hidden and change the value to 1. </p>
<p>Now you’re all set to go. Check it in your tools menu if the changes have taken effect.</p>
<h2><strong>Method 2:</strong></h2>
<p>1. Click “Start” -&gt; “Run…” (or press Windows key + R)    <br />2. Type “regedit” and click “Ok”.     <br />3. Find the key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\     <br />Advanced\Folder\Hidden\SHOWALL     <br />4. Look at the “CheckedValue” key… This should be a DWORD key. If it isn’t, delete the key.     <br />5. Create a new key called “CheckedValue” as a DWORD (hexadecimal) with a value of 1.     <br />6. The “Show hidden files &amp; folders” check box should now work normally.</p>
<p>Hope it helps</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;title=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;title=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;title=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;submitHeadline=Preventing+Or+Removing+Autorun.inf+virus&amp;submitSummary=How%20many%20times%20have%20you%20plugged%20in%20your%20removable%20drive%20into%20some%20pc%20and%20next%20time%20you%20insert%20your%20removable%20drive%20and%20you%20see%20an%20autorun%20command.%20You%20double%20click%20on%20the%20removable%20drive%20and%20bam%20your%20pc%20is%20infected.%20Sometimes%20the%20clicking%20on%20the%20Open%20and%20Explore%20command%20will%20also%20execute%20the%20virus%20a&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;title=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;t=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;t=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZA0Cqv2yjFsmfEW8YsnowY7TjsUqvVVXd5d1cXxEYKcTe1gsIh5uEFo5BlodaCPGPJP6ubrXnmzqjEFMhvnbQF29X-9xzPigwqvuEeNXSuRjN5buLlwvBE5jQOmQ_o4tk1c1oy04kLlLE-Cfj3eT1tI=' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZA0Cqv2yjFsmfEW8YsnowY7TjsUqvVVXd5d1cXxEYKcTe1gsIh5uEFo5BlodaCPGPJP6ubrXnmzqjEFMhvnbQF29X-9xzPigwqvuEeNXSuRjN5buLlwvBE5jQOmQ_o4tk1c1oy04kLlLE-Cfj3eT1tI=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;title=Preventing+Or+Removing+Autorun.inf+virus&amp;summary=How%20many%20times%20have%20you%20plugged%20in%20your%20removable%20drive%20into%20some%20pc%20and%20next%20time%20you%20insert%20your%20removable%20drive%20and%20you%20see%20an%20autorun%20command.%20You%20double%20click%20on%20the%20removable%20drive%20and%20bam%20your%20pc%20is%20infected.%20Sometimes%20the%20clicking%20on%20the%20Open%20and%20Explore%20command%20will%20also%20execute%20the%20virus%20a&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus&amp;title=Preventing+Or+Removing+Autorun.inf+virus" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->


<p><a href="http://feedads.g.doubleclick.net/~a/5JxDCiw3SVJP9OcGHBLTHZAp_2c/0/da"><img src="http://feedads.g.doubleclick.net/~a/5JxDCiw3SVJP9OcGHBLTHZAp_2c/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5JxDCiw3SVJP9OcGHBLTHZAp_2c/1/da"><img src="http://feedads.g.doubleclick.net/~a/5JxDCiw3SVJP9OcGHBLTHZAp_2c/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/PQvXG-2ktC8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/how-to/preventing-or-removing-autoruninf-virus?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Windows 7 Bug In Desktop Slideshow?</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/9R_sSpJzmvU/windows-7-bug-in-desktop-slideshow</link>
		<comments>http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow#comments</comments>
		<pubDate>Wed, 25 Feb 2009 17:32:29 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow</guid>
		<description><![CDATA[One of the many nice features in windows 7 is the Desktop Slideshow. You can choose more than one wallpaper and a duration to cycle wallpapers.

You can also change your wallpaper manually by right clicking on the desktop and clicking the Next Desktop Background command&#160;from the context menu.
&#160;
The Bug
If you delete/rename the current wallpaper and [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/misc/trying-out-windows-7-beta' rel='bookmark' title='Permanent Link: Trying Out Windows 7 Beta'>Trying Out Windows 7 Beta</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>One of the many nice features in windows 7 is the Desktop Slideshow. You can choose more than one wallpaper and a duration to cycle wallpapers.</p>
<p><a href="http://www.zuhaib.in/wp-content/uploads/2009/04/slideshow1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Winodws 7 Desktop Background Slideshow" border="0" alt="Winodws 7 Desktop Background Slideshow" src="http://www.zuhaib.in/wp-content/uploads/2009/04/slideshow-thumb1.jpg" width="531" height="500" rel="lightbox" /></a></p>
<p>You can also change your wallpaper manually by right clicking on the desktop and clicking the <strong>Next Desktop Background </strong>command<strong>&#160;</strong>from the context menu.</p>
<p>&#160;<a href="http://www.zuhaib.in/wp-content/uploads/2009/04/contextmenu.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px" title="desktop context menu" border="0" alt="desktop context menu" src="http://www.zuhaib.in/wp-content/uploads/2009/04/contextmenu-thumb.jpg" width="260" height="186" rel="lightbox" /></a></p>
<h3><strong>The Bug</strong></h3>
<p>If you delete/rename the current wallpaper and then try changing the wallpaper manually by clicking on Next Desktop Background from the desktop context menu, the wallpaper doesn’t change.</p>
<p>If you are on windows 7 please try it and confirm whether this happens on your machine or not.</p>
<h3><strong>Update</strong></h3>
<p>I posted the same to windows7update.com and they accepted it as a bug.&#160; Here is the link to the post <a href="http://www.windows7update.com/desktop-slideshow-bug.html">http://www.windows7update.com/desktop-slideshow-bug.html</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;title=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;title=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;title=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;submitHeadline=Windows+7+Bug+In+Desktop+Slideshow%3F&amp;submitSummary=One%20of%20the%20many%20nice%20features%20in%20windows%207%20is%20the%20Desktop%20Slideshow.%20You%20can%20choose%20more%20than%20one%20wallpaper%20and%20a%20duration%20to%20cycle%20wallpapers.%20%20%20%20You%20can%20also%20change%20your%20wallpaper%20manually%20by%20right%20clicking%20on%20the%20desktop%20and%20clicking%20the%20Next%20Desktop%20Background%20command%26%23160%3Bfrom%20the%20context%20menu.&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;title=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;t=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;t=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZKRI7SYrhv12y6PeYv_y_8R3ydEmUW2mTXzyTIK8hVA4njQ-uPZI5c3wMh_xLws71JxeXodXvKVvudCYzl2IUnqh4C4V9hrYRaEiu4MG4BuHYhofXsiup8Pzeh7SYu49yg==' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZKRI7SYrhv12y6PeYv_y_8R3ydEmUW2mTXzyTIK8hVA4njQ-uPZI5c3wMh_xLws71JxeXodXvKVvudCYzl2IUnqh4C4V9hrYRaEiu4MG4BuHYhofXsiup8Pzeh7SYu49yg==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;title=Windows+7+Bug+In+Desktop+Slideshow%3F&amp;summary=One%20of%20the%20many%20nice%20features%20in%20windows%207%20is%20the%20Desktop%20Slideshow.%20You%20can%20choose%20more%20than%20one%20wallpaper%20and%20a%20duration%20to%20cycle%20wallpapers.%20%20%20%20You%20can%20also%20change%20your%20wallpaper%20manually%20by%20right%20clicking%20on%20the%20desktop%20and%20clicking%20the%20Next%20Desktop%20Background%20command%26%23160%3Bfrom%20the%20context%20menu.&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow&amp;title=Windows+7+Bug+In+Desktop+Slideshow%3F" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/misc/trying-out-windows-7-beta' rel='bookmark' title='Permanent Link: Trying Out Windows 7 Beta'>Trying Out Windows 7 Beta</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/w5uOXahtMsedB5bDWXeysQM7OKA/0/da"><img src="http://feedads.g.doubleclick.net/~a/w5uOXahtMsedB5bDWXeysQM7OKA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/w5uOXahtMsedB5bDWXeysQM7OKA/1/da"><img src="http://feedads.g.doubleclick.net/~a/w5uOXahtMsedB5bDWXeysQM7OKA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/9R_sSpJzmvU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>[ObjectDataSource – MissingMethodException] Method not found: Void System.Web.UI.WebControls.Parameter.set_DbType (System.Data.DbType)</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/qiVPYTwkXr4/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype</link>
		<comments>http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype#comments</comments>
		<pubDate>Tue, 24 Feb 2009 18:44:33 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[aspnet]]></category>
		<category><![CDATA[MissingMethodException]]></category>
		<category><![CDATA[ObjectDataSource]]></category>
		<category><![CDATA[set_DbType]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype</guid>
		<description><![CDATA[I recently faced this annoying error while working on an ASP.NET site. The problem only occurred with pages containing ObjectDataSource that took parameters.
After a lot of head scratching, I finally stumbled upon this thread. The problem is with the Type property of the ObjectDataSource. Removing the type property from the ObjectDataSource parameters would solve the [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/asp-net/writing-provide-independent-adonet-data-access-layer' rel='bookmark' title='Permanent Link: Writing Provider Independent .NET Data Access Code'>Writing Provider Independent .NET Data Access Code</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently faced this annoying error while working on an ASP.NET site. The problem only occurred with pages containing ObjectDataSource that took parameters.</p>
<p>After a lot of head scratching, I finally stumbled upon <a href="http://forums.asp.net/p/1323352/2635687.aspx">this</a> thread.<strong> The problem is with the Type property of the ObjectDataSource. Removing the type property from the ObjectDataSource parameters would solve the problem.</strong></p>
<p>Also the error here is misleading set_DbType is a property and not a method.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;title=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;title=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;title=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;submitHeadline=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29&amp;submitSummary=I%20recently%20faced%20this%20annoying%20error%20while%20working%20on%20an%20ASP.NET%20site.%20The%20problem%20only%20occurred%20with%20pages%20containing%20ObjectDataSource%20that%20took%20parameters.%20%20After%20a%20lot%20of%20head%20scratching%2C%20I%20finally%20stumbled%20upon%20this%20thread.%20The%20problem%20is%20with%20the%20Type%20property%20of%20the%20ObjectDataSource.%20Removing%20&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;title=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;t=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;t=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZByVyfoN0r6ZyjDyYPwgU6XmbYKSJ2dKu_C-F6i1RjzcdPf3GIKI2uwFVvsdiiBHU3-3ZVG2Ngnniv_fMpA-XGu3Bt4fFpOLpxEgC90VWRIsLYeAl-y0K4H6s3whTYZQy73tNuIi8O3Ai200WYFJUJh7WSvS7o_1dtZseXsfE-4O08t76dmBxrC5ssCQxTG74djyX3dH-1do-9I_fu3jgfg=' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZByVyfoN0r6ZyjDyYPwgU6XmbYKSJ2dKu_C-F6i1RjzcdPf3GIKI2uwFVvsdiiBHU3-3ZVG2Ngnniv_fMpA-XGu3Bt4fFpOLpxEgC90VWRIsLYeAl-y0K4H6s3whTYZQy73tNuIi8O3Ai200WYFJUJh7WSvS7o_1dtZseXsfE-4O08t76dmBxrC5ssCQxTG74djyX3dH-1do-9I_fu3jgfg=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;title=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29&amp;summary=I%20recently%20faced%20this%20annoying%20error%20while%20working%20on%20an%20ASP.NET%20site.%20The%20problem%20only%20occurred%20with%20pages%20containing%20ObjectDataSource%20that%20took%20parameters.%20%20After%20a%20lot%20of%20head%20scratching%2C%20I%20finally%20stumbled%20upon%20this%20thread.%20The%20problem%20is%20with%20the%20Type%20property%20of%20the%20ObjectDataSource.%20Removing%20&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype&amp;title=%5BObjectDataSource+%E2%80%93+MissingMethodException%5D+Method+not+found%3A+Void+System.Web.UI.WebControls.Parameter.set_DbType+%28System.Data.DbType%29" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/asp-net/writing-provide-independent-adonet-data-access-layer' rel='bookmark' title='Permanent Link: Writing Provider Independent .NET Data Access Code'>Writing Provider Independent .NET Data Access Code</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/qiXIGYKXo6bGUTknmiSrzgR0i6Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/qiXIGYKXo6bGUTknmiSrzgR0i6Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qiXIGYKXo6bGUTknmiSrzgR0i6Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/qiXIGYKXo6bGUTknmiSrzgR0i6Y/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/qiVPYTwkXr4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/asp-net/objectdatasource-missingmethodexception-method-not-found-void-systemwebuiwebcontrolsparameterset_dbtypesystemdatadbtype?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Trying Out Windows 7 Beta</title>
		<link>http://feedproxy.google.com/~r/Zuhaib/~3/IfiGSTG0aAg/trying-out-windows-7-beta</link>
		<comments>http://www.zuhaib.in/misc/trying-out-windows-7-beta#comments</comments>
		<pubDate>Mon, 02 Feb 2009 21:44:26 +0000</pubDate>
		<dc:creator>Zuhaib</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.zuhaib.in/?p=133</guid>
		<description><![CDATA[I have been dying to try out Windows 7 since the beta was released. So yesterday after tying it out for a while on VMWare .. I decided to upgrade from Windows Vista to Windows 7 on my Dell XPS M1330.
My Lappy Specs:
Dell XPS M1330
Intel Core 2 Duo 2.4 GHz
4GB RAM
320GB HDD
nVidia 128MB 8400M GS
After [...]

<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow' rel='bookmark' title='Permanent Link: Windows 7 Bug In Desktop Slideshow?'>Windows 7 Bug In Desktop Slideshow?</a></li>
<li><a href='http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public' rel='bookmark' title='Permanent Link: Visual Studio 2010 Beta 2 Now Out For Public'>Visual Studio 2010 Beta 2 Now Out For Public</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been dying to try out Windows 7 since the beta was released. So yesterday after tying it out for a while on VMWare .. I decided to upgrade from Windows Vista to Windows 7 on my Dell XPS M1330.</p>
<p><strong>My Lappy Specs:</strong><br />
Dell XPS M1330<br />
Intel Core 2 Duo 2.4 GHz<br />
4GB RAM<br />
320GB HDD<br />
nVidia 128MB 8400M GS</p>
<p>After backing up my files and settings, I booted with the Windows 7 DVD. It first asked me whether I wanted to upgrade the existing operating system. I choosed to install a fresh copy rather than upgrading (Because I read somewhere upgrade takes too much time).</p>
<p>The installation process was very simple and within 20 mins I had Windows 7 up and running.</p>
<h1>Driver Installation</h1>
<p>To avoid problems run all your driver installations under compatibility mode. I choose Windows Vista environment while installing the drivers.</p>
<h1>Problems</h1>
<p>I was unable to install most of the .msi based installer. After a little googling I found the solution <a href="http://www.geekzone.co.nz/freitasm/6161">here</a>.</p>
<h2>Fix for install/upgrade crashes</h2>
<p><strong>Note:</strong> Only delete the key if you are facing the same issue. Also remember you have to restart after deleting the registry key.</p>
<blockquote><p>
There have been reports of some Windows 7 beta testers experiencing installation errors with Windows Update and third party applications like Java and Flash (crashes of Explorer and MSI-based installers).</p>
<p>This may be an issue related to the Customer Experience Improvement Program client (CEIP also known as SQM). If you are experiencing this try the fix outlined below. Any machine that’s currently not affected by this problem does not need this fix, nor will future installations or upgrades. </p>
<p>What happened? Microsoft deployed a configuration change which exposed this problem. The following instructions will remove those changes (registry keys) to prevent further CEIP related crashes. </p>
<p>1.Select and copy the following to your clipboard: </p>
<p>reg delete HKLM\SOFTWARE\Microsoft\SQMClient\Windows\DisabledSessions /va /f</p>
<p>2.Click on &#8220;Start&#8221;, then &#8220;All Programs&#8221;, then &#8220;Accessories&#8221;</p>
<p>3.Right click on &#8220;Command Prompt&#8221;, then click on &#8220;Run as administrator&#8221; </p>
<p>4.In the UAC prompt, verify that the program’s name is &#8220;Windows Command Processor&#8221; and then click &#8220;Yes&#8221; </p>
<p>5.Right click on the &#8220;Administrator: Command Prompt&#8221; window’s black area, then select &#8220;Paste&#8221;</p>
<p>6.Press &#8220;Enter&#8221;, you should see “The operation completed successfully”.</p>
<p>7.If you see “ERROR: Access is denied”, please make sure you followed Step 3.  </p>
<p>8.Close the &#8220;Administrator: Command Prompt window&#8221;
</p></blockquote>
<p><strong>Programs That I have Installed</strong></p>
<p>Currently I have installed</p>
<p>Visual Studio 2008<br />
Photoshop CS4<br />
Fireworks CS4<br />
e-TextEditor<br />
FireFox<br />
WAMP Server<br />
VisualSVN Server<br />
TortoiseSVN</p>
<p>Everything works fine.</p>
<h1>Try Windows 7 Now</h1>
<p>For those who are affraid of trying out the beta, there is nothing to worry about the Windows 7 beta works just fine.<br />
But to be on a safer side I recommend you guys to use Windows 7 on VMWare or dual boot Windows 7 with your existing operating.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;title=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;title=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;title=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;submitHeadline=Trying+Out+Windows+7+Beta&amp;submitSummary=I%20have%20been%20dying%20to%20try%20out%20Windows%207%20since%20the%20beta%20was%20released.%20So%20yesterday%20after%20tying%20it%20out%20for%20a%20while%20on%20VMWare%20..%20I%20decided%20to%20upgrade%20from%20Windows%20Vista%20to%20Windows%207%20on%20my%20Dell%20XPS%20M1330.%0D%0A%0D%0AMy%20Lappy%20Specs%3A%0D%0ADell%20XPS%20M1330%0D%0AIntel%20Core%202%20Duo%202.4%20GHz%0D%0A4GB%20RAM%0D%0A320GB%20HDD%0D%0AnVidia%20128MB%208400M&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;title=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.zuhaib.in/misc/trying-out-windows-7-beta" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;t=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;t=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<span class="mh-hyperlinked"><a href='http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&c=kSkpsK256g3QYzIGw78NZFeg6j8iWWTyCZDjqIUn5hZRhcCxe7corLunZi5uGSSQcTcav-q0zcHYV2zh1XhQtGKAoEWh5l17HNdjr6R8jpLfnGYMmjiNLPpAJccO_81fMFCDGJ94AXm58qTUA4cjgQ==' onclick="window.open('http://mailhide.recaptcha.net/d?k=018BTbbxR2JiukpAgKz7HLSQ==&amp;c=kSkpsK256g3QYzIGw78NZFeg6j8iWWTyCZDjqIUn5hZRhcCxe7corLunZi5uGSSQcTcav-q0zcHYV2zh1XhQtGKAoEWh5l17HNdjr6R8jpLfnGYMmjiNLPpAJccO_81fMFCDGJ94AXm58qTUA4cjgQ==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;">Tweet This!</a></span>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;title=Trying+Out+Windows+7+Beta&amp;summary=I%20have%20been%20dying%20to%20try%20out%20Windows%207%20since%20the%20beta%20was%20released.%20So%20yesterday%20after%20tying%20it%20out%20for%20a%20while%20on%20VMWare%20..%20I%20decided%20to%20upgrade%20from%20Windows%20Vista%20to%20Windows%207%20on%20my%20Dell%20XPS%20M1330.%0D%0A%0D%0AMy%20Lappy%20Specs%3A%0D%0ADell%20XPS%20M1330%0D%0AIntel%20Core%202%20Duo%202.4%20GHz%0D%0A4GB%20RAM%0D%0A320GB%20HDD%0D%0AnVidia%20128MB%208400M&amp;source=Zuhaib" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-google">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.zuhaib.in/misc/trying-out-windows-7-beta&amp;title=Trying+Out+Windows+7+Beta" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->



<h4>Possible Related Posts:</h4><ol><li><a href='http://www.zuhaib.in/windows/windows-7-bug-in-desktop-slideshow' rel='bookmark' title='Permanent Link: Windows 7 Bug In Desktop Slideshow?'>Windows 7 Bug In Desktop Slideshow?</a></li>
<li><a href='http://www.zuhaib.in/net/visual-studio-2010-beta-2-now-out-for-public' rel='bookmark' title='Permanent Link: Visual Studio 2010 Beta 2 Now Out For Public'>Visual Studio 2010 Beta 2 Now Out For Public</a></li>
</ol>
<p><a href="http://feedads.g.doubleclick.net/~a/XyhAroiJrTy7HyqbMWh0sK9c1eI/0/da"><img src="http://feedads.g.doubleclick.net/~a/XyhAroiJrTy7HyqbMWh0sK9c1eI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XyhAroiJrTy7HyqbMWh0sK9c1eI/1/da"><img src="http://feedads.g.doubleclick.net/~a/XyhAroiJrTy7HyqbMWh0sK9c1eI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/Zuhaib/~4/IfiGSTG0aAg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.zuhaib.in/misc/trying-out-windows-7-beta/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.zuhaib.in/misc/trying-out-windows-7-beta?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
	</channel>
</rss>
