HighTechTalks DotNet Forums  

Ensure that the File is a valid .NET Framework assembly.

Dotnet Framework (WinForms DesignTime) microsoft.public.dotnet.framework.windowsforms.designtime


Discuss Ensure that the File is a valid .NET Framework assembly. in the Dotnet Framework (WinForms DesignTime) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dave
 
Posts: n/a

Default Ensure that the File is a valid .NET Framework assembly. - 12-05-2004 , 11:09 PM






Attempting to inherit my form from a form in a different project. When I try
to add the inhertied form, I get the message "unable to load assembly...dll.
Ensure that the file is a valid .NET Framework assembly.

The base class compiles fine and I do have a reference. Any ideas regarding
what could cause this wonderfully descriptive message?

Reply With Quote
  #2  
Old   
Dave
 
Posts: n/a

Default RE: Ensure that the File is a valid .NET Framework assembly. - 12-07-2004 , 09:05 PM






Found the problem using FuslogVw. The framework was loading an obsolete
version of my DLL from the IDE folders.

"Dave" wrote:

Quote:
Attempting to inherit my form from a form in a different project. When I try
to add the inhertied form, I get the message "unable to load assembly...dll.
Ensure that the file is a valid .NET Framework assembly.

The base class compiles fine and I do have a reference. Any ideas regarding
what could cause this wonderfully descriptive message?

Reply With Quote
  #3  
Old   
Rasika Sherman
 
Posts: n/a

Default RE: Ensure that the File is a valid .NET Framework assembly. - 02-01-2005 , 11:43 PM



I had the same problem and after trying several times I found a way to do it

Instead of directly inheriting first add reference to the base view dll.
using Add Reference in your project.

Then compile the project.

Then try to add inherited form as in normal way.
This will allow you to select the dll in which you have your base view.

select it and this time it will show you available forms in the base dll without showing this error!

Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.