Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / August 2003

Tip: Looking for answers? Try searching our database.

MSDN article: Deploying an Application for COM Access REALLY unclear (to me...)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jos? Joye - 29 Aug 2003 20:19 GMT
Reeading the MSDN page:

http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondeployingapplicationfo
rcomaccess.asp?frame=true


makes me really skeptic.

I thought that using regasm /tlb:blabla.tlb blabla.dll will register the
assembly so as to be used by COM compliant clients.
To me this was crystal clear that this utility will add entries in the
registry so that any client (having the exe located wherever on the pc will
be able to access interface exported).

However, according to the article, it seems that it has to be placed in the
GAC to allow such a behavior otherwise, it will be considered as a private
assembly. Am I missreading the article?

Jos?
Jos? Joye - 29 Aug 2003 22:00 GMT
I think I understand the problematic now.

In fact, I did not payed too much attention to what was placed in the
registry. I thought it was a reference to the managed dll (which is not true
[by default]. It is a ref to mscoree.dll).
So far, I always ticked the option in VS.Net to register the dll for com
interop. Doing so will somehow use the regasm with at least /tlb and
/codebase options. This will add reference to the managed location and then
allow the dll to be loaded from
its original location using the following probing:

[taken from a post of F. Powel]

regasm /codebase for ComInterop assembly:
1. Look for the the assembly in the GAC
2. Local directory (.ie directory of the executable)
3. Look for the the assembly using the codebase

When the ComInterop assembly refereneces another assembly:
1. Look for the the assembly in the GAC
2. Look for the the assembly using the codebase
3. Local directory (.ie directory of the executable)

Jos?

> Reeading the MSDN page:

http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondeployingapplicationfo
rcomaccess.asp?frame=true


> makes me really skeptic.
>
[quoted text clipped - 9 lines]
>
> Jos?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.