What causes CORDBG_E_CLASS_NOT_LOADED (HRESULT: 0x80131303)

2

While attempting to debug an application, I keep noticing that two of my arrays and one of my lists seems to be mysteriously... Not there. The error given for that (upon pausing the application and looking through my compiler's variable list) is "A class is not loaded HRESULT: 0x80131303".

After googling, I found out that that particular HRESULT is named "CORDBG_E_CLASS_NOT_LOADED", however I found nothing about it's possible cause, or how to solve it.

I would normally paste the relevant code here, but from what I can find, this error happens directly at the declaration of the effected arrays and list.

Can anyone here help?

c#
hresult
asked on Stack Overflow Nov 18, 2011 by Edward Black

1 Answer

1

You may be loading a class implicitly at startup, which causes an error because not everything is initialized yet. Make sure you are not accessing anything in an unloaded class that could cause this.

answered on Stack Overflow Nov 19, 2011 by xpda

User contributions licensed under CC BY-SA 3.0