Re: Could not load file or assembly nunit.framework

"Charlie Poole" <[email protected]> Mon, 6 Oct 2008 09:55:25 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <007901c927d4$55fc7c10$6401a8c0@ferrari>
This is a multi-part message in MIME format.

--===============6352331767700070427==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_007A_01C92799.A99DA410"

This is a multi-part message in MIME format.

------=_NextPart_000_007A_01C92799.A99DA410
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hi T P,
 
No, it's up to you to set up your apps so that all parts of it are present
when it runs. It's
normal in .NET that you have to make any assemblies - except those in the
GAC - 
available to your application at run time.
 
If you can explain how you are compiling and running your app, we can give
you
more exact advice.  Remember, that there are lots of ways to do .NET, so we
don't
know if you're on Windows or Linux, use Monodevelop or VS or the command
line. :-)
 
Please try to do something about your mails coming to us multiple times.
 
Charlie


  _____  

From: T P [mailto:[email protected]] 
Sent: Monday, October 06, 2008 2:18 AM
To: Charlie Poole
Cc: [email protected]
Subject: Re: [Nunit-users] Could not load file or assembly nunit.framework


Thanks, that was it.  Is there some environment variable or command line
argument I should be setting to pass in the path?

Adam


On Sun, Oct 5, 2008 at 10:53 AM, Charlie Poole <[email protected]>
wrote:


Hi T P,
 
The message would seem to indicate that the nunit.framework.dll is not
available
to your test assembly at runtime. Have you looked in the directory contaiing
the test assembly?
 
Charlie


  _____  

From: T P [mailto:[email protected]] 
Sent: Sunday, October 05, 2008 4:32 AM
To: [email protected]
Subject: [Nunit-users] Could not load file or assembly nunit.framework


    Could not load file or assembly 'nunit.framework, Version=2.4.8.0,
Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its
dependencies. The system cannot find the file specified.

I have just installed nunit and built a project that uses it.  When I try to
run nunit on the generated test dll I get this error.  If I go into the gui
and try to add the nunit.framework.dll directly I get the same error.
Running the supplied nunit self-tests works.




------=_NextPart_000_007A_01C92799.A99DA410
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16705" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>Hi T=20
P,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D468085016-06102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>No,=20
it's up to you to set up your apps so that all parts of it are present =
when it=20
runs. It's</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>normal=20
in .NET that you have to make any assemblies - except those in the GAC - =

</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D468085016-06102008>available to your application at run=20
time.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D468085016-06102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>If you=20
can explain how you are compiling and running your app, we can give=20
you</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>more=20
exact advice.&nbsp; Remember, that there are lots of ways to do .NET, so =
we=20
don't</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>know=20
if you're on Windows or Linux, use Monodevelop or VS or the command =
line.=20
:-)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D468085016-06102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D468085016-06102008>Please=20
try to do something about your mails coming to us multiple=20
times.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D468085016-06102008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D468085016-06102008>Charlie</SPAN></FONT></DIV><BR>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
  <HR tabIndex=3D-1>
  <FONT face=3DTahoma size=3D2><B>From:</B> T P =
[mailto:[email protected]]=20
  <BR><B>Sent:</B> Monday, October 06, 2008 2:18 AM<BR><B>To:</B> =
Charlie=20
  Poole<BR><B>Cc:</B> =
[email protected]<BR><B>Subject:</B> Re:=20
  [Nunit-users] Could not load file or assembly=20
  nunit.framework<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=3Dltr>Thanks, that was it.&nbsp; Is there some environment =
variable or=20
  command line argument I should be setting to pass in the=20
  path?<BR><BR>Adam<BR><BR>
  <DIV class=3Dgmail_quote>On Sun, Oct 5, 2008 at 10:53 AM, Charlie =
Poole <SPAN=20
  dir=3Dltr>&lt;<A=20
  =
href=3D"mailto:[email protected]">[email protected]</=
A>&gt;</SPAN>=20
  wrote:<BR>
  <BLOCKQUOTE class=3Dgmail_quote=20
  style=3D"PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: =
rgb(204,204,204) 1px solid">
    <DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>Hi T =
P,</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>The message =
would seem to=20
    indicate that the nunit.framework.dll is not =
available</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>to your test =
assembly at=20
    runtime. Have you looked in the directory =
contaiing</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff size=3D2>the test=20
    assembly?</FONT></SPAN></DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN><FONT face=3DArial color=3D#0000ff=20
    size=3D2>Charlie</FONT></SPAN></DIV><BR>
    <BLOCKQUOTE dir=3Dltr=20
    style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: =
rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
      <DIV lang=3Den-us dir=3Dltr align=3Dleft>
      <HR>
      <FONT face=3DTahoma size=3D2><B>From:</B> T P [mailto:<A=20
      href=3D"mailto:[email protected]" =
target=3D_blank>[email protected]</A>]=20
      <BR><B>Sent:</B> Sunday, October 05, 2008 4:32 AM<BR><B>To:</B> <A =

      href=3D"mailto:[email protected]"=20
      =
target=3D_blank>[email protected]</A><BR><B>Subject:</B> =

      [Nunit-users] Could not load file or assembly=20
      nunit.framework<BR></FONT><BR></DIV>
      <DIV class=3DIh2E3d>
      <DIV></DIV>
      <DIV dir=3Dltr>&nbsp;&nbsp;&nbsp; Could not load file or assembly=20
      'nunit.framework, Version=3D<A href=3D"http://2.4.8.0"=20
      target=3D_blank>2.4.8.0</A>, Culture=3Dneutral,=20
      PublicKeyToken=3D96d09a1eb7f44a77' or one of its dependencies. The =
system=20
      cannot find the file specified.<BR><BR>I have just installed nunit =
and=20
      built a project that uses it.&nbsp; When I try to run nunit on the =

      generated test dll I get this error.&nbsp; If I go into the gui =
and try to=20
      add the nunit.framework.dll directly I get the same error.&nbsp; =
Running=20
      the supplied nunit self-tests=20
  =
works.<BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></B=
LOCKQUOTE></BODY></HTML>

------=_NextPart_000_007A_01C92799.A99DA410--




--===============6352331767700070427==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============6352331767700070427==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users

--===============6352331767700070427==--