Got this unhandled exception while creating a Windows Store app on Visual Studio (type D3D11 C#, SDK 8.0):
A first chance exception of type ‘System.NullReferenceException’ occurred in WinRTBridge.winmd
Any clues?
Got this unhandled exception while creating a Windows Store app on Visual Studio (type D3D11 C#, SDK 8.0):
A first chance exception of type ‘System.NullReferenceException’ occurred in WinRTBridge.winmd
Any clues?
Messages from Visual Studio’s console:
First-chance exception at 0x75D14B32 in Template.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x75D14B32 in Template.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
A first chance exception of type ‘System.TypeLoadException’ occurred in WinRTBridge.winmd
[2.847007 / 3.272919] - MonoManager::FillCommonScriptingClasses begin…
[2.847007 / 3.272919] - MonoManager::FillCommonScriptingClasses begin…
A first chance exception of type ‘System.NullReferenceException’ occurred in WinRTBridge.winmd
An exception of type ‘System.NullReferenceException’ occurred in WinRTBridge.winmd but was not handled in user code
Additional information: Object reference not set to an instance of an object.
The program ‘[2576] Template.exe’ has exited with code 0 (0x0).
I have the damn same problem like you… .
I will try to find another alternative solution, cause: “System.Type” and “EventDelegate.Callback” are launching errors when I try to build a VS project.
Are you on Windows 8 or 8.1?
Which version of Unity are you using?
Which version of Visual Studio are you using?
Do you get the errors when running the Windows Store solution? Can you continue in Visual Studio after each error?
OS: Windows 8.1
Unity Version: 4.3
Visual Studio: Ultimate 2012
Those errors show up when I deploy the app, while running Visual
I do get a dialog box, which has an option to continue, though it only leads to more exceptions (most caused by Template.exe), and inevitably the program stops. All this is on debug mode. If the game is deployed directly to a device, nothing is shown on screen.
As a side note: I’m using both Playmaker and NGUI. It caused some errors related to networking, but afaik they are solved.
I have seen this before. It turned out that the user was using plugins in both editor and Windows Store apps, placed in "Assets\Plugins" and “Assets\Plugins\Metro”, respectfully, however, their DLL version didn’t match. That happened because the user updated the plugin for editor, but forgot to do so for Windows Store Apps.
Check if it isn’t the case here.
Here’s a screenshot of my project tab:
By deleting Playmaker, the game was able to run on VS! Unfortunely, all of main menu’s logic uses Playmaker.
I actually didn’t place Playmaker (or any other dll) in "Assets\Plugins". Just in case, I copied Playmaker.dll to “Assets\Plugins\Metro”. No good.
I updated Playmaker using their Windows Phone 8 Add-on. No good, either.
Here’s a screenshot of Project tab:
Well, that kind of makes sense. You shouldn’t use Windows Phone 8 plugins in Windows Store project. That will not work.