Connecting Tech Pros Worldwide Help | Site Map

File not found error ?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 15th, 2005, 05:39 AM
Vini
Guest
 
Posts: n/a
Default File not found error ?

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, 05:40 AM
Ravikanth[MVP]
Guest
 
Posts: n/a
Default 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, 05:40 AM
Ravikanth[MVP]
Guest
 
Posts: n/a
Default 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, 05:49 AM
Suzanne Cook [MS]
Guest
 
Posts: n/a
Default 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, 05:50 AM
vinit chauhan
Guest
 
Posts: n/a
Default 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, 05:50 AM
vinit chauhan
Guest
 
Posts: n/a
Default 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!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.