HOW TO check and install Xamarin updates in Visual Studio

Probably a message has been shown to you in Visual Sutdio about a new version of Xamarin.

HOW TO check and install Xamarin updates in Visual Studio?

Navigate the Visual Studio menu Tools -> Options…
visual-studio-menu-tools-options

then Xamarin -> Other and click the link Check Now
options-xamarin-other-check-now

Did my HOW TO help you? Leave a reply.

HOW TO calculate the weekday name in RDLC

To calculate the weekday name in RDLC you can use a combination of two Visual Basic functions:

  1. DatePart
    Syntax

    DatePart(interval,date[,firstdayofweek[,firstweekofyear]])
    

    firstdayofweek is an Optional parameter and the Default value is 1 (Sunday).
    firstweekofyear is an Optional parameter and the Default value is 1 (January).

  2. WeekdayName
    Syntax

    WeekdayName(weekday[,abbreviate[,firstdayofweek]])
    

    abbreviate is an Optional parameter. A Boolean value that indicates if the weekday name is to be abbreviated.
    firstdayofweek is an Optional parameter and the Default value is 1 (Sunday).

  3. HOW TO calculate the weekday name in RDLC

    CORRECT RESULTS

    =WeekDayName(DatePart("w", Fields!CurrentDate_System.value,0))
    =WeekDayName(DatePart("w", Fields!CurrentDate_System.value,0,0))
    

    WRONG RESULTS

    =WeekdayName(DatePart("w", Fields!CurrentDate_System.Value))
    =WeekdayName(DatePart("w", Fields!CurrentDate_System.Value),false,0)
    

    Did my HOW TO help you? Leave a reply.

The breakpoint will not currently be hit. The specified module has not been loaded

The breakpoint will not currently be hit. The specified module has not been loaded

When you debug with Visual Studio 2005 and a Windows Mobile/Windows CE/Pocket PC from 5.0 to 6.5 version device running .NET Compact Framework 2.0 breakpoint not works showing a ring instead of the normal red dot and when holding the mouse over it shows the above error message.

Solution:
Close Visual Studio and re-install the SDK.

Note: If still not work download and install the following patch
.NET Compact Framework 2.0 Service Pack 1 Patch

Did my solution solve your problem? Leave a reply.

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.