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

.NET assembly only PARTIALLY exposed to COM

I built my assembly with the "Register for COM Interop" box checked.

I could reference my assembly and see the classes, but IntelliSense and the
Object Browser could not see the methods nor properties.

I used TlbExp and RegAsm with the same result.

How can I get IntelliSense and Object Browser to see the details of my
classes?

Thanks,
Andrew J. Marshall
MCP (Visual Basic)
Fairfax, VA
Jul 21 '05 #1
1 1219
Sorry for replying to my own post, but ...

This article http://www.u2u.net/ArticlePage.aspx?ART=msdncominterop by
Patrick Tisseghem is awesome and it gave me my answer ...

You need to (in VB.NET)
* import System.Runtime.InteropServices
* and prefix the class declaration with
"<ClassInterface(ClassInterfaceType.AutoDual)> "
for example, <ClassInterface(ClassInterfaceType.AutoDual)> Public Class
Foo

Rebuild and, VOILA, IntelliSense and Object Browser are happy.

Andrew J. Marshall
MCP (Visual Basic)
Fairfax, VA

"Andrew J. Marshall" <An*************@ObjectVision.netANTISPAMDEVICE> wrote
in message news:ub**************@tk2msftngp13.phx.gbl...
I built my assembly with the "Register for COM Interop" box checked.

I could reference my assembly and see the classes, but IntelliSense and the Object Browser could not see the methods nor properties.

I used TlbExp and RegAsm with the same result.

How can I get IntelliSense and Object Browser to see the details of my
classes?

Thanks,
Andrew J. Marshall
MCP (Visual Basic)
Fairfax, VA

Jul 21 '05 #2

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

Similar topics

3
by: spacekid | last post by:
Hi there I am exposing a c# assembly as a COM component (regasm /codebase) and calling it from classic asp. When I try to call the ConfigurationSettings.AppSettings function in the c# assembly,...
14
by: Nak | last post by:
Hi there, Does anyone know how I would get the value of the assembly GUID in code from within the same application? Thanks in advance. Nick. --...
1
by: Andrew J. Marshall | last post by:
I built my assembly with the "Register for COM Interop" box checked. I could reference my assembly and see the classes, but IntelliSense and the Object Browser could not see the methods nor...
4
by: g3000 | last post by:
I developed on a Win2K3 Server with VS 2005 Published a web app to my local drive. Copied that folder to a Win2K3 Server. Configured a new virtual directory Moved the files there. Modified...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
From the amount of articles about this one I’m sure this gets asked a lot, but I haven’t yet found a succinct article which explains what is required in its entirety. I work using Visual...
1
by: John G | last post by:
I have created an ActiveX control that does word automation. Once I creat an instance of work I get the following message System.Security.SecurityException: That assembly does not allow partially...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
3
by: Joris van Lier | last post by:
I'm running an ASP.NET 2.0 web application in a Medium Trust environment, the application uses ODBC to connecto to MySQL and the hosting company has granted OdbcPermission, the solution includes a...
0
by: John G | last post by:
I tried creating a app with Silverlight. The app works great when I run it in vs.net 2008. But when I publish the app I get the following error: Assembly does not allow partially trusted callers ...
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
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...
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,...

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.