Connecting Tech Pros Worldwide Help | Site Map

File not found error ?

  #1  
Old November 15th, 2005, 06:39 AM
Vini
Guest
 
Posts: n/a
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"
  #2  
Old November 15th, 2005, 06:40 AM
Ravikanth[MVP]
Guest
 
Posts: n/a

re: File not found error ?


Hi

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

-Ravikanth[MVP]

[color=blue]
>-----Original Message-----
>hey all,
>i have a .dll file created using .NET 1.1
>in my windows forms application at .NET 1.0, i'm trying[/color]
to use it.[color=blue]
>i'm able to add it as a reference and getting[/color]
intellisense help also.[color=blue]
>when i try to create an object of any class declared in[/color]
this .dll, i[color=blue]
>got an exception :-
>System.IO.FileNotFoundException: File or assembly name[/color]
System, or one[color=blue]
>of its dependencies, was not found.
>File name: "System"
>
>the error comes only at runtime when i try to create an[/color]
object...?[color=blue]
>
>is this because .NET 1.1 is not backward compatible..?
>
>TIA
>
>"Vini"
>.
>[/color]
  #3  
Old November 15th, 2005, 06:40 AM
Ravikanth[MVP]
Guest
 
Posts: n/a

re: File not found error ?


Hi

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

-Ravikanth[MVP]

[color=blue]
>-----Original Message-----
>hey all,
>i have a .dll file created using .NET 1.1
>in my windows forms application at .NET 1.0, i'm trying[/color]
to use it.[color=blue]
>i'm able to add it as a reference and getting[/color]
intellisense help also.[color=blue]
>when i try to create an object of any class declared in[/color]
this .dll, i[color=blue]
>got an exception :-
>System.IO.FileNotFoundException: File or assembly name[/color]
System, or one[color=blue]
>of its dependencies, was not found.
>File name: "System"
>
>the error comes only at runtime when i try to create an[/color]
object...?[color=blue]
>
>is this because .NET 1.1 is not backward compatible..?
>
>TIA
>
>"Vini"
>.
>[/color]
  #4  
Old November 15th, 2005, 06:49 AM
Suzanne Cook [MS]
Guest
 
Posts: n/a

re: File not found error ?


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.


"Ravikanth[MVP]" <dvravikanth@hotmail.com> wrote in message
news:068501c358d9$2c95d3f0$a401280a@phx.gbl...[color=blue]
> Hi
>
> does your 1.1 dll using any other dlls. If so copy those
> dll also to 1.0 folder.
>
> -Ravikanth[MVP]
>
>[color=green]
> >-----Original Message-----
> >hey all,
> >i have a .dll file created using .NET 1.1
> >in my windows forms application at .NET 1.0, i'm trying[/color]
> to use it.[color=green]
> >i'm able to add it as a reference and getting[/color]
> intellisense help also.[color=green]
> >when i try to create an object of any class declared in[/color]
> this .dll, i[color=green]
> >got an exception :-
> >System.IO.FileNotFoundException: File or assembly name[/color]
> System, or one[color=green]
> >of its dependencies, was not found.
> >File name: "System"
> >
> >the error comes only at runtime when i try to create an[/color]
> object...?[color=green]
> >
> >is this because .NET 1.1 is not backward compatible..?
> >
> >TIA
> >
> >"Vini"
> >.
> >[/color][/color]


  #5  
Old November 15th, 2005, 06:50 AM
vinit chauhan
Guest
 
Posts: n/a

re: File not found error ?


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"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #6  
Old November 15th, 2005, 06:50 AM
vinit chauhan
Guest
 
Posts: n/a

re: File not found error ?


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"

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
file not found error Holly answers 1 November 8th, 2006 12:25 AM
File not found error? jiangyh answers 5 November 18th, 2005 11:14 PM
file not found error with C# dll jason answers 10 November 17th, 2005 03:19 AM
ASP 0126 Include file not found error Adil Akram answers 0 July 19th, 2005 12:42 PM
baffling 'file not found' error. I dare someone to solve this! TimS answers 5 July 19th, 2005 10:32 AM