473,396 Members | 1,968 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,396 software developers and data experts.

missing methods in a dll reference

Hi,

All the methods from a dll class are not showing up in the object
browser/intelisense when the dll reference is added to a website
project.

Details:
The dll is a C# project that has 15 overloads of a method. It compiles
fine. We have a .Net 2.0 VB Website project that was originally a 1.1
project. When a reference to the dll is added to the website, only 9
of the 15 overloads show up in the object browser, plus development
time errors show up for the method calls in the website for which we
know for sure have a method definition in the dll class. We thought it
was an IDE issue and is development time only, but the website won't
run either and will throw exception on the same lines.

One of us created an empty website project and added that dll
reference to it and all the 15 methods were there in the object
browser. once we copied the code files form the original website to
the empty ones, we were back to 9 methods again.

This has been a vexing problem and I would like to know if anyone else
ever ran into same problem. Will appreciate to hear from you.

Thanks in advance.

AG
Jun 27 '08 #1
1 1756
Problem is solved!
for the benefit of others here is the solution:
We were getting number of warnings that talked about the dll class
file being not CLS compliant. We followed the instruction in this
article to make the dll code CLS compliant :
http://www.devarticles.com/c/a/C-Sha...CLS-Compliant/
And Volla! that fixed the problem. From what we understood the
overloaded methods in the C# dll project caused ambiguity for the VB
compiler in the website project because some of them had identicle
signature except for the out parameters.

Long story short, moral of the story is "pay heed to the warnings"

AG.

On Jun 11, 10:15*am, Aamir Ghanchi <aamirghan...@gmail.comwrote:
Hi,

All the methods from a dll class are not showing up in the object
browser/intelisense when the dll reference is added to a website
project.

Details:
The dll is a C# project that has 15 overloads of a method. It compiles
fine. We have a .Net 2.0 VB Website project that was originally a 1.1
project. When a reference to the dll is added to the website, only 9
of the 15 overloads show up in the object browser, plus development
time errors show up for the method calls in the website for which we
know for sure have a method definition in the dll class. We thought it
was an IDE issue and is development time only, but the website won't
run either and will throw exception on the same lines.

One of us created an empty website project and added that dll
reference to it and all the 15 methods were there in the object
browser. once we copied the code files form the original website to
the empty ones, we were back to 9 methods again.

This has been a vexing problem and I would like to know if anyone else
ever ran into same problem. Will appreciate to hear from you.

Thanks in advance.

AG
Jun 27 '08 #2

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

Similar topics

5
by: Dennis M. Marks | last post by:
My script opens a window that is supposed to be resizable and scrollable. I am on a Mac. With IE 5.1.7 it works fine. With Netscape 6 there is no scroll bar. I am able to resize it smaller than the...
7
by: Nick Zdunic | last post by:
I have a remotable object running in my host application. The host starts up and creates the object. Within a method to start the remote object doing its thing it creates an object. ...
1
by: Junior | last post by:
I keep receiving this "The type or namespace name 'CASsEventHandler' could not be found (are you missing a using directive or an assembly reference?)" message in two particular lines, and I've...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
3
by: michael | last post by:
I have an object which needs the WithEvents Declaration. But some machines which it is installed on will not have the DLL. Is there an easy way to ignore the Error 'Can't find project or library'...
3
by: S. van Beek | last post by:
Dear reader, I still have a problem with my reference libraries. In my frond end application a check procedure for missing references is available. The problem I confronted with is that...
3
by: Elliot M. Rodriguez | last post by:
A 3rd party OCX that I am using in a VB.NET app is missing several properties and methods in Intellisense. I know they are missing because I have the complete API reference for the OCX, and if I...
12
by: Andrew Poulos | last post by:
With the following code I can't understand why this.num keeps incrementing each time I create a new instance of Foo. For each instance I'm expecting this.num to alert as 1 but keeps incrementing. ...
4
by: WT | last post by:
Hello, How could we simulate the IsClientScriptBlocRegistered method of ClientScript when we use an update panel and the static ScriptManager ? Is this test already included in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
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
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
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
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...

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.