Categories
7.8 Microsoft Windows Phone

Cannot login to Facebook from Windows Phone

Effects:
I connected to https://m.facebook.com/login.php, using my Nokia Lumia 800 with Windows Phone 7.8, but inserting the correct credentials I cannot login: the browser refreshes the page showing the alert “You must login first.”.
I thought I had forgotten my credentials…

Cannot login to Facebook from Windows Phone

Solution:
Go to settings of Internet Explorer and place a tick on “Allow cookies on my phone” check box.

Did my solution solve your problem? Leave a comment.

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.