Technology trends you should know

After getting positive feedback on : https://kiranpatils.wordpress.com/2011/09/29/why-we-need-windows-communication-foundation/
https://sitecorebasics.wordpress.com/2015/04/04/sitecore-multisite-basics/
Thought to spend sometime to write a new comic on Technology trend! So, If you would like to learn about Latest technology trend then  this article is for you
Before you go further I would like to mention that this article would have not been possible without this article from Tess : https://blogs.msdn.microsoft.com/tess/2015/11/12/mastering-asp-net-5-without-growing-a-beard/
So. If you liked this article then the credit goes to her and NOT me. Because I just converted those learnings in comic — So, you enjoy reading it!
Let’s go!
In a small town there used to be a guy. Who was very had working. His name was Mr.Earner he was very busy in his project and personal life (like you!) and when one fine evening he was reading about latest technology trend. He felt that he left behind the technology trend. So, he went to church and prayed to Jesus for showing him path!
As always Jesus listens him and guides him to talk to Mr. Learner — Mr. Learner is a famous in town for his knowledge and knowledge sharing skills.
TT1
TT2
TT3
TT4
TT5
TT6
TT7
TT8
Keep learning, Keep Sharing!
Happy Coding! 🙂

You've been promoted from Developer to a Team Leader?

TeamLeaderLast year during this time, I was packing my bags for an unexplored journey. Before I was signing off, champs  asked me to share my learnings of Transformation from Developer to a Team Leader. Their wish was my command! I did that and they liked it so much!
I was checking few old folders [At times, you should try this. Rather than surfing the web – FB,Twitter, Google, Mails. Try to surf folders from your machine. You will find a gold out of it! It recharges you. And it’s always good to STOP and look back!] and found that same document. I thought rather than having it with me. Why don’t I share with you! And that’s how this post came in to this world.
Since starting of my career, I was always a developer. Who would like to solve most complex business solutions. And convert Software Blue Print in to reality. While working lot of people asked, you are planning to be a Team Leader or Manager? When there was an internal openings for such places, people used to ask me. Have you applied? And the answer was always NO. As I was clear that will never go in to managing people. The reason for that was my myth. As per my perception Leaders/Managers should be :

  • Able to get angry on people
  • Should have shouting and dominating nature
  • Most of the time Political
  • Person who always sits at the other side of the Table
  • Doesn’t get involved in Development
  • Does Micro Management

And as far as my knowledge, I was far far far away from all above qualities. And still today I love spending most of the time with Visual Studio. Which I was afraid that I won’t be able to spend. And as it is said that “Human Plans and God Laughs“. Everything is already scripted! [The Wold is Stage, Life is Drama, We are Actors, God is Director]. One fine day, the need of an hour was.  I have to lead the team. When I’ve been asked — Would you like to lead? The first answer was NO. But finally after discussing a lot. I’ve thought to give it a try! [Would like to Thank you! To all the people who identified a leader within me — Please remember Only Good leader’s eyes can spot other potentially good leader!]
Long story short, Here I am in the role of a Leader from the role of a Developer.  I was not sure. How I will do it. But one thing I was sure. Will give my best to it! [Do your best, forget the rest!] and I was lucky that I got a chance to lead few of the best people I know!
As per the rule of Change, It is initially tough! [“All change is hard at first, messy in the middle and gorgeous at the end” – Robin Sharma]. But leadership is NOT as tough as I was thinking of. If you are thinking Can I lead? The answer is here : Yes, If you can breathe you can lead! But please be aware leading is sacrificing!

I believe that, Building Nation’s responsibility is on — Parents, Teachers, And Leaders — as per your life’s stage. They play a crucial role in our society! [If as a leader, you’ve insulted someone in public or you had a bad day for some one in office. That frustration shows up in that person’s personal life as well. As per stats 90% of people in the world are NOT Happy with whatever they are doing — I believe few might got caught in to a wrong job, and few of them might got caught in to wrong leaders]
I’ve already written my thoughts on Leadership in my earlier posts:

As per my experience and observation, have worked with few nice leaders (and at the same time few bad as well!) and would like to thank both of them. Because knowing what not to do takes more time than knowing what to do! 🙂 and the other ones helped me to do so very quickly! In this blog post, will try to summarize the characteristics of a good leader [what I’ve seen], it’s solely based on my observations and reading whatever I had during my working experience as a leader since 2 years!

As per my above blogs, I took learnings from :

  • Good Leaders with whom I worked! — They taught me What to do?
  • Bad Leaders with whom I worked! — They taught me What NOT to do?
  • Lessons from Best Public Leaders/Icons, History — By their life examples, Reading from their book
  • Sports — Sports makes us good team player/leader
  • Started treating others, The way I wanted to be treated
  • And the best example to remember is — Leading is like parenting!

So, you are also in same situation? Eager to know what was my learnings? Eager to see what I shared with champs? Looking for some points, what all things you should take care when you start as a leader?

Disclaimer : This is based on my learnings. I am not expert on this subject. But few basics which I learnt through my journey and have noted it down. Which I am sharing with you. So, if you think something might not work for you. Feel free to ignore it

Let’s go! (Just a note : will write pointers or one liners only. In future, will expand few points from following list If you think you need detailed explanation on any pointer, feel free to drop it in a comment) :

  • Basic characteristics which a leader should have :
    • Good human being : You can’t be a good professional, without being a good person first!
    • Good Listener — God has given two ears, and one mouth. So, speak less and listen more!
    • Patience — You need to have full patience!
    • Stithpragya — This one is from Hindu scripture– Shreemad Bhagvat Geeta – This word is used for someone who doesn’t get so much excited on Winning and doesn’t gets down on losing — Read more here : http://bhagwadgita.nimblefoundation.org/what-we-learn-from-bhagwad-gita-chapter-3/
    • Self motivated – Need to motivate team, When they are down!
    • Control your emotions/Channelize your anger : At times your role comes with lot of frustration, Anger etc. But that’s part of it. You’ve to find a way out of it. So, spend quality time with Family, Friends, Listen Music which recharges you, Read books which talks to you – Books are your best friends! — I always get most of the critical solutions while reading one of my favorite book!
    • Honest, Transparent : If you are driving a car, will you drive it. If you can’t see the road because of foggy or something? No, Correct? Then how you can expect people to follow you. When  things are NOT Transparent. Honesty and Transparency people always like to have! [Honesty is still the best policy!]
  • Initial meeting : Talk to your team first. What are their problems? What makes them happy? What makes them unhappy? What they would like to change? What are their old open issues? Old promises? Take a note of them. And act on them ASAP. These points are your first and important project. If you can’t do something, please update team with logical reasons.
  • New Place always full : When you go at new place it will be always full. People to whom  you are going to lead. Will say. Why we need a leader. We are doing our things perfect? Aren’t we? They are right. But do you know story of  – Kissa-I-Sanjan? : Read here : http://delhiparsis.com/2007/08/19/the-story-of-sanjan-kissa-i-sanjan/ — So, You’ve to be Sugar in the Milk
  • Understand the process first : Initially Understand everything and then try to improve the process. I’ve seen that, lot of leaders join new place/role and try to change everything. Based on their past learnings. But do you know that, One Size Shirt, doesn’t fit for all?
  • Reading : Keep reading, Switch off everything just 30 minutes to read, it will enrich you, boosts you! – “Reading is to the mind what exercise is to the body” – Story of a wood cutter
  • Understand And Analyze : When you’ve to take any decision. First, try to understand, Analyze and then conclude. Good story to read : http://rishikajain.com/2012/05/16/a-heart-touching-story-with-moral-and-inspiration/
  • Be on TOP of Everything : Be Technically Strong and have full knowledge of everything! – I know you can’t master everything. But you should be on top of everything! – Be expert! Good leaders are the one who are ready to roll their sleeves and start working if their team needs it.
  • Stand Firm : Stand firm in tough time – Leaders are like TEABAGS This is the time, When your TEAM really needs you. And based on this time’s stand. People with respect you or NOT respect you
  • Let them fail : At times, let them fail! – Story of a baby Giraffe
  • Small things matters : Team’s small issues are Important may it be Cupboard, Mouse etc.
  • Act promptly :  No one likes a leader, who just takes an issue and works on it for ages, we are living in 4G world 🙂 Take a decision and act on it!
  • Appreciate in public : Appreciate team, Make sure they are always highlighted and NOT You
  • Criticize in Private : Appreciate [Public]/Criticize[1:1] on time. Give them honest feedback (We Indians have to learn about Constructive feedback) – Don’t go and shout on people. Explain them specifically what was NOT right? And how can you help them. So, it doesn’t happen again. [Doing mistake is fine. But repeating Mistake is crime!]
  • Focus on Basics : Whatever complex the situation is — Always stick to basics. Most of the times follow your guts/Intuition — They know what you want or should do. [“Have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.” – Steve jobs]
  • Know your Team : Know your team very well. Individual’s Strengths and weakness. Their likes and dislikes. It is proven that if you give people stuff what they like. They do it by heart! I call it Know your weapons. – Do it Krishna way [This is again from Hindu scripture — Mahabharata – Where Shri Krishna assigns tasks to individual as per their strength. Like if some task needs more Strength — it goes to Bhim — as he was the strongest in Pandavas. But if it needs focus then it goes to Arjuna — As he was the Sharpest in Pandavas ]  – Because If you give someone what he/she likes he/she will enjoy!
  • Make them feel safe and trust them – No one would like to work with leader who can’t cover them from outsiders. Who is NOT Strong enough to fight for their teams. Good to watch : Simon Sinek: Why good leaders make you feel safe Fight for their rights, Even though you need to get wounded for that. At times, when someone is not in form. Help him/her out and boost them up! Rely/Trust on your champs always!
  • Know them personally – Don’t always talk about WORK, WORK, WORK — Know them personally. It will help you to understand them more. What’s their personal likings.
  • Do their tasks on time : If you promised them something to happen by some date. Make sure you do it. If their appraisal is due. Do it first. Remember Lead by Example? If you do their tasks on time, Then only they will do yours!
  • Use Technology as much as you can : Use Softwares like Google Doc/Excel/Outlook calendar to manage and remember tasks – And keep space in your mind! Learn Outlook and office softwares! They are your friends!
  • Share Expectations : Share your vision, and work for a common goal, Convey them! I’ve seen people shine when they know what exactly is expected from them. Clear expectations from both side – Rather than explaining this is not right. Be specific!
  • Share knowledge : Don’t feel insecure – Good leaders create good leaders other create followers!
  • Chunks : When you are working/going to start working on any task. Try to create small chunks of it. Ask your team to do the same. It clarifies your and teams understanding. And you will see the flaws, issues before they arise. And gradually your estimates will become more accurate!
  • Sharpen your memory : You need to have good RAM. Because you’ve to keep track of lot of things
  • Promises : Keep note of your promises – It will be a good option not to promise rather than doing false promise
  • Focus on Solution : Always be cool. Even though everything is down! Think on a solution rather than problem source. Never blame anyone
  • Accept Mistakes : Learn from Mistakes, Accept your mistakes! – And even if it’s team’s mistake for outer world, you should take it on your own! – Story by Abdul Kalam
  • Communicate : Always try to be clear in your communications. Small miss communication can create big confusions. And people starts speculating — That’s human nature
  • Be accessible : No one likes a leader, who is not accessible. And always busy with meetings or closed in Cabin. You are because your team is!
  • No False Justification Please : If something you are not convinced, don’t try to convince them. Fix it OR let them know you can’t fix it. And you are not happy. But no false justification. Because they are engineers and they are as logical as you.
  • Everyone is Special : Accept people the way they are — Everyone is special – Never bad mouth your team — NEVER NEVER NEVER do it in front of others
  • Respect Seniors : Respect seniors in your team. Complement them and never try to compete with them
  • Lead by Example – Don’t ask a task to team, which you don’t do!
  • Take decisions for team – for a team not for individual and stand by them and make them true!
  • Say “Thank you” to your team always! – Because whatever you are, is just because of them!
  • Never lose hope – The game is not WON till the last ball – Challenges for which you don’t find solution/direction don’t worry, Just stay on pitch, runs will come automatically – Story of Two Frogs and Milk
  • Leading is like parenting – Take care of your team, And one day step back. See them shining from afar. Remember the way your parent did when they taught you cycling?!

