[Mono-list] EnumCheck

Gaurav Vaish gvaish@iitk.ac.in
Thu, 24 Jan 2002 17:25:40 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C1A4FC.25076500
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: 7bit

Hi,
    I am unable to makeout why Assembly.Load is unable to load the assemblies?
    The directory "C:\WINNT\Microsoft.NET\Framework\v1.0.3705", where assemblies
exist, is included in my path. I have tried all variations of the parameters,
viz,
        assemblyName
        path + assemblyName
        assemblyName + ".dll"
        path + assemblyName + ".dll"

    All giving the same exception that it failed to locate the assembly / file
by the name given. Any clues?

    If you read the second line of the error included, you'll find a shitting
error:
        Unhandled Exception: System.IO.FileNotFoundException: File or assembly
name C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Web.dll, or one of its
dependencies, was not found.

    Oh damn man, the file does exist. What now?


Cheers,
Gaurav Vaish
http://mastergaurav.virtualave.net
http://calendar.yahoo.com/mastergaurav
---------------------------------


------=_NextPart_000_0005_01C1A4FC.25076500
Content-Type: application/octet-stream;
	name="EnumError.dat"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="EnumError.dat"

=0A=
Unhandled Exception: System.IO.FileNotFoundException: File or assembly =
name C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Web.dll, or one =
of its dependencies, was not found.
File name: "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Web.dll"
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String =
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean =
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, =
Boolean stringized, Evidence assemblySecurity, StackCrawlMark& =
stackMark)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, =
Evidence assemblySecurity, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.Load(String assemblyString)
   at Mono.Enumerations.EnumCheck.LoadType()
   at Mono.Enumerations.EnumCheck.Display()
   at Mono.Enumerations.EnumCheck.Main(String[] args)

Fusion log follows:=20
=3D=3D=3D Pre-bind state information =3D=3D=3D
LOG: DisplayName =3D =
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Web.dll=0A=
 (Partial)
LOG: Appbase =3D d:\GoMono\mcs\tools\
LOG: Initial PrivatePath =3D NULL
Calling assembly : EnumCheck, Version=3D0.0.0.0, Culture=3Dneutral, =
PublicKeyToken=3Dnull.
=3D=3D=3D=0A=

LOG: Application configuration file does not exist.
LOG: Policy not being applied to reference at this time (private, =
custom, partial, or location-based assembly bind).
LOG: Post-policy reference: =
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Web.dll
LOG: Attempting download of new URL =
file:///d:/GoMono/mcs/tools/C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Sy=
stem.Web.dll.DLL.
LOG: Attempting download of new URL =
file:///d:/GoMono/mcs/tools/C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Sy=
stem.Web.dll/C:/WINNT/Microsoft.NET/Framework/v1.0.3705/System.Web.dll.DL=
L.
LOG: Attempting download of new URL =
file:///d:/GoMono/mcs/tools/C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Sy=
stem.Web.dll.EXE.
LOG: Attempting download of new URL =
file:///d:/GoMono/mcs/tools/C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Sy=
stem.Web.dll/C:/WINNT/Microsoft.NET/Framework/v1.0.3705/System.Web.dll.EX=
E.
=00=0A=

------=_NextPart_000_0005_01C1A4FC.25076500--