By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,949 Members | 1,563 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,949 IT Pros & Developers. It's quick & easy.

Converting Class Library v1.0 to v1.1

P: n/a
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.
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
--
Phil Wilson [MVP Windows Installer]
----
"Brett" <br******@yahoo.com> wrote in message
news:b5**************************@posting.google.c om...
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.

Jul 21 '05 #2

P: n/a
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
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.