Immediate Window, “The expression cannot be evaluated…”
When I try to evaluate expression in Immediate Window at design time, I get error: The expression cannot be evaluated while in design mode. If I compile ASP.NET project and try to run it in debug mode I get another error: The expression cannot be evaluated while in run mode. Why do I get these errors? I have used Immediate Window in the past and it worked fine even in design mode. Assuming that you aren't missing the > operator in the Immediate Window, there could be problems if you are trying to evaluate an expression at design-time in a multi-project solution or even a web project. According