# Nasty Error Upgrading to Mono 0.30.1

Blorg!! I’m trying to upgrade to Mono 0.30.1 (from 0.28) on samus, and it fails during the emerge with a nasty little error (found in the full text). It seems to stem from the fact that the build process is attempting to call the resource generator with the installed runtime, rather than the one it just built. I’ve unmerged the existing runtime and and attempting to emerge again in the hopes that it won’t get confused if there isn’t a runtime already installed.

Update: So that fixed it. Who knows if that was really the problem or not, but I was able to successfully emerge the package after I had unmerged it. Now to get Dasblog running…

`** (/usr/bin/monoresgen.exe:21345): WARNING **: cant resolve internal call to “System.Type::IsInstanceOfType(object)” (tested without signature also)

Your mono runtime and corlib are out of sync. Corlib is: /var/tmp/portage/mono-0.30.1/work/mono-0.30.1/runtime/mscorlib.dll

When you update one from cvs you need to update, compile and install the other too. Do not report this as a bug unless you’re sure you have updated correctly: you probably have a broken mono install. If you see other errors or faults after this message they are probably related and you need to fix your mono install first.

Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required in (unmanaged) System.Type:GetTypeFromHandle (System.RuntimeTypeHandle) in System.Threading.Thread:get_CurrentCulture () in System.Globalization.CultureInfo:get_CurrentCulture () in System.String:ToLower () in .ResGen:GetReader (System.IO.Stream,string) in .ResGen:CompileResourceFile (string,string) in .ResGen:Main (string[])`

Categories: