Apps Won't Run on Windows 8.1 [SOLVED]

I’m running Windows 8.1 (RTM) with Unity Pro 4.2, and I can’t get any of my exported Windows 8 projects to run. When I do the build in Unity, it creates the Visual Studio solution. If I open that solution and try to run it (after switching to x86 target), I get these errors:

1382479--70460--$1.png

1382479--70461--$2.png

This is just an empty project with no plugins and just a cube in the middle of the screen. I can’t get the exported Unity project to run in Windows 8.0 or 8.1. On a side note, this project runs great on Android, Windows Desktop and Windows Phone 8. Has anyone else run into this issue?

check to see if any of these things help to correct it:

http://www.blakepell.com/Blog/?p=571

Are you using VS 2012?

I have the same error.

Guys, please give more details, saying it doesn’t work - doesn’t help.

It works on our side.

I’m using VS2012 on Windows 8.1 with Unity Pro 4.2. I just create an empty Unity project, export it for Windows 8 (metro) and try to run the project in VS2012 and it fails with this error. If there’s any other details you need please let me know.

Try this, from VS 2012 menu, create a new project - Windows Store->XAML C++, and see if that works.

That works perfectly. I chose a blank Windows Store XAML C++ project and I can run the project just by hitting F5 in VS2012.

Hmph, weird… Okay can you say, if your Windows name has ‘N’ letter in it.

Also, try enabling exception in Debug->Exceptions, and see if you hit something.

I’m using Windows 8.1 Pro, not the N version. The debug->exceptions thing doesn’t hit anything because the app isn’t even starting correctly. I’ve attached my Unity project to this reply, and I tried to attach my exported VS2012 project and the Windows Store package but they’re apparently too big. I can send them to you using a different method if those would help too. Thanks!

1386036–70893–$UnityProject.zip (92.7 KB)

Could you attach exported solution project minus Players folder

Most likely you don’t have the Windows 8.1 SDK installed on your system. Please note: the Windows 8 SDK Layers in the Standard Windows 8 SDK are not compatible with 8.1!

Use the 8.1 SDK link below and everything is good :slight_smile:

http://go.microsoft.com/fwlink/?LinkID=294834

Stephan

@Tomas1856: I’ve attached the exported project, let me know if you need anything else.

@stephan7: I’ve installed the 8.1 SDK like you suggested but I’m still getting the same errors. Do I need to force Unity or VS2012 to reference it somehow?

1386779–71017–$WindowsStoreProject.zip (762 KB)

Tried to make a quick test with your ‘WindowsStoreProject.zip’ and copied the ‘Players’ folder from my project over into your project.
But it seems I have a version: 4.2.2f1 installed and your version is 4.2.1f4 - so I can’t start it.

I try to make a quick test with your UnityProject.zip…

Well everything seems to be okay with your project. Honestly I have no clue what’s wrong…

Here’s another thing you might want to try, could specify what VS 2012 version you’re using, check it in Help->About.

Just in case, try to apply Update 3 patch - http://support.microsoft.com/kb/2835600

The empty projects shows a blue background - like expected. Sometimes if deployment fails it’s a good idea to uninstall the previously installed app.

To do so:

  • open Search in Win8 ( +

  • type in your app name (e.g. EmptyProject)

  • right click on it and choose ‘Uninstall’

  • confirm

  • retest it

No other ideas unfortunately.

Stephan

I’ve tried setting up another computer with a fresh install to give this a try. Here is what I did:

  • Install Windows 8.1 Pro (MSDN license, and activated it)
  • Install VS2012 and do all the updates (including Update 3)
  • Install Unity 4.2.2f1 (activate it with a 30-day Pro trial license)
  • Create a new Unity project with a cube in the middle of the viewport
  • Export to C# solution

This solution still won’t run, and the exported apppackages don’t run either. Am I missing something in the toolchain, or some setting in Windows here? This is on a fresh install of Windows 8.1 with all default settings, with only VS2012 and Unity installed.

Probably it’s something simple, but I don’t see it yet.

Just to gather more information, could you attach report from dxdiag:

  • Hit Windows Key + R
  • dxdiag
  • Save All information
  • Attach produced file.

No problem, here is the information.

1387038–71036–$DxDiag.zip (14.4 KB)

Seems okay…

Could you try creating a C++ project from Unity, for ex., XAML C++, and launch that. This is another hunch, but maybe you’re missing somekind of dependency on your system, which Unity use.

Sorry that it takes so long :slight_smile: