Error: VB runtime not loading

Edited version, after community suggestion:

In a Windows 8.1 Phone project (part of a VB.Net solution with a Store application and a portable class library), I get the following error message:

A call is not possible because VB runtime is not loaded.

but as far as I can trace, the code continues to work, despite this. Until ... in the end there will be an error telling me that

Could not find Windows Runtime type "Windows.foundation"

What I have found so far on this topic seems to be related to Silverlight and the very old versions of VB Runtime. Nothing recent.

The following explanation is then provided at runtime in the error trap:

in System.StubHelpers.WinRTTypeNameConverter.GetTypeFromWinRTTypeName (String typeName, Boolean & isPrimitive) in System.StubHelpers.SystemTypeMarshaler.ConvertToManaged (TypeNameNative * pNativeType, TypeFunction.Temple.TimePermpt.Control.Type. Dossier365.Mobile.Behaviors.MenuTegelClickAction.ReageerOpMenuKeuze (sender object, object parameter).

I added a screenshot with various posts. The Store application is working fine, based on the same PCL.

EDIT: after the suggestions below: DirectCast added:

enter image description here

A new error message will appear: I donโ€™t know what is happening here or more: how to overcome this situation. My attempts so far have not led to an acceptable solution.

Anyone with a good suggestion or solution?

+2
source share

No one has answered this question yet.

See similar questions:

7
Creating pages in the Windows Store without XAML
one
System.TypeLoadException Could not find Windows Runtime exception "Windows.Foundation Exception"

or similar:

fifteen
MissingManifestResourceException on Windows Phone 8.1 with .resx resources
2
[WP 8.1] Error checking storage application
one
Windows Runtime Component with Windows Phone Silverlight 8.1
one
Capture to window 8.1 Error
one
M2MQTT in the portable class library
0
What type of component should be used to write the SDK for support on Windows 8.1 and Windows universal devices
0
Windows Phone Silverlight 8.1 Background Tasks
0
Add a Windows 8.1 project to a solution using Windows Phone 8.1
0
Windows phone 8.1 uses push buttons
-one
How to use a third-party dll in a Windows Phone 8.1 application with a component of the Windows environment?

All Articles