.NETGURU
Newbie, dotNET: Local DLL is used instead of COM Component
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.

Post a new message to this list...

Ralf Hermanns
Please forgive me if this is stupid, but being new to COM, I cannot figure
it out. I followed one examples in Mike Gunderloys 70-310 exam preparation
book concerning component services.

I created a serviced component in a class library project, signed it,
installed (regsvcs) it to COM+ from the bin folder Visual Studio compiled it
to. I did not put it in Global Assembly Cache, as the book suggest not to do
at this stage.

I then created a simple windows forms application, with a button to use my
Component. I referenced and imported the dll project mentioned before, as
instructed in the book. Works fine, but...

Taking a closer look, I noticed that the compiler copied the component dll
into the application folder (as VS does always with a referenced dll).
Watching the output when running my test bed, I could see that this dll
(same folder as .exe) was loaded, not the one at the place the dll was when
I registered it to COM+.

Finally, deleting the local copy of the dll from the applications folder did
as feared: application cannot be started anymore... At this stage, the COM+
Registration should have insured the dll could have been loaded from the
place it was when I ran regsvcs, shouldn't it?

COM+ is not used at all here in my case, the dll with all its fancy
<Attribute...> stuff and registration is used as if it was a simple standard
dll. Why is that? How to fix that behaviour? Does the GAC solve this?

Thanks, Ralf

Reply to this message...
 
    
Steve S
It all comes down to howyou instanciated the object........

DIM tbo as New MyDLL.Interface will use the local dll

DIM tbo as MyDLL.Interface
tbo = createobject("MyDLL.Interface")

will create it in COM+ services.......

ALOHA
"Ralf Hermanns" <Click here to reveal e-mail address> wrote in message
news:u19#Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Attribute




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification