I got the solution alast..
I tried installing the different versions of .NET frameworks but most of the times it said ,it's already installed. Weird :-/
Any Ways Next after some googling, I found a post that said to try to handle the UnhandledException event of an application, which all WinForms apps should do.
1. So I created a module named "Program", so as to make it look similar to Program.cs of c#.
2. In the Project properties under Application tab unchecked "Enable Application Framework"
3. In the Project properties under Application tab selected the newly created module "Program" as my startup object.
4. The Program module looked like this
Imports System.Threading
Module Program
Public Sub Main()
AddHandler Application.ThreadException, AddressOf OnThreadException
AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf UnhandledExceptionEventRaised
Application.Run(New Form1())
End Sub
Private Sub OnThreadException(ByVal sender As Object, _
ByVal e As ThreadExceptionEventArgs)
MessageBox.Show(e.Exception.Message)
End Sub
Sub UnhandledExceptionEventRaised(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs)
If e.IsTerminating Then
Dim o As Object = e.ExceptionObject
MessageBox.Show(o.ToString)
End If
End Sub
End Module
5. All set
Now whenever you will face any exception, your application will not crash and display weird messages byt instead a message box with the complete strack trace is popped up.
And all the headaches of buzzing around to find the issue will resolve..