473,320 Members | 2,193 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,320 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 1217
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.