Categories
C#.NET Microsoft VB.NET Visual Studio Windows 7 Windows 8 / 8.1 Windows Mobile Windows Vista Windows XP

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.

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.