Can not register for COM Interop a dll vb 2005 application

Hi everybody

I migrated a VB 2003 project to VB 2005. It has as main output a dll library which I need to register for COM interop. The application builds fine until I check the compile options "Register for COM interop" .

I get the following error

Error 1 Cannot register assembly "C:\Visual Studio 2005\Projects\myapps\bin\myproject.dll". The specified module could not be found. (Exception from HRESULT: 0x8007007E) myproject

I used to compile the project no problems with the com interop option in VB2003. I do not beleive it is a references problem since it builds fine if I uncheck the "Register for COM interop" option. Also I have all the vb2005 modules installed(I did not installed the visual c# or visual c++) and all the tools.

I tried also to manually register it using the regasm tool, it throws some errors too.

I checked on the 0x8007007E no usefull help found.

Any help I will appreciate.

[984 byte] By [rtejada] at [2008-2-27]
# 1
The error 0x8007007E is a generic "DLL not found" error, generated by LoadLibrary(). The path looks wrong, it should probably be ...\myapps\bin\Debug\myproject.dll. Verify the setting of "Output path" in the project. Project + properties, Compile tab.
nobugz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...