<rss version="2.0"><channel><title>VishwaMohan.com - Vishwa Mohan's Blog</title><link>http://www.vishwamohan.com</link><description>VishwaMohan.com - Vishwa Mohan's Personal Web Site Blog</description><copyright>Copyright (C) VishwaMohan.Com.</copyright><generator>VishwaMohan.com RSS Generator</generator><webMaster>Vishwa@vishwamohan.com</webMaster><item><title>Securing .NET Config Files</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=64</link><description>As you know, Web.Config and App.Config files are like plain readable XML files. However, it contains sensitive information such as Connection Strings, Impersonation, App Setting Keys and their values. At some point you may need to secure these sections. .NET Framework allows to make your life simple, by just executing few commands on Command Prompt or few clicks using a Enterprise Library Configuration tool, you can achieve the desired result. There is only one basic requirement you should be able to at least remotely login to the Server where you would like to make these thing. Following are few simple steps to secure web/app.config.
</description><pubDate>Sun, 28 Sep 2008 02:48:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=64</guid><author>Vishwa</author></item><item><title>IFMG Annual Event @Lal Quila Restaurant</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=63</link><description>I got an opportunity to attend and participate in the annual event of our local Indian Friends Meetup group of Atlanta. Here are few moments of Singing and Antrakshri in which I happen to participate. </description><pubDate>Thu, 28 Aug 2008 09:34:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=63</guid><author>Vishwa</author></item><item><title>Error:Communication with the underlying transaction manager has failed</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=62</link><description>If you are using .NET 2.0 or higher Framework and System.Transactions Namespace to handle your transactions, chances are you may come across this error.  In my application, I was using ADO.NET transaction, in stored procedure SQL Server transaction and now we decided to use a powerful transaction handler using .NET framework. If you are writing everything fresh, most likely you won?t like to mix different type of transaction handling mechanism. But what if you already have existing code and do not want to change, what to do. I tried to mix all the three kind of transactions, but it resulted in errors. Sometime, they timeout, sometime it just hanged and sometime it produced Microsoft Transaction Coordinator (MSDTC) error.  So, how to resolve this problem? After spending several hours I found that one must follow following basic steps.</description><pubDate>Tue, 29 Jul 2008 10:33:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=62</guid><author>Vishwa</author></item><item><title>Four Goals of Life</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=61</link><description>In Hinduism, it is taught that a person must achieve the following four goals in life. The correct order is Dharma, Artha, Moksha and Kama. But as an ordinary human being I believe that the sequence should be Artha, Dharma, Kama and Moksha. The reason is ? in today?s world if you do not have Artha (sufficient money), you cannot perform your Dharma (duty to self or family). If you are able to have first two, you should enjoy the pleasure out of it, but do not get stuck into it and then at the same time peruse for Moksha of self liberation through spiritual path. You cannot think about spirituality if the first three basic needs are not fulfilled. The temple of Khajuraho teaches us the very same understanding that before entering into the temple, fulfill your worldly desires. If they are not fulfill, your body may be in the temple but mind will be wandering somewhere else. Here is my understanding on these goals</description><pubDate>Sun, 15 Jun 2008 05:01:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=61</guid><author>Vishwa</author></item><item><title>Secure Query String using Symmetric Cryptography</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=60</link><description>It is important to secure information on the web specially when transferring data from one page to another. Some information you may not want to make it readable by end user.  Microsoft .NET provides Cryptography   namespace which can be easily utilized for this purpose.  The following example contains a simple class containing Encryption and Decryption method.  It supports 2 types ? DESC and Rijndael. Symmetric type and encryption key can be configured easily through .config file.</description><pubDate>Wed, 28 May 2008 10:50:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=60</guid><author>Vishwa</author></item><item><title>Error: System.ServiceModel.Channels</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=59</link><description>Recently I came across interesting error messages while calling a WCF Service Hosted in IIS 6.0 on Windows 2003 Server. From the error message, I could not figure out the real cause. But after doing some research and changing few configuration information and changing the code, it appears that these solutions fixed these errors.</description><pubDate>Thu, 17 Apr 2008 07:19:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=59</guid><author>Vishwa</author></item><item><title>Error: Could not establish trust relationship for the SSL/TLS secure channel with authority</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=58</link><description>I got this error when calling a &lt;b&gt;WCF Service over HTTPS&lt;/b&gt;. A Similar error can also occurs when you try calling a web service programmatically over SSL (HTTPS) and certificate is either not valid or Certificate is attached to a domain and you are not using the domain name but the machine name or IP address. So, what to do in that case if you don?t care about certificate and would like to accept all certificates.  I found that it can be done using one of two ways.</description><pubDate>Thu, 17 Apr 2008 12:26:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=58</guid><author>Vishwa</author></item><item><title>Make a .NET Component accessible in Classic ASP or VB6</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=57</link><description>I came across a situation again to use exactly same .NET component as COM component in classic ASP page. I had totally forgotten these steps but finally managed to make it work. Later, I thought to put these steps together on my blog, so that if anyone else also don?t know or forget these steps, this will help.</description><pubDate>Sat, 05 Apr 2008 01:51:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=57</guid><author>Vishwa</author></item><item><title>Implementing WCF Service Part 5 - Fault Contract</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=56</link><description>In WCF, there are five major contracts ? &lt;b&gt;Service Contract, Operation Contract, Data Contract, Fault Contract and Message Contract&lt;/b&gt;. In my previous examples I used first three. In this example, I will implement the &lt;b&gt;Fault Contract&lt;/b&gt;. I am not very fond of using Message Contract as some guidelines suggest using the least or based on requirement, however you cannot get away from the first four contracts.  In the event of Fault (exception), WCF throws a fault containing detail error message which you may not like to be passed back to the caller. In other words, this example focuses on how to hide full error details and provide a custom error code, message and details. You can use multiple Fault Contracts on one Operation Contract in similar way.  This example provides a simple and generic way to handle Faults.</description><pubDate>Mon, 24 Mar 2008 10:56:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=56</guid><author>Vishwa</author></item><item><title>Implementing WCF Service Part 4 - POX/REST</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=55</link><description>This post will focus on implementing &lt;b&gt;POX &lt;/b&gt;(Plain Old XML) and &lt;b&gt;REST &lt;/b&gt;(Representational State Transfer) in WCF. In other words this is an implementation of the old HTTP XML Post. I spent not several hours but several days to figure out the solution. As all of you know making &lt;b&gt;HTTP GET&lt;/b&gt; is easy in WCF but &lt;b&gt;HTTP Post&lt;/b&gt; (without using SOAP) is a different story. I researched all around the web but nowhere found a simple example for this option, yes not even on Microsoft site. Many people just post their opinion in few lines and then you keep guessing, and if you are new to this then keep doing trial and error method for hours and days provided you keep your patience on. Once you will find the solution, it will look so easy.</description><pubDate>Thu, 07 Feb 2008 11:04:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=55</guid><author>Vishwa</author></item><item><title>Implementing WCF Service Part 3 - SOAP/XML</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=54</link><description>In this post, I will implement the &lt;b&gt;basicHttpBinding&lt;/b&gt;, through which you can even use a HTML page and JavaScript to consume the WCF Service via SOAP based XML. I spent several hours to exactly figure out the SOAP format. In ASMX web service, if you will click on a method, it shows you the sample SOAP format for request and response. Unfortunately, that is not available in WCF Service page right now, so you have to figure out or use a tool to see what is being passed or expected. The Serialization used in ASMX Web Service is based on XML Serialization; however WCF uses a different mechanism for the same. You can use the old SOAP format (which I used in ASMX Web Service) to post the transaction but you will always get SOAP 1.2 format response. In order to keep consistency, I kept the request format similar to response. </description><pubDate>Fri, 01 Feb 2008 11:04:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=54</guid><author>Vishwa</author></item><item><title>Implementing WCF Service Part 2 - Client</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=53</link><description>I will consume the Customer WCF Service which I developed in Part 1 on &lt;b&gt;WS* Http Binding&lt;/b&gt;, you can implement the best security, transactions and many more things using this way. However, I will consume in a very simplistic way in this post. I assume that you have already deployed the WCF Service under IIS and have a working URL ready to be referenced and you are planning to use the customer WCF service in ASPX web Page. 
</description><pubDate>Sun, 20 Jan 2008 11:01:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=53</guid><author>Vishwa</author></item><item><title>Implementing WCF Service Part 1 - Service</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=52</link><description>As you know, the New Windows Communication Services (WCF) will replace the existing ASP.NET ASMX Web Services. So, it will be wise to plan it from today as how to transit in this new service model era.  I first tried experimenting with WCF Service almost a year ago with the release of .NET 3.0 but VS 2005 and VISTA did work happily on my machine but now I like VS 2008.  I revisited WCF again with the release of .NET 3.5, all the sample available on the web are either old or do not give enough information if you are looking for information as how to use this service in different way over different protocol, which can closely mimic a small real word example .  So, I had to spend hours trying to find solutions and put the pieces together. So, I finally thought to create an example to help others who are facing the same situation. I have tried to closely mimic the ASMX Web Service uses, which I posted in my earlier post because most of us will be planning to convert from existing old one.  With all the experiments &lt;b&gt;I would give one key Mantra for WCF, dig the Config file specially to understand how to configure BEB (Binding, Endpoint and Behavior)&lt;/b&gt;. This example deals with CRUD operation on Customer data which I used in earlier post. For the simplicity I am using XML file for the data source and will consume this service with WS* Standard, SOAP based XML POST, Plain Old XML (POX) and HTTP GET and POST. I believe these are the common uses along with TCP, named pipe and MSMQ.</description><pubDate>Sat, 19 Jan 2008 11:01:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=52</guid><author>Vishwa</author></item><item><title>Implementing ASMX Web Service Part 2 - Client</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=51</link><description>In this post, the &lt;a href="http://www.vishwamohan.com/ShowArticle.aspx?ArticleID=50"&gt;web service created in Part 1&lt;/a&gt; will be consumed into a web page through Server Side Web Service Integration, Client Side SOAP XML HTTP Post, HTTP Form Post and Get. Following are the steps.

