Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VS 2013 can not evaluate expression
Message
Information générale
Forum:
ASP.NET
Catégorie:
Problèmes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01605242
Message ID:
01605816
Vues:
59
This message has been marked as a message which has helped to the initial question of the thread.
Common bug most likely:

http://weblog.west-wind.com/posts/2013/Nov/21/Visual-Studio-2013-Could-not-evaluate-Expression-Debugger-Abnormality

Make sure you install the latest Visual Studio update, which supposedly fixes many of the eval problems. Otherwise you can turn off the new debugger display behavior.

+++ Rick ---

>Hi everybody,
>
>I am trying to debug a code from repository:
>
>
>public override Operator GetById(object id)
>        {
>            var result = base.GetById(id);
>            if (result == null)
>                return result;
>            HashOpCode(result);
>            return result;
>        }
>
>Unfortunately, in the locals window I see 'Could not evaluate expression' and same when I try to access properties of result in the immediate window.
>
>Is there a way to see the actual properties values? Why would I get this error? Could it be due to the var declaration?
>
>Thanks in advance.
>
>I also have another question - we're passing a string of OpCode as object and using base.GetById(id) method. In SQL Server profiler I'm seeing the following code
>
>
>SELECT TOP (2) 
>    [Extent1].[op_code] AS [op_code], 
>...
>where op_code = @p0'
>
>and @p0 is set to be varchar(8000) while the actual column is char(6). How can we make Entity Framework to use the actual type and length and why does it say select top (2)?
>
>Thanks in advance.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform