Categories
7.0 7.5 7.8 8.0 C#.NET Microsoft SDK 7.1 SDK 7.8 Visual Studio Windows Phone

The name ‘DisplayModes’ does not exist in the current context

The name ‘DisplayModes’ does not exist in the current context

The error above is caused from the following code:

[sourcecode lang=”csharp”]
@{
Layout = "~/Views/Shared/_Layout.cshtml";
DisplayModes.RequireConsistentDisplayMode = true;
}
[/sourcecode]

Solution:

Replace
[sourcecode lang=”csharp”]DisplayModes.RequireConsistentDisplayMode = true;[/sourcecode]
with
[sourcecode lang=”csharp”]DisplayModeProvider.Instance.RequireConsistentDisplayMode = true;[/sourcecode]

Did my solution solve your problem? Leave a reply.

Categories
7.0 7.5 7.8 8.0 C#.NET Microsoft Nokia SDK 7.1 SDK 7.8 VB.NET Visual Studio Windows Phone

Microsoft Windows Phone – “0x89731812”

0x89731812

The above error message appears when you try to deploy a Windows Phone Project to a physical Windows Phone device.

Cause:
Connection to device failed.

Solution:
Disconnect and Reconnect the USB Cable, verify that Zune running and unlock the screen.

Did my solution solve your problem? Leave a reply.