简体   繁体   English

ASP.NET MVC或更多VS调试问题-EF / Sql函数评估要求所有线程都运行[保持]

[英]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". 函数评估要求所有线程都运行:我在调试模式下可以查看的两个属性上获得此信息:1)Local:类型为“ System.Collections.ObjectModel.ObservableCollection” 2)Sql:类型为“串”。 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. 当我单击“强制评估”按钮确实解决了Sql类型的问题时,但是当我单击“本地”的相同按钮时,它仍然显示相同的错误。 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. 我的代码运行正常,并且EF正在将数据从SQL DB检索到我的主页。 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." 在调试问题之后,我发现我的变量没有保存SQL DB中的值,并且在进一步检查要发现的问题时说: “函数评估要求所有线程都运行。”

Looking forward for your expert advice! 期待您的专家意见! If I am missing the details of problem space then please do let me know. 如果我缺少问题空间的详细信息,请告诉我。 Regards, Bash. 问候,Bash。

I found this post form msdn forum: 我发现此帖子来自msdn论坛:

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 这是帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 调试期间的 Visual Studio:function 评估需要所有线程运行 - Visual Studio during Debugging: The function evaluation requires all threads to run 功能评估需要运行所有线程 - The function evaluation requires all threads to run 什么是 function 评估需要所有线程运行? - What is the function evaluation requires all threads to run? VS2015 Watch LINQ var错误:函数评估需要运行所有线程 - VS2015 Watch LINQ var Error: The function evaluation requires all threads to run 懒 <T> :“功能评估需要所有线程运行” - Lazy<T>: “The function evaluation requires all threads to run” 虚拟列表 <T> :“功能评估需要所有线程运行” - virtual List<T> :“The function evaluation requires all threads to run” 如何在没有“函数求值要求所有线程都运行”的情况下在后台调用方法 - How can I call a method in the background without “The function evaluation requires all threads to run” EntityFramework中的SaveChanges()不保存更改。 显示“函数评估要求所有线程都运行” - SaveChanges() in EntityFramework not saving changes. Showing “The function evaluation requires all threads to run” ASP.NET MVC 调试非常慢 - SQL Server Express 连接问题? - ASP.NET MVC Debugging Very Slow - SQL Server Express Connection Issue? VS2010卸载后的ASP.NET MVC调试 - ASP.NET MVC debugging following VS2010 uninstall
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM