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.