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.

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:

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    DisplayModes.RequireConsistentDisplayMode = true;
}

Solution:

Replace

DisplayModes.RequireConsistentDisplayMode = true;

with

DisplayModeProvider.Instance.RequireConsistentDisplayMode = true;

Did my solution solve your problem? Leave a reply.

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.

Visual Studio – “The type or namespace name ‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’ (are you missing an assembly reference?)”

The type or namespace name ‘DataContractJsonSerializer’ does not exist in the namespace ‘System.Runtime.Serialization.Json’ (are you missing an assembly reference?)

in Italian:

Il tipo o il nome dello spazio dei nomi ‘DataContractJsonSerializer’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization.Json’; probabilmente manca un riferimento a un assembly

Solution:

Add the following References to your project:

System.Runtime.Serialization
System.ServiceModel.Web

In Solution Explorer, right-click on the project node and click Add Reference to select the dll files.
Remember to add using or Imports lines inside your file.

Did my solution solve your problem? Leave a reply.

Visual Studio – “The type or namespace name ‘DataContractAttribute’ does not exist in the namespace ‘System.Runtime.Serialization’ (are you missing an assembly reference?)”

The type or namespace name ‘DataContractAttribute’ does not exist in the namespace ‘System.Runtime.Serialization’ (are you missing an assembly reference?)

in Italian:

Il tipo o il nome dello spazio dei nomi ‘DataContractAttribute’ non esiste nello spazio dei nomi ‘System.Runtime.Serialization’; probabilmente manca un riferimento a un assembly

Solution:

Add the following References to your project:

System.Runtime.Serialization
System.ServiceModel.Web

In Solution Explorer, right-click on the project node and click Add Reference to select the dll files.
Remember to add using or Imports lines inside your file.

Did my solution solve your problem? Leave a reply.

SDK update for Windows Phone 7.8 – “The element “Deployment” in namespace “http://schemas.microsoft.com/windowsphone/2009/deployment” has invalid child element “AppExtra”. List of possible elements expected: “App”.”

The element “Deployment” in namespace “http://schemas.microsoft.com/windowsphone/2009/deployment” has invalid child element “AppExtra”. List of possible elements expected: “App”.

In Italian

L’elemento “Deployment” nello spazio dei nomi “http://schemas.microsoft.com/windowsphone/2009/deployment” ha un elemento figlio non valido “AppExtra”. Elenco di possibili elementi previsti: “App”.

Cause:
Installing the Windows Phone 8 SDK, the schema files of the previous version will update too. If you haven’t installed it and you want to work with Visual Studio 2010 you have an old version of schemas that not contains the <AppExtra> node, so the error appears because the xsd file cannot validate your WMAppManifest.xml file with the new lines

<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion="7.1">
  <AppExtra xmlns="" AppPlatformVersion="8.0">
    <Extra Name="Tiles"/>
  </AppExtra>

Solution:
Download and replace the following files inside you Visual Studio 2010 installation folder at the path like this:

C:\\Program Files\\Microsoft Visual Studio 10.0\\Xml\\Schemas

Rename the Microsoft.Phone.PreImport.targets file in

C:\\Program Files\\MSBuild\\Microsoft\\Silverlight for Phone\\v4.0

append “_” at the end of the filename: Microsoft.Phone.PreImport.targets_ (I’m searching other ways for this part of solution)

Close and re-open Visual Studio 2010 then Rebuild your solution.

Did my solution solve your problem? Leave a reply.

HOW TO test Socket connections

To test Socket connections I suggest you the following freeware tool:


Hercules SETUP utility to test Socket connections
Hercules SETUP utility

Functions: TCP/IP Client Server terminal, UDP/IP terminal and Serial Port terminal.

Did my HOW TO help you? Leave a reply.