ThreadAbortException in Response.Redirect

27 04 2011

If you ASP.Net application has catch all error logging, don’t be surprised if you find ThreadAbortException [Exception message: The thread was being aborted] very often. The culprit could be the following code.



//Some error thrown



catch (Exception ex)


//Some logging code here

//Finally redirect user to error page



The reason is that Response.Redirect end the current response by calling Response_End internally. Response_End always throws a ThreadAbortException by design. To avoid this you can do either of the following

  1. Catch the ThreadAbortException and call Thread.ResetAbort to cancel the abort. Do keep in mind that there is no guarantee that the thread will ever end.
  2. Ignore it. Which means, catch the exception; but do not log it.
  3. Finally, Response.Redirect takes two paramters. The URL itself and a Boolean parameter telling whether the current response should end or not. To avoid ending the current response, pass a Boolean value of false. So we can rewrite the above code as


Secondlife: Parody

23 06 2007

If you have been in Secondlife, the virtual world even for a minute; you would get what this video is all about. Really funny. :) 


23 05 2007

The blog has successfully completed 25000 views. Thankyou readers!!!

Is religion fading in todays youth?

9 05 2007

Yesterday a friend of mine happened to ask me an interesting question over gtalk. She wanted to know my opinion on whether today youth have time for religion? I had just watched Babri Masjid demolition documentry the night before and was in a kind of confused state as to what she meant. You know the question came at the most unexpected time that too during a casual chat. Personally I feel that todays youth does have time for worship, but its just that it is not in their highest priority list. People pray only when they are in trouble, not all, but most of them <no offence>. Take the case of students, you could see them running to places of worship on the day of exams, sad to say I used to do the same some years ago. 

After that she asked me whether I believe in god. Well, for this question I always have a stable answer. I dont believe in god, but I do believe that a superpower exists. I dont give it any shape or size, but I know it exists. From the time you are born, you are brought up with the idea that god exists and he will help you at the time of distress. Gradually there is a mental phenomenon associated with the feeling that god would help during time of distress. Its the same feeling that gives us strength and support when we pray. God created men and men created religion. In a way China is best where religion is banned… there is no question of communal violence at all.

Sometimes when bad things happen people tells me that its fate, and when good things happen… its luck :). I always tell them that I dont believe in fate. Just because I dont like the idea that I am not in control of my life. If eveything is predefined as to what is going to happen next, then whats the meaning of life? I dont know, but I chose the way I want to live, its not been written anywhere. I belive its us that write our future… think good and you will attract good towards you. Think bad and you will suffer. Its all the power of belief.

Have you read the book, The Magic Of Thinking Big by  David Schwartz? If not do read it. Its one of the best books I have ever read. It has changed my life by shaping me into a better person, hope it does the same to you too. oh before I stop let me tell a fact. My friend happens to be doing internship at Deccan Chronicle and she said my opinions might come up in one of the opinions colums of Deccan. :D

Alright, thats for today. Between do let me know about what you think about religion!!!

The 100th Post!!!

7 05 2007

100th PostWhen I started writing this blog during Blogcamp Chennai, I was never sure as to how much time I could dedicate for blogging. The odds were against me and after I left for Microsoft India Development Centre at Hyderabad in September end, I no longer found enough time (er…. to be short lazy enough) to blog. After a long span, I am back to blogging and its good to see that I am writing my 100th post and at this point of time my blog statistics are

Blog Stats

Total Views: 22,022

Best Day Ever: 442

Views today: 17


Posts: 99

Comments: 167

Tags: 14

Good to see that there has been over 22000 views for a 100 post blog. Thank you very much people. Within a month or two you can see increased activity when my exams get over and then you could also see live blogging on The Knowledge Foundation events like SE, Podworks etc. Oh and yes, I have been to Mobile Monday (on a sunday :) ) yesterday and will soon write about it. Keep visiting…

360 Degree Interactive… is now hiring

2 05 2007

360 Degree InteractiveWhy am I writing about a job oppurtunity in my blog? Interesting question. Well I have a kind of personal attachment with  this company. It was a year and a half back when I was in 3rd year that I met Mr. Narain, CEO of 360 Degree Interactive at TracBacBarcamp Chennai. It was Narain who introduced a normal kid to the corporate world. There I learned what it takes to be competent. Getting introduced to him and the company was one of the best things that have happened in my life so far. Wait until I make the list of top 10 influential people of my life (probably after my exams).

Now about the company,

“360 Degree Interactive (3DI) is a Web Services company. We are small, agile and passionate about what we do. We believe in an “on-demand world with on-demand solutions”.

We help organizations utilize the web services effectively, powerfully and provide end-to-end solutions to their users. We believe Web as a platform for all communication & application needs for the world. We work with Web standards and emerging technology standards [Microformats, RSS, XML-RPC, OpenID, APIs] to deliver people oriented next generation solutions & services.

3DI was started in 2003 in Chennai, India, by three technopreneurs.”