</description><pubDate>Fri, 18 Jan 2008 11:03:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=51</guid><author>Vishwa</author></item><item><title>Implementing ASMX Web Service Part 1 - Service </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=50</link><description>You must be wondering, that in WCF era ASMX Web Service! I wrote the first one 5 years ago and now trying to move them to WCF Service, but lot of companies have not even adopted the web service and some have only started adopting it recently, and now they realized that a new era has come.  I will discuss my experiments &amp; experiences with WCF in later posts. However, I would like to post a simple Customer ASMX Web Service and then consume it by a ASP.NET Web Page via Server Side and then Client Side using direct SOAP based XML through HTTP Post.  Later, I will create a similar WCF Service with exactly same methods and will access the data exactly same way.  Remember this is not a simple HelloWorld Example, this Web Service deals with primitive data type as well as complex one. How far you would like to dive deep into it, will be up to you.</description><pubDate>Thu, 17 Jan 2008 11:02:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=50</guid><author>Vishwa</author></item><item><title>Shaam-e-Sargam Audios</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=49</link><description>Today, I thought to post some of the songs which I sang and recorded for our Shaam-e-Sargam musical evening.  These Windows Media Audio files will show up with Internet Explorer only.</description><pubDate>Sat, 12 Jan 2008 10:25:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=49</guid><author>Vishwa</author></item><item><title>Catch Your Application Errors </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=48</link><description>You must be thinking that your web site is working great and generating no errors. But have you ever tried catching errors on Application_Error event in Global.asax, it catches all unhandled errors. Try applying the following code, and you will be amazed to see that your site is generating some errors which you were not even aware of. The following method will dump all the erros into a XML file which will be create on montly basis. Initially I was sending these errors to my email, but it is not easy to analyze all the data at once. XML file can be imported in Excel easily and you can fix the code which is generating more errors.</description><pubDate>Thu, 10 Jan 2008 11:03:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=48</guid><author>Vishwa</author></item><item><title>Create XML Data file with Element vs. Attribute Format </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=47</link><description>You can choose to create a XML file in which detail records are represented as Elements or Attributes only. It is wiser to use the best use of both, more use of attribute reduces the size of xml file and increases the speed over wire. Representation of data in Elements only XML file becomes heavier in file size thus slower the transmission. The only benefit is when you open this file in browser it is relatively easily to read. Following are an example for creating a file with same information in two different ways.</description><pubDate>Wed, 09 Jan 2008 11:17:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=47</guid><author>Vishwa</author></item><item><title>Certificate Error: Navigation Blocked</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=45</link><description>There are some situations especially in development or QA environment when you would to like ignore the SSL certificate. Generally this warning occurs when SSL certificate is either assigned to a different domain name, IP Address or self signed. You will most likely see the one of following error or warning messages when information is posted manually through Internet Explorer or FireFox browser. 
</description><pubDate>Sat, 05 Jan 2008 09:26:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=45</guid><author>vishwa</author></item><item><title>Welcome to my New Blog</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=44</link><description>Hello friends, this is Christmas and New Year time.  I wish you a &lt;b&gt;Merry Christmas and Happy New Year&lt;/b&gt;.  So, thinking of giving gift to this Blog, I planned to experiment with a new Blog which is based on BlogEngine.Net. I am planning to keep this new blog mostly for technical posts only.  This is currently available at &lt;a href="http://www.vishwamohan.net" target="_blank"&gt;Vishwamohan.NET&lt;/a&gt;. </description><pubDate>Mon, 24 Dec 2007 12:43:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=44</guid><author>vishwa</author></item><item><title>Swami Vivekananda ? Chicago Speech - Audio</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=43</link><description>Swami Vivekananda was the first Spiritual Master who introduced the knowledge of Vedas in the West. He started this movement of spiritual connection of East and West. Later, many spiritual masters followed his path and still continuing. I had only read his speeches in books but today I found audio version on web which were given by beloved Swami Vivekananda more than a century ago (Sept 11th - 27th, 1893) at World Parliament of Religions in Chicago. It gives me an immense pleasure to collect these links from Web and put them together for everyone. 
</description><pubDate>Mon, 03 Dec 2007 03:48:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=43</guid><author>Vishwa</author></item><item><title>Using XMLWriter and XMLReader </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=42</link><description>This is a simple example for demonstrating how to use XMLReader or XMLWriter for reading or writing a XML file or XML String. I am using a Customer Entity which was created in previous examples.</description><pubDate>Fri, 02 Nov 2007 02:13:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=42</guid><author>Vishwa</author></item><item><title>Consuming Data Transfer Objects (DTO) in 3 Tier Application ? Business Object Layer</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=41</link><description>I will be consuming the data which was returned by Data Access Layer in the form of &lt;b&gt;XML, Dataset, DataTable, ArrayList and Custom (Data Transfer) Objects &lt;/b&gt; to populating my Business Object, which will be finally consumed by a User Interface and most likely a web page.  

