Re: ...being used by another process

Ronnie Mukherjee <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
Hi Charlie

I'm still having no joy. Here are the last 10 steps I've taken:

1. Attempted to run NUnitTests.nunit from the GUI, from the source controlled directory. Received the error message described below (could not load test-utilities.dll or one of its dependencies)
2. Attempted to run NUnitTests.nunit from the command prompt, same error message.
3. Searched for all files with filename like "nunit" - search returned dll files in source controlled directory (all v2.4.1), dll files in a project directory (I added them this morning, they are the correct version)
4. Searched for files with filename like "test-utilities", search returned some assembly binding log files, plus test-utilities.dll in source control directory - the correct version, 2.4.1.
5. Deleted "nunit20" directory, which is referred to in some of the assembly binding log files returned by search above. Full path was C:\Documents and Settings\Ronnie Mukherjee\Local Settings\Temp (this directory has since recreated itself)
6. Restarted my machine (worth a try)
7. Tried to run nunit-console NUnitTests.nunit, same error message
8. Tried NUnitTests.nunit from gui app, same error message
9. Deleted dll files from unrelated project mentioned in step 3.
10. Tried nunit-console NUnitTests.nunit, same error message

I've been trying things like this for most of today. The strange thing is, the first time I tried to run NUnitTests.nunit from the console window, it actually did something, produced lots of full stops and 'F's, but also a series of "being used by another process" errors. However, since that point I have been unable to rerun this project.

My next plan of action would be to remove the source controlled directory and try all this kind of stuff with a freshly downloaded version of 2.4.7, although I already tried that yesterday.

Thanks

Ronnie



From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [Nunit-users] ...being used by another process
Date: Tue, 1 Apr 2008 14:48:00 -0700










Hi 
Ronnie,
 
It's best to 
try with the version you will be working with - but watch out for mixing 
them
in your 
own projects. When not sure about any project, just remove all 
nunit.*.dll
assemblies 
from the bin directories and start over. Remove any nunit 
references
and re-create 
them pointing to the install you actually want to use.
 
Provided you 
don't have any mixed copies of NUnit assemblies, it works 
equally
well when 
installed with the msi or executed directly from a 
source-controlled
directory - 
just make sure all references are to the same copy of NUnit 
that
you will use 
to run the tests.
 
Charlie


  
  
  From: Ronnie Mukherjee [mailto:[email protected]] 
  
Sent: Tuesday, April 01, 2008 12:32 PM
To: Charlie Poole; 
  [email protected]
Subject: RE: [Nunit-users] 
  ...being used by another process


  Sorry Charlie I think I was getting frustrated and have confused 
  myself.

The version I currently have is 2.4.1. This is controlled by 
  source control, so I have just copied an nunit folder from our central 
  repository and am running the gui from there.

Earlier today I had 
  downloaded 2.4.7 and was trying with that. If you think it would be better to 
  download 2.4.7 again and remove the source controlled version then I can do 
  so.

The 2.4.1 version was downloaded by a colleague a while ago, but we 
  haven't really been using unit tests up to now. However I have a big project 
  starting soon so would like to try and get it sorted before then, through the 
  source controlled version or 
  otherwise.

Thanks

Ronnie




  
    
    From: [email protected]
To: 
    [email protected]
Date: Tue, 1 Apr 2008 10:48:34 
    -0700
Subject: Re: [Nunit-users] ...being used by another process


    
    

    Is 
    2.4.1 in the message a typo? If not, you appear to have multiple versions of 
    NUnit
    mixed 
    on your system. Multiple installs of NUnit may co-exist provided copies 
    of
    the 
    assemblies are not left around in out of the way places. 
    Unfortunately,
    Visual 
    Studio has a habit of doing just that.
     
    Charlie

    
      
      
      From: [email protected] 
      [mailto:[email protected]] On Behalf Of 
      Ronnie Mukherjee
Sent: Tuesday, April 01, 2008 9:20 
      AM
To: Charlie Poole; 
      [email protected]
Subject: Re: [Nunit-users] 
      ...being used by another process


      
When I try to open NUnitTests.nunit in the GUI, I get the 
      following error message :

System.IO.FileLoadException : Could not load file or assembly 
      'test-utilities, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null' or 
      one of its dependencies. The process cannot access the file because it is 
      being used by another process. (Exception from HRESULT: 
      0x80070020)

Thanks

Ronnie


      
        
        From: [email protected]
To: [email protected]; 
        [email protected]
Subject: RE: [Nunit-users] ...being 
        used by another process
Date: Tue, 1 Apr 2008 08:52:58 -0700


        

        The message is a 
        fairly generic one from .NET and can't be used to 
        solve
        any problems - the 
        details count, particularly what "blah" is.
         
        If you are unable to load an assemby that 
        is designed to be loaded and run
        independently, that's a problem we should 
        try to solve. Only a few of the 
        test assemblies that come with NUnit are 
        intended to be run that way, so
        it's not necessarily a problem that you 
        can't run nunit.util.dll.
         
        Were you able to run 
        the NUnit verification tests after install? You 
        get
        them by loading 
        NUnitTests.nunit, which provides the proper 
        config
        file for the 
        individual assemblies.
         
        If you are able to run the verification 
        tests, then you are properly
        installed and we need to get into the 
        details of a particular project.
         
        Charlie
        

        
          
          
          From: 
          [email protected] 
          [mailto:[email protected]] On Behalf Of 
          Ronnie Mukherjee
Sent: Tuesday, April 01, 2008 7:24 
          AM
To: [email protected]
Subject: 
          [Nunit-users] ...being used by another process


          Hi 
 
Sorry for posting on a problem which 
          has already been posted about, but I'm getting that message "blah.dll 
          is being used by another process", etc. 
 
I've tried 
          removing all references to Nunit and reinstalling. Rereferencing in my 
          project, etc. 
 
I'm using version 2.4.7, by the 
          way. 
 
There are a few dll files in the Nunit 
          directory which I am able to open. For example, I can open 
          nunit.util.tests.dll, but when I run all tests on this assembly, a 
          large handful of the tests fail with that same message "Could not 
          load...etc...being used by another process" 
 
Can 
          anyone please offer 
          advice? 
 
Thanks 
 
Ronnie 
          Mukherjee

          
          Have you played Fishticuffs? Get fish-slapping on Messenger 
      

      
      Have you played Fishticuffs? Get fish-slapping on Messenger 


  
  Have you played Fishticuffs? Get fish-slapping on Messenger 

_________________________________________________________________
The next generation of Windows Live is here
http://www.windowslive.co.uk/get-live

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.