I am using a Winmd (Windows Runtime Component) in a windows store app. When I try to instantiate a type that is defined the in the winmd, I get the following exception:
System.TypeLoadException was unhandled by user code
HResult=-2146233054
Message=Requested Windows Runtime type 'SmartTech.BrokeredProxy.EnterpriseServer' is not registered.
Source=mscorlib
TypeName=SmartTech.BrokeredProxy.EnterpriseServer
InnerException: System.Runtime.InteropServices.COMException
HResult=-2147221164
Message=Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
ErrorCode=-2147221164
InnerException:
I added all references that I need and I made the appropriate changes in the Manifest file . Did I miss something? Any one has an idea what causes this?