Works in IDE, fails standalone

V

Vadim Rapp

Hello,

I have a desktop application written in vb.net 2005. The application is
using ISA COM object to connect to the server. The compiled exe has been
working ok for weeks until one day, when it started failing with the message
"The specified module could not be found". When I now run the application in
IDE, it does not fail, but when I compile it and run the compiled exe, it
fails when the created obejct is about to be used.

Dim root as object = CreateObject("FPC.Root")
Root.ConnectToConfigurationStorageServer("machine") <---- this one fails

What to look into?

Regards
 
F

Family Tree Mike

Hello,

I have a desktop application written in vb.net 2005. The application is
using ISA COM object to connect to the server. The compiled exe has been
working ok for weeks until one day, when it started failing with the
message "The specified module could not be found". When I now run the
application in IDE, it does not fail, but when I compile it and run the
compiled exe, it fails when the created obejct is about to be used.

Dim root as object = CreateObject("FPC.Root")
Root.ConnectToConfigurationStorageServer("machine") <---- this one fails

What to look into?

Regards

From this page: http://msdn.microsoft.com/en-us/library/ms826310.aspx
you should be getting an exception that tells you what went wrong. It
was not clear to me if in the IDE you are still getting the "module not
found" error.
 
V

Vadim Rapp

Hello,

??>> Dim root as object = CreateObject("FPC.Root")
??>> Root.ConnectToConfigurationStorageServer("machine") <---- this one
??>> fails
??>>
??>> What to look into?
??>>
??>> Regards

FTM> From this page: http://msdn.microsoft.com/en-us/library/ms826310.aspx
FTM> you should be getting an exception that tells you what went wrong. It
FTM> was not clear to me if in the IDE you are still getting the "module
FTM> not found" error.

That's what the exception says: "The specified module could not be found".

When I run it in IDE, there's no exception, it succeeds. When I build it and
run the exe, there's this exception. I run it as the same user in the same
session as when I run Visual Studio.
 
V

Vadim Rapp

CJ> The registration for your COM object may have gone missing or gotten
CJ> corrupted. I think that in debug mode, the IDE is opening a local copy
CJ> of the DLL using it's own path to the Debug directory. The executable
CJ> should be getting the path to the DLL from the registry. If you
CJ> re-register the COM object, that may do the trick.

Re-registrered N times, and reinstalled ISA (the client/management part on
the workstation), nothing helps. After several attempts and re-builds, it
then starts failing in IDE as well.

Recreated the application from scratch in new location, same result.

I think this started when I upgraded IE6 to IE8 on the machine.

In VB6, the equivalent code works without a problem ever.

regards.
 

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