Error: VB runtime is not loaded

允我心安 提交于 2019-12-31 03:35:08

问题


Edited version, after suggestion from community:

In a Windows 8.1 Phone project (Part of a VB.Net Solution with also a Store app and a Portable Class Library) I get this error message:

Call not possible because VB Runtime is not loaded.

but as far as I can trace the code keeps running in spite of this. Until... eventually an error pops up, telling me that

Could not find Windows Runtime type 'Windows.foundation'

What I have found so far on this subject seems to have a relation with Silverlight and very old versions of VB Runtime. Nothing recent.

Further on during execution in the error trap the following explanation is given:

at System.StubHelpers.WinRTTypeNameConverter.GetTypeFromWinRTTypeName(String typeName, Boolean& isPrimitive) at System.StubHelpers.SystemTypeMarshaler.ConvertToManaged(TypeNameNative* pNativeType, Type& managedType) at Windows.UI.Xaml.Controls.Frame.Navigate(Type sourcePageType) at Dossier365.Mobile.Behaviors.MenuTegelClickAction.ReageerOpMenuKeuze(Object sender, Object parameter).

I have attached a screenshot with the different messages. The Store App runs fine, based on the same PCL.

EDIT: after suggestions below: added DirectCast:

Now a new error message appears: I have no clue what goes on here or moreover: how to overcome this situation. My attempts so far have not lead to a workable solution.

Anyone with a good suggestion or solution?

来源:https://stackoverflow.com/questions/28986073/error-vb-runtime-is-not-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!