473,811 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

my class library doesn't contain an assembly - how to add an assem

I put together a simple test class libary (VB2005) with one class and one
function that takes an integer argument and adds 10 the argument and returns
that number. Then I created a simple VB2005 app to test my class library
function. I made a reference to testClassLib.dl l in the new project. Then I
made a function calls in a button sub and wrote the results to the console.
This worked fine.

Now I am trying to add a reference to a Reporting Services app (RS2003) to
the same class library, but the RS app is complaining that my class library
does not contain an asssembly. How do I add an assembly to my class library?
Or do I have to write the class library in VB2003? Or is it a C# thing?

Thanks,
Rich
Nov 16 '06 #1
3 2201
OK. I just rewrote my test class library in VB2003. Now RS2003 recognizes
it. In the project properties of my VB2003 class library it states Assembly
name and the name of the assembly. Does VB2005 not use assemblies anymore?
I am just asking for my own information. If VB2005 does use assemblies - how
do I add it to the class library dll?

Or is this an issue of No Backwards Compatability?

"Rich" wrote:
I put together a simple test class libary (VB2005) with one class and one
function that takes an integer argument and adds 10 the argument and returns
that number. Then I created a simple VB2005 app to test my class library
function. I made a reference to testClassLib.dl l in the new project. Then I
made a function calls in a button sub and wrote the results to the console.
This worked fine.

Now I am trying to add a reference to a Reporting Services app (RS2003) to
the same class library, but the RS app is complaining that my class library
does not contain an asssembly. How do I add an assembly to my class library?
Or do I have to write the class library in VB2003? Or is it a C# thing?

Thanks,
Rich
Nov 16 '06 #2
I just created a test app in VB2003 and tried to reference my dll from
VB2005. It complained. So I guess there is no backwards compatability on
this.

"Rich" wrote:
OK. I just rewrote my test class library in VB2003. Now RS2003 recognizes
it. In the project properties of my VB2003 class library it states Assembly
name and the name of the assembly. Does VB2005 not use assemblies anymore?
I am just asking for my own information. If VB2005 does use assemblies - how
do I add it to the class library dll?

Or is this an issue of No Backwards Compatability?

"Rich" wrote:
I put together a simple test class libary (VB2005) with one class and one
function that takes an integer argument and adds 10 the argument and returns
that number. Then I created a simple VB2005 app to test my class library
function. I made a reference to testClassLib.dl l in the new project. Then I
made a function calls in a button sub and wrote the results to the console.
This worked fine.

Now I am trying to add a reference to a Reporting Services app (RS2003) to
the same class library, but the RS app is complaining that my class library
does not contain an asssembly. How do I add an assembly to my class library?
Or do I have to write the class library in VB2003? Or is it a C# thing?

Thanks,
Rich
Nov 16 '06 #3
Rich wrote:
I just created a test app in VB2003 and tried to reference my dll from
VB2005. It complained. So I guess there is no backwards compatability on
this.
..Net 2.0 apps can reference .Net 1.1 assemblies. What was the
"complaint" from VS?

Nov 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6443
by: DM | last post by:
Get this error when I try to run any ASP.NET web app from Visual Studio on my Win2K PC. Anyone seen this before ? BC32400: Class 'CLSID_CorSymWriter' could not be created: System Error &H80040154& C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.0.3 705 \vbc.exe" /t:library /utf8output /R:"c:\winnt\microsoft.net \framework\v1.0.3705\temporary asp.net
3
1892
by: Makarand Keer | last post by:
Hi All I have around 3 versions of same assembly installed in my GAC. Now I have to un-install all these assem from GAC, for this I removed all the references to these assem and called gacutil - u assname. However it is not getting uninstalled, saying one or more applications are using these assem. Could anybody help me uninstalling these assem from GAC Makarand
1
3226
by: Jeff Molby | last post by:
Sorry for the crossposting guys. I figured this one might be a little tricky, so I'm calling upon the C# brains out there to help out this poor VB developer. I know enough C# to translate any code you can offer, if necessary. I have a very loosely coupled WinForms app written in VB.Net, Framework v1.1 I need to take a string value which contains the unqualified name of a class, find the assembly that contains such a class, and...
6
3413
by: ryan.d.rembaum | last post by:
Hello, I have code that I wish to use in many web applications. Basically sort of stand utility stuff. So from Visual Studio Project I select add a component and chose Component Class. Lets say I enter code at the end of this question in to the code section. How then would I reference this in a new Web Application (or in the same web application for that matter?)
1
1653
by: JimC | last post by:
I use reflection to get a GIF image that contains a transparency mask (the white background should be transparent) that is part of my C# project build. The problem is that the image's transparency property disappears when I render it making it look as if were a JPEG image. The code I use is: Assembly assem = this.GetType().Assembly; Stream streamTransPic =
1
2838
by: learning | last post by:
Hi how can I instaltiate a class and call its method. the class has non default constructor. all examples i see only with class of defatul constructor. I am trying to pull the unit test out from the product source code, but still want to execute them under nunit. I am trying this idea on nunit sample source code. Here is my class and the experiemental code: both money.cs and Imoney.cs is compiled to cs_money.dll. then I create another...
1
2148
by: hardieca | last post by:
Hi! I decorate my unfinished classes and methods with a custom TODO attribute (as in things To Do). Using reflection, I am then able to parse through my classes and output all TODOs to a list I can examine to figure out what is left to be done in my application. The attribute is coded thusly: AttributeUsage((AttributeTargets.Class | AttributeTargets.Method),
0
1401
by: mkadasi | last post by:
I want to dynamically create instance of class stored in other application. I am writing the following code for this purpose: Here in the AssemblyFunc() I am loading the assembly of TariffClass application which is loaded successfully. In objectCreate() I am creating object of class present in TariffClass application. But I am getting the following error 'Could not load file or assembly 'file:///C:\Inetpub\wwwroot\QuickQuote\TariffClass,...
0
868
by: Chepre | last post by:
Hi, I've the following problem. I load an assembly dinamically through code, but I can't call the method GetCredentials correctly, it's allways null. Assembly assem = Assembly.LoadFrom(@"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI\Microsoft.SharePoint.Portal.SingleSignon.dll"); Type typCred = assem.GetType("Microsoft.SharePoint.Portal.SingleSignon.Credentials"); System.Type arrTypes = new System.Type;...
0
9728
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10402
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10135
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9205
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.