what does GetSchoolQueryable give back? a collection of school obects?
Main Topics
Browse All TopicsHello.
I'm building an application in ASP.NET 2.0 and I'm making an option to upload an excel file and insert the data from the first sheet of the excel file into the database. I'm using the office12.dll to be able to open the excel file. I use 3 methods: btnUpload_Click(), ExcelScanIntenal() and ProcessObjects().
I run the aplication in debug mode with a breakpoint in the btnUpload_Click method and when I try to see the value of any of the properties of the school object I get this message: "Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized.".
Because of this whenever I try to do something with the school object (like comparing the values of some of the properties with some other data) it fails.
I don't know what it means and how to solve the problem.
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
After one week of testing me and my collegues have finally reached a conclusion. We get the massage on multiple machines so the problem is afterall with Visual Studio 2008 debugger (or the .net framework). If i continue the application skiping the error it works, but if you want to see the value of properties while debugging you can't.
Business Accounts
Answer for Membership
by: lijunguoPosted on 2008-08-26 at 21:52:57ID: 22321950
Probably there is exception in your code and you don't have any logic to catch those exceptions. Put some something in your catch block. And that's why you cannot evaluate your object.