error from regsvcs

T

Tony Abo

I am trying to create a serviced component using C++ (2005). Before
getting too far into my application logic, I'm trying to do some proof
of concept with this model. Unforntunately, I can't get my simple
prototype serviced component to load.


I've started with a VB version of the prototype. After a fair bit of
screwing around, I was able to register my vb app that exposes one
class with one property. I have verified that it interacts as expected
from a client application.


I have now attempted to product the same class using C++ 2005. I've
included similar assembly attributes etc. When I try to register this
dll, regsvcs spits out the following:


C:\TestProj\MyCServicedComponent\debug>regsvcs MyCServicedComponent.dll

Microsoft (R) .NET Framework Services Installation Utility Version
2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.


The following installation error occurred:
1: Failed to load assembly
'c:\testproj\mycservicedcomponent\debug\mycservicedcomponent.dll'.
2: The specified module could not be found. (Exception from HRESULT:
0x8007007E)


I have used the IL Disassembler to compare the VB and C++ versions of
the dll. The structures of the classes and the manifests seem very
similar.


Can anyone tell me what might cause this error, and/or where I should
look next for clues.


thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top