Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > missing methods in a dll reference

Reply
Thread Tools

missing methods in a dll reference

 
 
Aamir Ghanchi
Guest
Posts: n/a
 
      06-11-2008
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
 
Reply With Quote
 
 
 
 
aamir
Guest
Posts: n/a
 
      06-12-2008
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 <(E-Mail Removed)> wrote:
> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to find the class methods of a class, just like'methods' finds the instance methods? Kenneth McDonald Ruby 5 09-26-2008 03:09 PM
Crystal Reports - Visual Basic UFL that implements this function is missing (or U2lcom.dll is missing) Les Caudle ASP .Net 3 09-03-2007 02:27 AM
I am using dll from ASP but one of methods of dll cannot run a process Dave ASP General 0 07-21-2006 10:08 PM
PyQT dll's | missing qt-mtedu333.dll jelle Python 1 12-19-2005 09:01 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments