File or assembly name XXX, or one of its dependencies, was not found

T

Tim Zych

I posted a question last week about this, but would like to ask again due to
a fresh perspective.

I only get this error in 2005, not 2003. In 2003 everything works as
expected.

If I create a Class Library project, with only a Windows Form and a ComClass
module with fresh GUIDs in VS 2005, checking "Register for COM interop", and
create a Setup project (msi) for the installation, and install it on another
machine than mine, there is an error.

In Excel I can see the reference to "DotnetTestProj", which is checked.

Dim o as DotnetTestProj.ComAccess
Set o = New DotnetTestProj.ComAccess ' <- error

On the 2nd line, I get an error:

"File or assembly name DotnetTestProj, or one of its dependencies, was not
found".

However, if I create a project in 2003 (different name for this test), it
works perfectly. The form shows, no errors.

Any ideas why this error happens in 2005, but not 2003?
 
T

Tim Zych

I misspoke.
If I create a Class Library project, with only a Windows Form and a
ComClass

This is a Windows Forms application, with the output as a Class Library.
 

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