Monday, February 28, 2011

Excel 2010: "Compile error in hidden module: ThisWorkbook"

In our case, this issue was caused by a NitroPDF 5 Add-In (but I imagine there are other add-ins causing the same issue). To remove this from loading, I moved the following file to another directory. Once removed, Excel started without the error.

C:\Program Files\Microsoft Office\Office14\XLSTART\NitroPDF.xla

Attempt to start VM stops at 95% using VMware Server 2 on CentOS 5

I am running VMware 2.0.2 on CentOS 5 to host a VM on one of our remote servers. We had a power outage over the weekend and everything came up normally except the VM. I attempted to start the VM using the VMware web console. It would get to 95% and then hang. I looked in the /var/log/vmware/hostd.log and saw a lot of this:

[2011-02-28 11:53:39.796 'Libs' 3080330128 info] connect to /var/run/vmware/root_0/1298359854662651_13997/testAutomation-fd: File not found
[2011-02-28 11:53:40.298 'Libs' 3080330128 info] connect to /var/run/vmware/root_0/1298359854662651_13997/testAutomation-fd: File not found
[2011-02-28 11:53:40.800 'Libs' 3080330128 info] connect to /var/run/vmware/root_0/1298359854662651_13997/testAutomation-fd: File not found
[2011-02-28 11:53:41.302 'Libs' 3080330128 info] connect to /var/run/vmware/root_0/1298359854662651_13997/testAutomation-fd: File not found
[2011-02-28 11:53:41.803 'Libs' 3080330128 info] connect to /var/run/vmware/root_0/1298359854662651_13997/testAutomation-fd: File not found

Here is how I fixed the issue:

- Stop VMware (service vmware stop)
- Make sure there aren't any processes still running (ps -ef | grep vm). If there are, kill them (kill procid or kill -9 procid)
- Rename /var/run/vmware to /var/run/vmware-old (mv /var/run/vmware /var/run/vmware-old)
- Create directory /var/run/vmware (mkdir /var/run/vmware), set 755 permissions (chmod 755 /var/run/vmware)
- Run /usr/bin/vmware-config.pl, I used all the default settings
- Start VMware (service vmware start)
- Start the VM