And about the job I was talking about… this is an interesting job ad that you would never find anywhere. Not event in Google. Check it out at Also do check out their product, TracBac. The job ad is as follows:

“We are not looking at M.Phil, Ph.D guys. We are looking at passionate coders, who love to code on RoR, Actionscript 2.0 / 3.0 & eat MySQL queries for Lunch, you are welcome. We are also looking for people, who can tangle XHTML, CSS, WordPress, tWiki for their late nite dinner. Never worry about education, the founders themselves are drop outs. Shoot a mail to balaji at by answering a simple question – Why you want to be a coder & work for a Web 2.0 firm ?”

Now dont you think thats interesting? If you feel that you are passionate about technology, do mail balaji at 360in dot com with the simple answer which you would definitely have if you are really passionate about it. All the best!!!

Jimmy Wales with me

25 02 2007

Hey, guess with whom I posed for photograh. Yup, thats right! Its Jimmy Wales himself!!! Thats Aswin of Sasken, Prathul (Myself) and Jimmy Wales (founder of Wikipedia)!!!

Myself, Jimmy Wales & Aswin

Back from Microsoft IDC

4 10 2006

Finally I am back from the Microsoft Hyderabad IDC. We really had good fun there with all the student parteners in India. But right now, I am too tired to blog about it. Check back soon for updates.

Off to Microsoft Hydrabad IDC

28 09 2006

Microsoft IDCTomorrow evening I am leaving for the Microsoft IDC at Hyderabad. We are having a student partner meet there with three days of fun filled events and a bit of training. I will back on 3rd October with some very exiting experience to share with you. Keep checking this blog because may blog from there too if situation and time permits. See you sooooooooon.

Microsoft AcadDevCon 2006 – Walkthrough

26 09 2006

I reached the venue at 8:00am as proposed. The college was absolutely deserted at that time except for the watchman. The auditorium was locked and they informed me that the guy having the key would arrive around 9:00am only. A good beginning for a great day…

The audio & video guys were the next to arrive. I had a small chat with them and by 8:15am Ajay (Microsoft Academic Evangelist) and few others arrived. Around 8:30am they managed to get the key for side door and were we were much relieved that the audio & video guys can set up things. But, surprise…. the auditorium was pitch dark. They casually told that they were not sure when the electrician would arrive. GREAT!!!

Anyway the video was set up and the audio room too was locked up and they were not

even sure where the guy with the key to audio room was. We were receiving excellent service from the college for having paid 20000k and 700 of the 1400 tickets reserved for the college. Finally the keys arrived just in time by 10:00am when we were actually planning to break down the lock because the event was scheduled to start at 10:00am- 3:30pm. Hosting an event is not an easy thing, it takes a lot of patience, effort and lots of other indigents to make it a good one. Sometimes you need to keep smiling at people even if their answer to your queries make you feel like breaking their neck off. Glad nothing like that happened.

The event was kick started at sharp 10:00am with a jam packed audience. The first session was by Pratibha on Internet programming. Now since the audience contained people not familiar with writing codes, she just touched just the basics and showed some cool demos of web 2.0. She showed AJAX, ATLAS and showed the day to day applications that people use like Orkut, Google Suggest etc. Now for the anti-Microsoft people out there… she didnt do any comparison between Google and Microsoft. She even told about the capabilities of AJAX.

The next session was by Kevin D’Souza on Live Web Tools. Unfortunately there was no

Internet connectivity at the college auditorium and he actually had to show off the cool things in power point slides. But the live tools were something new to the audience and I found out today that about 90% of my classmates are exited about it. Some are even considering doing projects using Live API .

Then it was time to break up for lunch for half an hour. We didnt get time to eat anything since we were busy setting things up for the next session.

Ajay & Tejas

The next session was by Ajay Thomas Abraham on Windows Vista. This got the audience exited since he was running the demo on a Windows Vista Laptop with aero support. That was running on a RC1 version of Vista. I hope I too would be getting a Vista RC1 DVD when I go to Hyderabad Microsoft IDC on 29th.

Kevin & Tejas setting up the robot

The final session was by Tejas on Robotics. He practically showed how to control a simplerobot which he had created using Microsoft Robotics Studio . This got the ECE guys exited. His first robot was a simple webcam robot whose viewing angle was controlled by software. The next one was a two wheel robot which he programmed right in front of the audience and demoed it moving. That was the first time in my life I was watching a robot programmed and running live.

All together the event went very well. Hats off to all the four Microsoft Evangelists who did the sessions without a glitch, the keen audience and finally to Mohammed Reza who actually arranged the venue and other things. Mohammed Reza as you all know was the student partner from SRM and is currently employed at Microsoft IDC at Hyderabad.

At the end of the exiting day, we all were as hungry as hell. Ajay, Tejas & Reza didnt disappoint us and we had a great treat. Now you are not reading Enid Blyton’s Famous Five to explain in detail what we ate. Then we split to our respective houses with a promise to meet again at Hyderbad on 29th…


Get every new post delivered to your Inbox.

Join 492 other followers