In this example, I will use only one class, which will perform the CRUD operation on Customer Object by invoking method of Data Access Layer. Since I have added methods in data access layer to return Customer(s) data in form on XML, Dataset, DataTable, ArrayList and Custom (Data Transfer) Object. No matter in which form data is returned from data access layer, the business object will read that object and consume the data to make it ready for business object caller.
</description><pubDate>Sat, 20 Oct 2007 01:14:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=41</guid><author>Vishwa</author></item><item><title>Implementing Data Transfer Objects (DTO) in 3 Tier Application - Data Access Layer</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=40</link><description>When you separate your business layer from data access layer in two different assembly, you come across a situation as which data transfer method will best fit you. In this example, I went through various Data Transfer Objects(DTO) which are currently available in .NET such as &lt;b&gt; XML, DataSet, DataTable, ArrayList and Custom Data Transfer Object &lt;/b&gt;. One DTO generally maps to one Business Object. Each option has its pros and cons, so depending on project one should choose as what best fits the need. In the following code I have tried to use all the four possibilities.</description><pubDate>Thu, 18 Oct 2007 01:02:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=40</guid><author>Vishwa</author></item><item><title>A Shaam-e-Sargam Evening @ Emory University</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=39</link><description>I can say it is a mere coincidence that on the day of Ganesh Chaturthi , I got an opportunity to sing the very first time in my life publically on stage. This was an annual event organized by of our local Shaam-e-Sargam group at Emory University, White Hall in Atlanta, GA. </description><pubDate>Sun, 16 Sep 2007 10:27:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=39</guid><author>Vishwa</author></item><item><title>I Salute You Missile Man </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=38</link><description>On the eve of 60th Independence Day of India, I would like to post a speech of our outgoing President Dr. Abdul Kalam. He is one of the great sons of India.  One may respect him because he was President of India, but I have a deep respect and admiration for him because of his genuine contribution in growth of our nation. He is a true Bharat Ratna (Jewel of India). I was privileged to see and listen to him in person on Feb 19, 2006 in Bangalore, India. His speech touches the heart. I would like to share one of them today.</description><pubDate>Tue, 14 Aug 2007 11:04:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=38</guid><author>Vishwa</author></item><item><title>Freeze Column in GridView</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=37</link><description>The following example will demonstrate as how to freeze or fix one or more column in a GridView. I have used stylesheet to achieve this result.  At present this solution only works in IE 7.0. The data source is a xml file containing product sales result.</description><pubDate>Sat, 04 Aug 2007 11:10:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=37</guid><author>Vishwa</author></item><item><title>Find Permission on all objects</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=36</link><description>I came across a situation where I had to find all the stored procedures or user defined functions that do not have ?execute? permission under a particular user. Here is a simple SQL Statement one which can be used under SQL Server 2005 to find those objects.</description><pubDate>Wed, 18 Jul 2007 11:42:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=36</guid><author>Vishwa</author></item><item><title>Speed Test: Generic List vs. ArrayList</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=35</link><description>It is very important to evaluate the most efficient way of passing data between layers. Many people recommend using ArrayList, some Generic List. But which one is the most efficient way to use?  I thought to perform a speed test between Generic List and ArrayList in VS2005. Some people blindly accept that ArrayList is the fastest way. But is it true? Let?s have a real test by reading and writing hundred thousand records using each type and see the outcome.  Knowing the fact that Collection, Data Table and XML is slower than these two but how much? Let?s put them to test too and compare the result. </description><pubDate>Sun, 08 Jul 2007 09:07:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=35</guid><author>Vishwa</author></item><item><title>Enterprise Solution - Architecture, Design and Patterns</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=34</link><description>It has been 20 years since the concept of Enterprise Architecture was first introduced in IT industry to provide an Enterprise Solution.  I got an opportunity to present my thoughts on &lt;b&gt;Architecture, Design and Patterns for Enterprise Solution.&lt;/b&gt; In this presentation, I have tried to cover the architecture which were followed in the past as well as currently being used now in this evolving IT industry. Thus, it also covers the &lt;b&gt;new paradigm&lt;/b&gt; of developing an application where main IT players such as Microsoft, Sun etc. are suggesting and implementing the new architecture which looks like the best solution of IT industry today. </description><pubDate>Thu, 05 Jul 2007 02:53:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=34</guid><author>Vishwa</author></item><item><title>Code Review Template</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=33</link><description>It has been always a challenge in a development team to come up with a &lt;b&gt;Standard Code Review Template for .NET.&lt;/b&gt; I struggled with the same issue and hence researched on the web to find out some code review guidelines which can help each developer and development team to evaluate those important criteria for a better development practice. This template also provides some important links to a developer to follow as a &lt;b&gt;set of guidelines &lt;/b&gt;based on standard practices.</description><pubDate>Mon, 02 Jul 2007 01:44:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=33</guid><author>Vishwa</author></item><item><title>Log SQL Connections and Locks</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=32</link><description>You might have come across situation when you wanted to log SQL Connections and Locks for a particular day or period. In the following example, by using two tables and one stored procedure, you can log these activities and analyze at a later time. This stored procedure can be turned into a SQL Job for any given interval so that you do not have to manually run it.
</description><pubDate>Mon, 25 Jun 2007 10:27:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=32</guid><author>Vishwa</author></item><item><title>Calculate the table size and number of rows </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=31</link><description>At some point you might need to know, how many tables you have in database, number of rows in each table, size of table and indices. Following is a simple SQL Script which can provide you a snapshot of all such details.</description><pubDate>Fri, 01 Jun 2007 10:47:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=31</guid><author>Vishwa</author></item><item><title>Server Error: HTTP Error 500.19 - Internal Server Error</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=30</link><description>You might have come across this error while working on a WCF project on Vista, IIS 7.0 with Visual Studio 2005. Actually Microsoft has tightened the security on VISTA and most of the time it is annoying when it asks your permission. Following is the detail error message I received while trying to run a WCF project, however I found a simple solution to fix it.</description><pubDate>Sat, 26 May 2007 08:25:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=30</guid><author>Vishwa</author></item><item><title>AJAX Error: 'Sys' is undefined</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=29</link><description>If you are using AJAX enabled web site or project, you may come across this error message. I got this error message too and spent few hours to fix this problem. I tried finding all possible solutions on Google and finally concluded with following three steps.</description><pubDate>Mon, 07 May 2007 12:57:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=29</guid><author>Vishwa</author></item><item><title>Let?s Face It</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=28</link><description>In our life, we face problems every day. Most of them are created by our own actions. Many times we get scared by just thinking, how will we handle it, what are we going to do or what will happen to me? We immediately start thinking of either getting rid of the problem some way or other. But no matter what, problem does not disappear on its own we have to go through the problem, whether we like it or not.  At the end of each problem, they make us stronger and give us an ability to face much bigger problem in life. </description><pubDate>Mon, 30 Apr 2007 03:12:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=28</guid><author>Vishwa</author></item><item><title>ADO.NET ? Best Practices for Data Access </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=27</link><description>This article will first talk about top 5 best practices you should use while accessing database and then demonstrate how to properly use SqlConnection, SqlCommand and SqlDataAdapter objects while working with data using stored procedure or inline SQL for optimal performance. &lt;br/&gt;
</description><pubDate>Thu, 29 Mar 2007 07:23:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=27</guid><author>Vishwa</author></item><item><title>XML String, Dataset and Class Manipulation</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=26</link><description>I have written some useful ready to use functions in a Helper Class which can be used in XML string manipulation. These functions include following abilities :&lt;BR/&gt;&lt;b&gt;
Get XML data string from/to a class &lt;BR/&gt;
Set/Remove CDATA in XML String &lt;BR/&gt;
Clear All/Limited Special Characters from XML string &lt;BR/&gt;
Set/Remove Root Node to XML String &lt;BR/&gt;
Get Inner XML/Text on Relative Path &lt;BR/&gt;
Get XML Document to/from an object &lt;BR/&gt;
Get Custom Dataset from/to XML string &lt;BR/&gt;
&lt;/b&gt;&lt;BR/&gt;</description><pubDate>Tue, 27 Feb 2007 02:28:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=26</guid><author>Vishwa</author></item><item><title>Dynamic Gridview Generation at run time</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=25</link><description>In this example, a Gridview is generated at run time with customer list with bound field columns. It also creates a HTML table dynamically. Most of the properties can be easily controlled at run time. I am using Customer Business Object which I created for my earlier posts.</description><pubDate>Wed, 07 Feb 2007 09:01:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=25</guid><author>Vishwa</author></item><item><title>Error : Internet Explorer cannot download ... </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=24</link><description>If you see Error message : &lt;b&gt;Internet Explorer cannot download "filename" from "Servername" &lt;br/&gt;Internet Explorer was not able to open this Internet site. &lt;br/&gt;The requested site is either unavailable or cannot be found. Please try again &lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
Then, this error usually occurs sometime while downloading a document which can be in form of PDF file, Doc file, XLS or text file. There are at least 4 possible reasons which can cause this error. I have also found their solutions. My assumption is - you are running your web site on IIS.</description><pubDate>Tue, 16 Jan 2007 11:05:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=24</guid><author>Vishwa</author></item><item><title>What Are Your Priorities?</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=22</link><description>Each of us get only 24 hours of the day in our daily life, some succeed in their life and some not. Have we ever thought that what makes someone to reach at the top and some just keep struggling? I think the most important thing is ? how we give &lt;b&gt;priorities&lt;/b&gt; to certain things in our daily life, it can be career, friends, family or anything. I heard this story from friends and then read it on the web; I thought it to put it here. This story also teaches the &lt;b&gt;Time Management&lt;/b&gt; and it has been taught in many universities around the world.</description><pubDate>Sat, 06 Jan 2007 10:20:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=22</guid><author>Vishwa</author></item><item><title>Managing Users and Roles</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=21</link><description>The following example will demonstrate as how to manage registered users, activate or deactivate them assign or remove role(s) in ASP.Net. My assumption is, you already have a page which allows users to register and now you would like to activate the user and assign a role so that they can login to your web site. I have created two page, which resides in Admin area of web site.  You will be required to make some changes such as Master Page File, Namespace, Base Page and Content Place Holder ID etc. in order to properly compile and work with you project.  The first page will allow you to search and find one or more registered users and second page will allow you to activate and assign a role.&lt;br/&gt;&amp;nbsp;&lt;br/&gt;</description><pubDate>Fri, 05 Jan 2007 11:01:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=21</guid><author>Vishwa</author></item><item><title>Contradictions in Bhagvad Gita</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=19</link><description>Truth is contradictory; if it is not contradictory then it is not truth! Bhagvad Gita is full of contradictions. You can understand it only if you see it in totality. </description><pubDate>Mon, 01 Jan 2007 11:29:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=19</guid><author>Vishwa</author></item><item><title>Error "System.Web.HttpException: Maximum request length exceeded"</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=18</link><description>I have come across this error multiple times at work. This problem occurs because the default value for the maxRequestLength parameter in the &lt;b&gt;&lt;httpRuntime&gt;&lt;/b&gt; section of the Machine.config or Web.Config &lt;b&gt;file is 4096 (4 megabytes).&lt;/b&gt; As a result, files that are larger than this value are not uploaded by default.</description><pubDate>Sat, 30 Dec 2006 10:40:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=18</guid><author>Vishwa</author></item><item><title>IIS 6 File Upload/Download Issue</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=23</link><description>When trying to upload files over 200KB on IIS 6 the file may never upload and you either get an error or are sent to a blank screen.  By default Windows 2003 server limits file uploads to about 200KB in size.  To overcome this limit you must edit the IIS metabase.xml file. &lt;br/&gt;&amp;nbsp;&lt;br/&gt;</description><pubDate>Sun, 24 Dec 2006 10:42:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=23</guid><author>Vishwa</author></item><item><title>Export GridView Data to MS-Excel </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=12</link><description>In the following example, I will demonstrate how to export GridView Data into MS-Excel using VB.NET. It uses the same business object to select data from database. I have simply formatted the GridView control from previous example. &lt;br/&gt;&lt;br/&gt;

</description><pubDate>Sun, 17 Dec 2006 08:19:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=12</guid><author>Vishwa</author></item><item><title>The Four Wives </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=7</link><description>Once upon a time, there lived a king who had four wives.

He adored his fourth queen so much that he always used to gift her with loads of ornaments and other such adornments. She was inseparable from the king and a perpetual accompaniment wherever he went.
</description><pubDate>Sat, 02 Dec 2006 12:13:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=7</guid><author>Vishwa</author></item><item><title>The Word Hindu and India </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=8</link><description>The word 'Hindu' is NOT a Sanskrit word. Numerous scholars say it is not found in any of the Vedic literature. So it is important to know how such a name can truly represent the Vedic culture. And without the Vedic literature, there is no basis for ?Hinduism.? Similarly, the name ?India? did not come from any Indian language or culture. So let?s find out their origin.</description><pubDate>Tue, 28 Nov 2006 12:15:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=8</guid><author>Vishwa</author></item><item><title>Types of Karma </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=6</link><description>The word Karma came from Sanskrit word ?Kri?, it means ?to do?. Karma means not only action, but also the result of an action. The consequence of an action is a part of the action, and cannot be divided from it. Karma is a neutral, self-perpetuating law of the inner cosmos.
</description><pubDate>Mon, 27 Nov 2006 12:10:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=6</guid><author>Vishwa</author></item><item><title>Understanding 3 Tier vs. 3 Layer Architecture </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=13</link><description>The terms tier and layer are frequently used interchangeably, but actually there is a difference between them: &lt;b&gt;Tiers indicate a physical separation of components, which may mean different assemblies such as DLL, EXE etc on the same server or multiple servers;&lt;/b&gt; but layers refers to a logical separation of components, such as having distinct namespaces and classes for the Database Access Layer (DAL), Business Logic Layer (BLL) and User Interface Layer (UIL). Therefore, tier is about physical separation and units of deployment, and layers are about logical separation and units of design.&lt;br/&gt;</description><pubDate>Tue, 21 Nov 2006 12:31:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=13</guid><author>Vishwa</author></item><item><title>Developing 3 Tier Application in .NET 2.0 ? Part 3 </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=14</link><description>In this section, I will connect Business Logic Layer (BLL) to Data Access Layer and then User Interface Layer (UIL) to Business Logic Layer (BLL).
&lt;br/&gt;
Note: If you are developing an enterprise application please see my next article on ?Understanding 3-Tier vs. 3-Layer Architecture?.

</description><pubDate>Sat, 18 Nov 2006 10:38:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=14</guid><author>Vishwa</author></item><item><title>Developing 3 Tier Application in .NET 2.0 ? Part 2 </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=15</link><description>In this section, I will show you how to connect Data Access Layer(DAL) to previously designed database customer table in Part -1. But in order to access the database we will require connection string, so let's define the connection string called ?LocalSqlServer? in web.config file.
</description><pubDate>Wed, 15 Nov 2006 12:09:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=15</guid><author>Vishwa</author></item><item><title>Developing a 3 Tier Application in .NET 2.0 ? Part 1 </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=16</link><description>This is an example for creating a 3-tier web application. You can add additional tier to the base design but a traditional 3-tier app mainly refers the following: &lt;br/&gt;</description><pubDate>Tue, 14 Nov 2006 12:13:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=16</guid><author>Vishwa</author></item><item><title>Surya Namaskara - Sun Salutation </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=4</link><description>Surya Namaskar, or the Sun Salutation is composed of a series of twelve yoga postures performed in sequence. Last five yoga postures are basically repetition of first five yoga asanas in reverse order.

Surya Namaskar was not a formal part of traditional Hatha Yoga, but it has so much value that it has been now accepted as a part of Hatha Yoga. It is generally now used as a warm-up exercise before the asana practice. If there is a shortage of time, just Surya Namaskar practice provides substantial benefit.</description><pubDate>Sat, 11 Nov 2006 10:36:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=4</guid><author>Vishwa</author></item><item><title>People Responsible for Your Birth </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=9</link><description>Each of us on this planet earth is proud of our own identity. Some are identifying on the basis of their race, skin color, religion, culture, community, rich, and poor. Some people are creating groups based on life style etc. But have we ever thought that how many people were born over generations to just create YOU? They could be from diverse backgrounds.
</description><pubDate>Wed, 01 Nov 2006 10:35:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=9</guid><author>Vishwa</author></item><item><title>We're All Cracked Pots </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=11</link><description>A water bearer had two large pots, each hung on the ends of a pole which he carried across his neck. One of the pots had a crack in it, while the other pot was perfect and always delivered a full portion of water. &lt;br/&gt; &lt;br/&gt;</description><pubDate>Tue, 31 Oct 2006 12:33:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=11</guid><author>Vishwa</author></item><item><title>Basic Yoga for Daily Life </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=3</link><description>I had stared doing Asanas on my own through reading the books. But for many years I always struggled in deciding as how many Asanas I should do everyday for a healthy life. According to scripture there are more than 8 million Asanas. So, it is impossible for an individual to do all the Asanas everyday. So, it is impossible for an individual to do all the Asanas everyday. So I decided to do research and talk to experienced Yoga teachers. And finally, a teacher from one of the best schools of yoga suggested me that just 12 basic postures brings out the essence of all major Asanas.
</description><pubDate>Sun, 29 Oct 2006 12:07:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=3</guid><author>Vishwa</author></item><item><title>NET 2.0 Email </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=17</link><description>As you know .NET 1.x used System.Web.Mail namespace which was a wrapper around old CDONTS and CDOSYS dlls. Microsoft.Net 2.0 introduces System.Net.Mail Namespace which is written from the ground up without any interop. So, it is not dependent on COM libraries. In most cases you face with situations for sending a simple email with plain text, with attachment or authenticated email. I wrote this example in three simple subroutines. Depends on your need or you can use either one or mix and match. There is more variety or flavors can be added like Cc, bcc, html format with or without images etc. I targeted the common uses.

