Hello Danielm,
According to your description, you faced an issue that VS 2008 IDE crashed
in MSTest, but in command line MSTest works fine. If I misunderstood
anything here, please don't hesitate to correct me.
IDE crash/hang issues are difficult to track on newsgroup. I suggest you
may consider creating new library project and unit test on this assemble.
Thereby, we can confirm if this is a project specific issue or VS IDE
issue. Moreover, I'm afraid to say the error "Target Invocation Exception"
doesn't help. Actually, we need more detailed information to start
investigating. Have you checked Application Event log? Is there any error
log in it?
Please feel free to let us know if you have any more concern. We are glad
to assist you.
Have a great day,
Best regards,
Wen Yuan
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
daniel - 13 Mar 2008 06:04 GMT
Hi Wen,
I have found that if i create a small solution with a project then
everything works fine, or if i create a solution and only add a subset of my
test projects it is fine. My problem seems occur as i add more test projects
to the solution. When i seems to reach about 3000 tests then the IDE will
hang.
Each time that the IDE crashes i have been sending the Error Report to
microsoft... When i look at the report myself each time there seems to be a
reference to the System.Drawing Assembly ( none of my projects reference the
System.Drawing Assembly ).

Signature
Daniel
> Hello Danielm,
>
[quoted text clipped - 40 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
Wen Yuan Wang [MSFT] - 14 Mar 2008 10:59 GMT
Hello Daneil,
Thanks for your reply.
I believe VS IDE calls System.Drawing dll to draw test tasks on UI.
However, in command line, MSTest doesn't need to draw anything in UI. This
is why it works fine. This sounds like a VS IDE issue. Is it possible for
you to send me the Error Report when VS IDE crashes? My email address is
v-wywang@microsoft.com. I'm willing to investigate on it.
Please feel free to let me know if you have any more concern. We are glad
to assist you.
Have a great day,
Best regards,
Wen Yuan
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
daniel - 18 Mar 2008 00:14 GMT
Hi Wen,
As Requested I will reproduce the issue and send you the error report.

Signature
Daniel
> Hello Daneil,
> Thanks for your reply.
[quoted text clipped - 18 lines]
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.