473,385 Members | 1,863 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,385 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 1999
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
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.