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

Feb 26, 2010

森海塞尔台历上的煲机方法

1.一般用测试碟连续使用30%~40%的音量连续播放12~24小时(FM音乐台也可以)休息一天后然后有选择的连续播放不同风格的CD5~10小时(包括人声、交响、电子乐、流行和AV现场);

2.接下来选择你最喜欢的CD用较大的音量(你刚能接受的最大声压)试1~2小时,最后恢复中等音量播放柔和的音乐(比如班得瑞或钢琴曲)5小时,基本上煲机过程完成;

3.一般新买来第一周都是煲机时间,一个月下来相对耳机的声音已经95%都发挥了,用了6个月(平均每天2小时)的耳机是煲的最佳状态。

Feb 22, 2010

Install InstallSheild 2010

I have used install shiled generated setup.exe applicaions for a lot of times, but from now on, I will start a journey of using the IDE itself. Good luck to me!

The way to install InstallSheild 2010, for company internally use only -

Right click my computer, Advanced->Environment Variables->New User Variable,
Variable name: MVSN_LICENSE_FILE
Variable value: 9987@g6w0250.americas.hpqcorp.net

Instructions :

-Set the environment variable
- Run installer
- Skip the screen which asks for serial number
- Follow the rest of the install screens to finish install.
- Skip the registration screen once the install is finished.