File not found error ?

  • Thread starter Thread starter Vini
  • Start date Start date
V

Vini

hey all,
i have a .dll file created using .NET 1.1
in my windows forms application at .NET 1.0, i'm trying to use it.
i'm able to add it as a reference and getting intellisense help also.
when i try to create an object of any class declared in this .dll, i
got an exception :-
System.IO.FileNotFoundException: File or assembly name System, or one
of its dependencies, was not found.
File name: "System"

the error comes only at runtime when i try to create an object...?

is this because .NET 1.1 is not backward compatible..?

TIA

"Vini"
 
Hi

does your 1.1 dll using any other dlls. If so copy those
dll also to 1.0 folder.

-Ravikanth[MVP]
 
Well, that's not really recommended, because then you'll have references to
both the v1.0 and v1.1 versions of system.dll. If you then run your app on
the v1.0 CLR, you'll get both versions of system.dll loaded, and their types
will not be castable to each other.

I would recommend building/running your app against v1.1, since your
dependency requires it.

Suzanne Cook
My .NET CLR Loader blog: http://blogs.gotdotnet.com/suzcook/
--
Please do not respond directly to this alias. This alias is for newsgroup
purposes only. This posting is provided "AS IS" with no warranties, and
confers no rights.
 
hi,
some new points :-
i'm able to add the reference to the dll, and when i decleare the
object, there is no compilation error.
the error i get when i create the object (new SomeObj() say).
so if its just compatability issue, i shouldn't be able to add reference
too...
if i can add a reference...it means i can use the library...
Any other view...?
Thanx to all response.....

"Vini"
 
hi,

i'm able to use some other 1.1 dlls (eg Microsoft.Data.Odbc.dll) ?
its the problem only with this file (ByteFX.Data.dll).

when do u get this error usually..?

"Vini"
 
Back
Top