Jan 06, 2010 05:55 PM|lkmckinney|LINK
Here are a few more things that might help track down the reason for the issue:
In TestCaseManager.cs, GetTestTypes is the function that is throwing this exception. The number of assemblies returned by AppDomain.CurrentDomain.GetAssemblies is different the first time through than the second time through. The first time through our
test assembly is included in that set but it is not in the second.
There is a virtual directory created by the runner using the path passed in. That virtual directory doesn't get removed when the code is done but using that virtual directory interactively after it is created fails just as running the LTAFRunner a second
time. Similarly, any virtual directory that previously existed that points to the same files also fails after running the LTAFRunner. Removing the virtual directory that is created doesn't clear up the issue.
Since I had the code for the test runner (LTAFRunner.exe), I made a modification to see if the creation of the virtual directory is causing the problem. I added a parameter to input the virtual directory name to use instead of creating a new one and modified
the code that is doing that to skip the code that creates the virtual directory if that parameter is defined. After compiling the exe, I ran the test runner from the command line and with this modification I can run the tests multiple times without getting
I would think that was the issue except we have had another person set up just the test website and try running the site interactively (using the browser and not the test runner) who is seeing the same second and subsequent run issues.