</description><pubDate>Sun, 22 Oct 2006 02:56:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=17</guid><author>Vishwa</author></item><item><title>Spiritual meaning of Swastika </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=5</link><description>A recent experience happened with my friend made me to think and write this article to educate those people who are not fully aware of the Swastika symbol used by different cultures and traditions. The word &lt;b&gt;?swastika? &lt;/b&gt; comes from the Sanskrit word Svastika. The true meaning is given as
</description><pubDate>Sat, 07 Oct 2006 10:33:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=5</guid><author>Vishwa</author></item><item><title>Understanding Yoga </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=2</link><description>Yoga is a Sanskrit word, it is derived from the root word 'Yuj', which means to unite. It refers to the union with the divine by integration of mind, body and spirit. The history of yoga can be traced back to Rig Veda. Rig Veda is one of the four texts which are the basic foundation of Sanatan Dharma (Eternal Religion), now commonly known as Hindu religion. Veda means knowledge and Rig Veda is the world's oldest known text of any Indo-European language. The knowledge of Vedas was preserved in India for more than 10,000 years by oral tradition alone and was not put in writing until 1700 BCE. </description><pubDate>Mon, 02 Oct 2006 01:24:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=2</guid><author>Vishwa</author></item><item><title>Footprints </title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=10</link><description>You might have read this beautiful story but I wanted to share it anyway. Here it goes... &lt;br/&gt;&lt;br/&gt;

One night a man had a dream. He dreamt he was walking along the beach with the Lord. Across the sky flashed scenes from his life. For each scene, he noticed two sets of footprints in the sand: one belonging to him, and the other to the Lord.
</description><pubDate>Mon, 02 Oct 2006 12:31:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=10</guid><author>Vishwa</author></item><item><title>Welcome !</title><link>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=1</link><description>Welcome to my Personal Web Site. Today is an auspicious day.</description><pubDate>Sun, 01 Oct 2006 10:31:00 GMT</pubDate><guid>http://www.vishwamohan.com/ShowArticle.Aspx?ArticleID=1</guid><author>Vishwa</author></item></channel></rss>