Posts

Showing posts from January, 2014

.NET x86 vs x64 hell (BadImageFormatException)

As far as I know, .NET platform architecture were similar to JVM's architecture, each .NET assembly or DLL consist of intermediate language (IL) bytecodes similar to JVM bytecode. So in theory, there suppose to be no problem running .NET DLL in x64 platform without using 32-bit support, right? It turns out the reality is not like that. I recently found out that there is 3 kind of target in Visual Studio Project settings : Anycpu x86 x64 For Anycpu, the resulting DLL is loadable in both environment (x86 and x64). The x64 target is only loadable in 64-bit platform. The x86 target would ensure the resulting DLL runs either in 32 bit platform or, in case of physical 64-bit platform, in the WOW64 x86 emulator. This means such DLL would be unable to run in real-64 bit environment, such as in Microsoft IIS with 32-bit app support flag turned off. The characteristic of such DLL can be determined using Corflags.exe tool : D:\sources\SmileDevRoot\Code\az_source>corflags obout

Domino error Server exiting: Partition already in use

Cause :  Unknown thing caused domino crash Effects Unable to restart domino server. There was an error message : Server exiting: Partition already in use  On Solaris platform, ps -ef shows many processes still running from under the notes_apps directory. Solution List notes process pids using ps -ef | grep Kill each and every notes processes (amgr, router, http, etc) : kill kill -9