Have I missed something? Does it matches with your good leader’s perception?
Happy Leading! 🙂

How to get Microsoft certification?

Challenge:

Since last couple of weeks, few friends asked me that how can they get Microsoft certification? Any tips and tricks? I replied to them via email or any other source. But as per Scott’s formula [“You have a finite number of keystrokes left in your hands before you die.” – http://keysleft.com/], rather than replying to email write a blog on it. And share the link. So, next time if someone asks same question to me [Or may be you] Can send this blog’s link.

Solution:

So long back — I wrote Microsoft certification quick start guide
This document is a best place to start! Few things have been changed. But the basics remains the same.
If you don’t have time to go through the document, and need a quick summary. here you go!

  1. Target one exam at a time. Visit each exam’s Home Page – Understand what this exam covers. And start preparing. Best way to prepare for MS Certification is MS Press Books. You can find it from each of the following link – Better to have a hard copy. For example you are aiming to give 70-480 exam. It’s exam detail page is here : https://www.microsoft.com/learning/en-in/exam-70-480.aspx check “Skills Measured” section to understand what this exam covers. Check “Preparation options” section for all resources related to this exam.
  2. Select your exam track from here : https://www.microsoft.com/learning/en-in/certification-overview.aspx for example if you are ASP.NET Web Developer then you should go for this track : https://www.microsoft.com/learning/en-in/mcsd-web-apps-certification.aspx
  3. Before you go for exams. Start giving exams from Dumps, Search for your exam. E.g. http://www.examcollection.com/70-480.html there will be the lot of dumps. But I follow this formula to select a best dump [You will need a VCE Software to run this VCE files]:
    1. Select a dump – Which has MOST number of questions
    2. And which got Max number of votes. So, as per this example it goes for Microsoft.Actualtests.70-480.v2013-12-31.by.MARY.169q.vce
      [As it got 169 questions and 162 votes]
  4. Then book your exam slot, Pearson is best!
  5. All the best for your exams!

Happy Certification! 🙂

Basics for .NET beginner developers

Challenge:

Luckily, I’ve been crafting on .NET since last 7+ years. Initially I learnt .NET in college. And then after explored it further during my professional career. Some time back few of my friends asked me, How can they also learn .NET? Which are the best resources to begin with? And then be a .NET Ninja!
You are also learning .NET? Or would like to start learning .NET? Or you work on .NET. But would like to brush up your fundamentals? Then this post is for you!

Solution:

Start with following links :
http://www.pragimtech.com/c-sharp-video-tutorials.aspx
http://www.pragimtech.com/Free-aspnet-video-tutorial.aspx
https://www.youtube.com/playlist?list=PL8598C97BA1D871C1&feature=view_all
https://www.youtube.com/playlist?list=PLAC325451207E3105&feature=view_all
Then move to this :
http://www.learnvisualstudio.net/free/c-training/
http://www.itorian.com/2012/08/LearnDotNet60days.html
http://www.youtube.com/watch?v=W3lHQdoYsUo&list=PL0BB0AD0F12A24B6E
http://en.wikipedia.org/wiki/Common_Language_Runtime
http://en.wikipedia.org/wiki/.NET_Framework
http://www.codeproject.com/Articles/20694/Net-Framework
http://www.codeproject.com/Articles/3992/What-is-NET
http://www.c-sharpcorner.com/uploadfile/puranindia/net-framework-and-architecture/
http://www.completecsharptutorial.com/basic/parameter-examples.php
http://www.microsoftvirtualacademy.com/training-topics/c-app-development
http://www.microsoftvirtualacademy.com/training-courses/c-fundamentals-for-absolute-beginners
http://quickstarts.asp.net/QuickStartv20/default.aspx
http://www.microsoftvirtualacademy.com/training-courses/software-developmentfundamentals#?
fbid=-dwjFvfio5-
– http://www.microsoftvirtualacademy.com/training-courses/database-fundamentals#?fbid=-
dwjFvfio5-
Please note Programming is like swimming. You need to delve in to it. To be a master of it. So, most of the above resources are videos. But would strongly recommend you that. Do practice after watching each video!And here are
And here are some exercises for you:

  1. Create a console application which takes user name as an Input and tells moon sign – as per his/her input
  2. Create a console application which takes a Number – for which user would like to print a Multiplication Table
  3. Anything else?

Few nice to read books:

  1. CLR Via C#
  2. MCTS 70-536 Self-Paced Training Kit – Application Development Foundation
  3. Murach’s ASP.NET

Please remember you can’t be master of .NET/any field over the night. As per research it takes 10,000 hours of deliberate practice to be master of any field. So, have lot of patience. Practice as much as you can! — The harder you practice, the luckier you get!
Also, If possible give Microsoft certification exams — Here is Certification Quick start guide for you!
If you know any other .NET resource, which you think is excellent. And should go in this list. Then please do share it with others via comment!
Happy Programming! 🙂

Dark vs Light Visual Studio Theme

Challenge:

This post is Not on any Technical Coding concept. But it is on Visual Studio – Lifeline of  all .NET Developers! You might think a post on Theme? Sounds funny?! But If you are a developer then you spent most of your time looking at your monitor and mostly Visual Studio! And few developers who are passionate about Code. Might do Code till midnight. In dim light! 🙂 (Yes, I am talking about you!)
If you have following questions:

  1. Why lot of Developers started using Dark theme of Visual Studio?
  2. What should I use Dark or Light theme?
  3. Why should I use Dark theme?

Then this post is for you!

Solution:

I noticed that lot of people have stated using Dark Theme of Visual Studio. I never thought I should try that. But people whom I admire and follow started using that. And I also thought to change it. When I changed it first time.  Haven’t liked it [You know ComfortZone!?] So, rolled back it, But after few days. Don’t know why thought o re-try it. And after that I never thought I should go back to light theme. I am enjoying Dark theme of Visual Studio.
I was just curious to know what people across the Globe uses and recommend. And for that did a quick search and found following articles. Which are really good to read:

  1. http://www.hanselman.com/blog/ChangingYourColorsInVisualStudioNETBlackVersusWhite.aspx
  2. http://weblogs.asp.net/infinitiesloop/Join-the-Dark-Side-of-Visual-Studio
  3. http://ux.stackexchange.com/questions/8153/what-are-the-negative-and-positive-aspects-of-dark-color-scheme

Few excerpts:
The default scheme sports a bright white background color with dark text over it. But monitors these days are brighter than ever. You’re presumably a programmer, so you’ve no doubt had those late but productive coding nights, nights that are lit by only the glow of your monitor. The glow is bright enough to light up the room and cast shadows. Not unlike… a light bulb.
So there you are, staring straight into a strong light source, looking for the few pixels on it which are not illuminated. Can you read the wattage and manufacturer letters on the head a light bulb while it’s turned on? Ahhh… but what if the bulb were black, and only the letters on it were illuminated?
Another benefit someone pointed out to me once — if you’re on a laptop, it saves your battery life! Horray for an extra 20 minutes of mobile coding!
It seems to me the only reason a black-on-white background is so standard is because the GUI was invented to be an analogy to pen and paper. Paper is white. Your screen doesn’t have to be. Don’t conform to the status quo! Plus, it just looks really cool… I think.

Other links:

http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspx
So, Which Color Theme you were using before reading this blog post? And which you will use after reading this blog post? What’s your Visual Studio environment settings?
Happy Coding! 🙂

Country specific phone number validation with ASP.NET

Challenge:

Before few weeks back, I have been assigned a task, Where I need to validate a phone number. Sound simple? Yes it is! But I needed to do it country specific? Now, how it sounds?
Basically, User will have a list of countries to select. And based on his/her country selection he/she will provide phone number and we should validate based on country selection. Sounds challenging? That’s how life should be!
You are also working on such thing and looking for a way to get out of it? Then this post is for you!

Solution:

As per every software engineer’s practice, I started my research and our common friend. Google presented option of using Regex for each country. But it sounded bit complex to me. Then continued my research and found a super hero!
LibPhoneNumber : It’s a library from Google champs to validate phone number (Excerpt from their main page — Google’s common Java, C++ and Javascript library for parsing, formatting, storing and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0 (Ice Cream Sandwich).)
And after reading this description, It attracted me! (To you as well?). It’s good we found HERO. But how to fit him in our picture? Then after doing bit of a research found this two nice components:

  1. http://phoneformat.com/ — Javascript version of Google’s libphonenumber library
  2. http://libphonenumber.codeplex.com/ – C# port of Google’s libphonenumber

This was a Eureka moment. Just plugged both of this libraries with CustomValidator and you are done! So, here’s how CustomValidator clientside and server-side functions looks like:
Blogs
SUGIN
[sourcecode language=”html”]
<asp:<span class="hiddenSpellError">TextBox ID="txtPhone"  runat="server" />
<asp:<span class="hiddenSpellError">RequiredFieldValidator ID="reqTxtPhone"
runat="server" ErrorMessage="Please enter a phone number" Text="*" ControlToValidate="txtPhone"
></asp:RequiredFieldValidator>
<asp:<span class="hiddenSpellError">CustomValidator ID="custPhoneNumber" runat="server"
OnServerValidate="PhoneNumberValidate"
ErrorMessage="Please enter valid phone number"
Text="*"
ControlToValidate="txtPhone"
ClientValidationFunction="PhoneNumberValidate"
/>
[/sourcecode]

[sourcecode language=”javascript”]
/*
This function will be used to validate
Phone Number client side by CustomValidator
*/
function PhoneNumberValidate(oSrc,args) {
// Call PhoneFormat.JS function which takes Phone Number and Country Code
// in ISO 3166-1 format
var isValidNumberOrNot = isValidNumber(txtPhone.value, ddlcountry.value);
arg.IsValid = isValidNumberOrNot;
}
[/sourcecode]
[sourcecode language=”csharp”]
/// <summary>
/// This function will be used to validate
/// Phone Number server side by CustomValidator
/// </summary>
/// <param name="source">Source</param>
/// <param name="args">Arguments</param>
protected void PhoneNumberValidate(object source, ServerValidateEventArgs args)
{
PhoneNumberUtil phoneUtil = PhoneNumberUtil.Instance;
// TODO : EXCEPTION HANDLING
string countryCode = ddlcountry.SelectedItem.Value
if (string.IsNullOrEmpty(countryCode))
{
args.IsValid = false;
}
else
{
PhoneNumber phoneNumber = phoneUtil.Parse(txtPhone.Text, countryCode);
bool isValidNumber = phoneNumber.IsValidNumber;
args.IsValid = isValidNumber;
}
}
</span></span></span>
[/sourcecode]
Just a note : LibPhoneNumber accepts country code in ISO 3166-1 format. But if you’ve drop down Text and Value both in full form e.g. “India” and you need to pass it as “IN” and If it’s not possible to do any change at your DropDown value level then you can use function, Which has been submitted at — https://github.com/albeebe/phoneformat.js/issues/9 It converts CountryName to CountryCode
Happy Phone Number Validation! 🙂

Long-running processes and browser timeout issue (mainly Internet Explorer)?

Challenge:

This week we faced strange issue [Oh yes, Issues are always strange, that’s why we know them as an issue! :-)].
Basically we were running a long running operation on server and in between our browser displayed “Internet Explorer cannot display the webpage” page. (Needless to say, we are using Internet Explorer)  We checked at our server-side (logs, sql connection, web  server etc.) and everything was perfect! We were clueless whether our server operation got completed or not.
If you are also facing this same issue, then keep reading we have a solution for you!

Solution:

Okay, so we were clueless what to do? Then suddenly it stroked in my mind. As IE shown this error page, why not try the same process with Firefox? [So long back faced similar issue and tried with FF and it worked. But at that time never researched why it worked!]
And you guess what? It worked for us. i.e. the same process got completed without changing anything on server-side code!
Okay, so we were happy as our task got completed. But we were not sure why it worked. [And my colleague Muktesh asked me a question, why it worked?].
Really good question! Then I started my research and found something interesting to share with all of you! Really interesting to read here you go:
Following Stackoverflow thread has some good points on this:
http://stackoverflow.com/questions/633075/browser-timeouts-while-asp-net-application-keeps-running

CAUSE
By design, Internet Explorer imposes a time-out limit for the server to return data. The time-out limit is five minutes for versions 4.0 and 4.01 and is 60 minutes for versions 5.x, 6, and 7. As a result, Internet Explorer does not wait endlessly for the server to come back with data when the server has a problem.

Internet Explorer imposes a time-out limit for the server to return data. By default, the time-out limit is as follows:

Internet Explorer 4.0 and Internet Explorer 4.01 5 minutes
Internet Explorer 5.x and Internet Explorer 6.x 60 minutes
Internet Explorer 7 and Internet Explorer 8 60 minutes

When the server is experiencing a problem, Internet Explorer does not wait endlessly for the server to return data.
Source : http://support.microsoft.com/kb/181050
Proposed Solution: Found some good links which gives some solutions which you can try [Frankly, Haven’t tried them on my own, try at your own risk! — I strongly recommend to use Firefox]

http://intersoftpt.wordpress.com/2009/06/23/resolve-page-cannot-be-displayed-issue-in-ie8/
http://www.ehow.com/how_5943517_control-browser-timeouts-ie-7.html
Now, we know what’s wrong with IE? But now the second question comes up Why it works with Firefox? Don’t worry we have answer for this as well.
Currently, Firefox timeout is determined by the system-level connection establishment timeout [Source : http://kb.mozillazine.org/Network.http.connect.timeout]. It was earlier issue in Firefox as well and they fixed it – https://bugzilla.mozilla.org/show_bug.cgi?id=592284
If you would like to know what your System-level connection is, please refer : http://support.microsoft.com/default.aspx?scid=kb;en-us;314053 [Source: https://bugzilla.mozilla.org/show_bug.cgi?id=142326]

Summary : When you have long running operation running on server and would like to run it from browser and if browser is displaying client side error, Firefox is a good choice!

Other Resources:

http://stackoverflow.com/questions/1192375/timeout-behavior-of-different-browsers
Happy Long running operation! 🙂

Session values lost when any exception occurs

Challenge

If you’ve stored some values in session and your session values getting lost when any exception occurs. Then this article may provide you hint to solve it.

Solution

In my case the reason was as below:
Basically I was creating a directory under my web root directory and when any exception occurred I was deleting that directory. And that was the main reason for losing my session values.
So, Now I am creating/deleting directory outside my web root directory and problem is solved!
And deepest reason is Application Restart – Whenever any directory gets created/deleted under web root ASP.NET restarts the application pool. To read more about ASP.NET Application restart read my blog post.
Happy Coding! 🙂

directory

 

Create PerfMon WebPage

Challenge

If you’ve used PerfMon – tool from microsoft for performance monitor. [if you haven’t then it is really good to use tool for monitoring your application’s performance once It is deployed on server. Try it today!].
While monitoring performance we need to run perfmon tool [START | RUN | perfmon]. But what if admins need to view it from web browser and it can be from anywhere.

Solution

Here’s the solution for that. We can configure perfmon to run inside a webpage [But you need IE!].
Step by step guide is here: http://www.myitforum.com/inc/arts/9435MMC%20to%20webpage.doc
Reference : http://www.myitforum.com/articles/15/view.asp?id=7407
Happy Performance Monitoring! 🙂