Apr 16, 2010

Oops! Unhandled exception has ccurred in your application


We all hope that every day in our life is peaceful, joyful, and wonderful. But in reality, life will play joke on you. Treat or trick? Trick might be the answer.

Like today, I was played with a trick.
When I installed HP Neoview ADO.NET, all the process is good, as expected. But soon after, an error message box jumped out. As normal, I saved my current work, restart my computer (I have no time to deal with it). But after restart, the error still existed. Resistance? Sturben? I would use my second weapon - System Restore. I carefully chosed a Restore Point, but unexpectedly, system restore failed. Oh, I have no choice but to face the problem directly.

I checked the error message:

System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Section or group name 'HP.Data.Neoview' is already defined. This can not be defined multiple times. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 118)

Isn't it simple? It even told you which line the error is. So just go the machine.config and remove a reduntant line, it works.

It's that simple? It's that simple, expecially for programmers.

Apr 12, 2010

UltraEdit View File Tab


UltraEdit is a very famous tool although so far I haven't noticed its power. But is famous and popular, isn't?

The new version of UltraEdit by default doesn't have a "tab view", which means you can't easily know how many files you have opened, and switch freely between. How to make the magic tab view come back? Here it is:

Open UltraEdit, choose View of the menu bar, then choose View/Lists, and finally select Open File Tabs.

Thanks God.

Apr 6, 2010

ODBC Error: could not load file or assembly 'System.EnterpriseServices.Wrapper.dll'

Oh, time changes, sometimes good luck, sometimes bad...
This time I by accident met a problem (it's really a accident!) that all my products can't connect to my machine, although I have uninstalled and installed my products for many times, it didn't work:

Fortunately, however, I happend to find a solution:
that System.EnterpriseServices.dll is a .NET Framework component, in GAC (C:\Windows\Assembly), I see System.EnterpriseServices, but, its version is 1.0.****,
I know my products is usng .NET framework 2.0, so the solution comes simple which is: copy c:\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll to the GAC folder (GAC is located at C:\WINDOWS\assembly; ). As GAC folder we don't have copy and paste menies in GAC so we need to open 2 windows explorer, one as the source, to do drag and drop, as there is no 'paste' once you 'copy' from it.

Praise God