Converting Class Library v1.0 to v1.1

B

Brett

I had a developer send me a VB.NET class library that was developed in
Visual Studio .NET v1.0. I loaded the VB project and Visual Studio
..Net v1.1 and I converted the project to v1.1. I recombiled the class
library to create a dll. I then created a C# web application that
references the dll. I am able to read the object in design time and
do all of my work. When I run the application the web page works fine
b/c I am not doing any thing within the Page_OnLoad(). When I press a
command button, I get the following error:

Could not load type EDPM.BO.clsPIO from assembly EDPM,
Version=1.0.1363.24143, Culture=neutral, PublicKeyToken=null.

Description: An unhandled exception occurred during the execution of
the current web request.

Exception Details: System.TypeLoadException: Could not load type
EDPM.BO.clsPIO from assembly EDPM, Version=1.0.1363.24143,
Culture=neutral, PublicKeyToken=null.

I also created a WinForms application in v1.1 and referenced the
object. Again, in design time, I can communicate with the object, but
at runtime, I get an error.

Can any one give me some ideas of where to look for the problem.
 
P

Phil Wilson

At first glance, it looks like your assembly version is being generated by a
1.0.* entry in your AssemblyInfo file, and that your web app is looking for a
different one. It works in your development environment because every time you
build the library, the client forms app is being built with a reference to the
version just compiled. Nail down the version, and make sure your web app knows
which one to use.
 
B

Brett

I have checked the AssemblyInfo.vb in the class library project and
AssemblyInfo.cs in the c# web app. They both have the following:

<Assembly: AssemblyVersion("1.0.*")>

I am assuming this is what you were wanting me to check. Any other
ideas?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top