Can't load .dll after changing version

  • Thread starter Thread starter Jack Jackson
  • Start date Start date
J

Jack Jackson

I have two assemblies, AppObj and AppControls, that originally had the
default version of 1.0.0.0.

Another assembly, AppForms, references AppObj and AppControls as
Project references, and contains a class that inherits from
System.Window.Forms.Form.

If I change the version of either AppObj or AppControls to 1.0.0.* and
rebuild, I can no longer instantiate the class in AppForms, regardless
of whether or not I rebuild AppForms.

In the IDE I just get a generic "The base class could not be loaded"
error. For the AppForms project the IDE shows the new versions of
AppObj and AppControls in the list of references.

If I change the versions of AppObj and/or AppControls back to 1.0.0.0,
it works fine.

Does anyone have any idea why this is happening?
 
I have two assemblies, AppObj and AppControls, that originally had the
default version of 1.0.0.0.

Another assembly, AppForms, references AppObj and AppControls as
Project references, and contains a class that inherits from
System.Window.Forms.Form.

If I change the version of either AppObj or AppControls to 1.0.0.* and
rebuild, I can no longer instantiate the class in AppForms, regardless
of whether or not I rebuild AppForms.

In the IDE I just get a generic "The base class could not be loaded"
error. For the AppForms project the IDE shows the new versions of
AppObj and AppControls in the list of references.

If I change the versions of AppObj and/or AppControls back to 1.0.0.0,
it works fine.

Does anyone have any idea why this is happening?

Are these assemblies strong-named?
 
No. These are projects that are part of a solution.

But the assemblies these projects are producing are not strong-named,
correct? If they aren't strong-named, I'm not sure why version #'s will
affect any of this.
 
But the assemblies these projects are producing are not strong-named,
correct? If they aren't strong-named, I'm not sure why version #'s will
affect any of this.

I don't understand either.

Like I said, there is no problem at runtime. The only problem is that
the IDE won't display the design view of any form class inherited from
another form class, and also gets an error in the References - Add
Project.
 
Back
Top