Product: ChemBioOffice Enterprise
User is trying to register a new compound via Registration (CDAX v18.1.1) but the system returns error: “Object reference not set to an instance of an object”.
This is a fairly large molecule but not the largest he has managed so far.
If the molecule (attached) is segmented in half, the system allows the registration of both parts.
Workaround:
Note: You have to install Visual Studio Command Prompt (2010) in MT to run dumpbin/editbin commands.
Stop ALL Application Pools in IIS. Go to Application Pools in IIS and STOP each manually. Also stop the top level server in IIS. Stop any applications that might be using it through the Task Manager. Backup the original w3wp.exe before making any changes.
For w3wp.exe in SysWOW64 folder, go to Properties Security Advanced Owner and change the owner to Administrator (by default it belongs to Trustedinstaller).
Close and reopen properties dialog, go to Security, Select Administrators and click Edit. Give Full Control to administrator.
Open an administrator prompt and type in the following commands to check the stack size. Note the full path otherwise the command might pick some other executable:
dumpbin /HEADERS c:\Windows\sysWowé4\inetsrv\w3wp.exe
In the OPTIONAL HEADER VALUES section in the output, something like the following will be displayed:
…
40000 size of stack reserve =// we need to change this
2000 size of stack commit
100000 size of heap reserve
1000 size of heap commit
These values are in HEX so 40000 = 256KB which is the default for w3wp.exe in Windows Server 2003 and above.
Use the following command to change the stack values:
editbin /STACK:4194304 c:\windows\syswowé4\inetsrv\w3wp.exe
EDITBIN takes value in bytes, 4194304 = 4MB (4 x 1024 x 1024).
Make sure EDITBIN executes successfully and there are no error messages.
Now check the stack size of changed w3wp to confirm EDITBIN worked:
dumpbin /HEADERS c:\Windows\Syswowé4\inetsrv\w3wp.exe
This time it should display the stack size as 400000 which is equivalent to 4MB (4194304) in DEC.
…
400000 size of stack reserve
2000 size of stack commit
100000 size of heap reserve
1000 size of heap commit
Start all pools in IIS and run application.
Comments
0 comments
Article is closed for comments.