System.Runtime.InteropServices.COMException (0x80040202)

619 views
Skip to first unread message

vishy

unread,
Sep 9, 2008, 6:16:35 AM9/9/08
to ccnet-user
Hi,

I have following scenario.I have a project(dummy.vbp) developed in
visual basic 6.0, and we are writing tests in MBUnit in a test project
which references dummy.dll.Now, every time we reduild dummy project,
we need to update the GUID in the test project of the dummy dll(for
updating guid, we have written another project in dotnet). It works
fine.
But,now when I am trying to run the updaterGUID project after the
dummy project has been build, I get the following exception
System.Runtime.InteropServices.COMException (0x80040202).

What could be the reason for this?
regards
vishy

Ruben Willems

unread,
Sep 9, 2008, 6:25:41 AM9/9/08
to ccnet...@googlegroups.com
Hi


can you give more details : the entire stacktrace
maybe there is a more meaningfull message somewhere


with kind regards
Ruben Willems

vishy

unread,
Sep 9, 2008, 6:36:20 AM9/9/08
to ccnet-user
This is what I see on the dashboard

Unhandled Exception: System.Runtime.InteropServices.COMException
(0x80040202): Exception from HRESULT: 0x80040202
at TLI.TLIApplicationClass.TypeLibInfoFromFile(String FileName)
at GetGuid.Program.Main(String[] args) in C:\svnhome\OLPluginForCC
\GUIDHelper\Program.cs:line 16

On Sep 9, 3:25 pm, "Ruben Willems" <ruben.will...@gmail.com> wrote:
> Hi
>
> can you give more details : the entire stacktrace
> maybe there is a more meaningfull message somewhere
>
> with kind regards
> Ruben Willems
>

Ruben Willems

unread,
Sep 9, 2008, 7:44:26 AM9/9/08
to ccnet...@googlegroups.com
Hi


it appears to be in your GUIDHelper program at line 16,
what statement is there?



with kind regards
Ruben Willems

vishy

unread,
Sep 10, 2008, 2:31:54 AM9/10/08
to ccnet-user
lib=tl.TypeLibInfoFromFile(@"..\..\..\..\..\installer\Files
\dummy.dll");
It seems it was not taking the relative path.When I changed it to
absolute path, it worked.

On Sep 9, 4:44 pm, "Ruben Willems" <ruben.will...@gmail.com> wrote:
> Hi
>
> it appears to be in your GUIDHelper program at line 16,
> what statement is there?
>
> with kind regards
> Ruben Willems
>

Ruben Willems

unread,
Sep 10, 2008, 2:44:03 AM9/10/08
to ccnet...@googlegroups.com
Hi

maybe you can still use the relative path,
if you set the baseDirectory property of the exec task you're using.



with kind regards
Ruben Willems

vishy

unread,
Sep 10, 2008, 4:42:22 AM9/10/08
to ccnet-user
ok,but another thing is I am not getting this error(after using full
path) on a 32-bit machine, but on a 64 bit machine.Any idea?
regards
vishal

On Sep 10, 11:44 am, "Ruben Willems" <ruben.will...@gmail.com> wrote:
> Hi
>
> maybe you can still use the relative path,
> if you set the baseDirectory property of the exec task you're using.
>
> with kind regards
> Ruben Willems
>

Ruben Willems

unread,
Sep 10, 2008, 4:56:58 AM9/10/08
to ccnet...@googlegroups.com
I've heard of other problems with 64 bit machines,
maybe you should recompile for 64 bit, and try again
Reply all
Reply to author
Forward
0 new messages