简体   繁体   中英

ASP.NET MVC or more of a VS debugging issue - EF/ Sql The function evaluation requires all threads to run [on hold]

The function evaluation requires all threads to run: I am getting this on two properties which I can view at debug mode: 1) Local: which is of type "System.Collections.ObjectModel.ObservableCollection" 2) Sql: which is of type "string". When I click on Force Evaluation button that does resolve the issue for Sql type but when I click on same button for Local, it still shows the same error. you can see in this image

My code was working all fine and the EF was retrieving the data from the SQL DB to my Home page. But after a few small tweaks to the code(which I know that isn't the reason for the said issue) the Home page comes blank.

After I debug the issue I found that my variable didn't hold the values from the SQL DB and on further checking the issue to be found says that "The function evaluation requires all threads to run."

Looking forward for your expert advice! If I am missing the details of problem space then please do let me know. Regards, Bash.

I found this post form msdn forum:

This isn't an error in and of itself, but more of a feature of your debugger. Some properties require code to be executed in order for the property to be read, but if this requires cross-thread interaction, then other threads may have to run as well. The debugger doesn't do this automatically, but certainly can, with your permission. Just click the little evaluate icon and it will run your code and evaluate the property.

Here is the post

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM