Weird error when running unit tests

Hey guys,

Finding this errror in the event log of my Windows XP development machine:

The description for Event ID ( 0 ) in Source ( VSTTExecution ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: (JetBrains.ReSharper.TaskRunner.CLR4.exe, PID 5024, Thread 7) Failed to create DataCollectionWatcher: System.ArgumentException: The directory name C:\Program Files\JetBrains\ReSharper\v5.1\Bin\PrivateAssemblies\DataCollectors is invalid.
   at System.IO.FileSystemWatcher.set_Path(String value)
   at Microsoft.VisualStudio.TestTools.Execution.DataCollectorWatcher.CreateFileSystemWatcher()
   at Microsoft.VisualStudio.TestTools.Execution.DataCollectorWatcher..ctor()
   at Microsoft.VisualStudio.TestTools.Execution.DataCollectorCache.set_AutoUpdateCache(Boolean value).



Make any sense to anyone?
I'm finding my machine has been crashing randomly and wondering if this is related.

I've google around a bit but don't seem to turn up much.

Thanks.

Frank
6 comments
Comment actions Permalink

Do you have somehow customized testrunconfig?

And, if possible, could you please create sample solution to reproduce this problem?

0
Comment actions Permalink

I was about to reproduce a supposed bug with resolving siteoforigin uris in WPF while I ran into the same weird exception.

I attach the sample. Just start the only contained test in debug mode and you should get the exception.

Btw. I don't have the PrivateAssemblies directory which is referred to in the exception.

One more weird thing, while browsing for this directory I noticed that I have a second JetBrains directory in Program Files called "JetBrains (2)", but I guess that is not related to this issue, but just an installation issue...



Attachment(s):
SiteOfOriginBugExample.zip
0
Comment actions Permalink

Test runs for me, although it never stops. But this is bug in test I belive, not in ReSharper.

PrivateAssemblies folder located in VS folder under Common7\IDE.

Which VS edition and OS do you have?

0
Comment actions Permalink

Did you use ReSharper to start the test in debug mode?

In my case if I start the test using VS Test View to run the test it's running forever (which is ok in this case, as this project was actually just a by-product while reproducing another issue). So this would be the expected behaviour. If I use ReSharper's test runner in debug mode I end up with the above exception, so I thought it might help you to reproduce the bug in ReSharper, as I am quite sure this exception is not expected behaviour. Here is the exception one more time:

System.ArgumentException was unhandled by user code
  Message=The directory name C:\Program Files\JetBrains\ReSharper\v5.1\Bin\PrivateAssemblies\DataCollectors is invalid.
  Source=System
  StackTrace:
       at System.IO.FileSystemWatcher.set_Path(String value)
       at Microsoft.VisualStudio.TestTools.Execution.DataCollectorWatcher.CreateFileSystemWatcher()
       at Microsoft.VisualStudio.TestTools.Execution.DataCollectorWatcher..ctor()
       at Microsoft.VisualStudio.TestTools.Execution.DataCollectorCache.set_AutoUpdateCache(Boolean value)
  InnerException:

I was talking about the PrivateAssemblies directory referred to in the exception. This one doesn't exist on my machine.

My setup is WinXP, VS2010 (10.0.30319.1), ReSharper (5.1.1727.12).

0
Comment actions Permalink

I'm experiencing the same issue.  VS 10 on Windows 7 64 bit.

0
Comment actions Permalink

I created the folders:

c:\Program Files\JetBrains\ReSharper\v5.1\Bin\PrivateAssemblies

c:\Program Files\JetBrains\ReSharper\v5.1\Bin\PrivateAssemblies\DataCollectors

and the error went away.

0

Please sign in to leave a comment.