473,409 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Converting Class Library v1.0 to v1.1

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
2 2002
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Newbee Adam | last post by:
I have been reading in help how I need to use decimal becuase currency does not exist like I used in vb6. I had a difficult time on google and msdn finding how or if I can take the value of text...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
4
by: Brett | last post by:
Hi, I'm having trouble converting an old project to visual studio C++ .net v7.1.3088 I've updated one of the header files to use #include <iostream>, and used the std namspace. After...
6
by: Keith Patrick | last post by:
I have to do some programmatic redirects (in several pages) based on URLs I am given from an external source. The URLs have querystrings at the end, but one in particular is about 240 chars long,...
2
by: Rod | last post by:
We've got an old VB6 application we wrote years ago, that we're working on converting parts of, to an ASP.NET application. So far, the work is going well. Now I'm looking at trying to convert...
1
by: darrel | last post by:
I have two issues: 1) The WYSIWYG content editor we're using for our CMS doesn't truly support xhtml. 2) .net doesn't truly support xhtml my question is if there is a .net...
4
by: Clark Stevens | last post by:
I have a program that I'm converting from VB6 to VB.NET. It reads in a text file containing barcode numbers and their corresponding descriptions. Then the user enters the barcode number and the...
23
by: Nikhil Patel | last post by:
Hi all, How can I convert an integer to its equivalent ascii character without using Microsoft.VisualBasic dll or any other dll(I want to reference only System.dll). Thanks. -Nikhil
3
by: fakeprogress | last post by:
How would I go about converting this C code to C++? /* LIBRARY is an array of structures */ /* This function compares 'tcode' with */ /* existing codes in the array. */ /* It...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.