FileNotFoundException 0x8007007E

G

Guest

I have a c# application that I'm migrating from 2003 to 2005, and I moved it
to another machine. It built ok. But, when trying to run I get
System.IO.FileNotFoundException was unhandled
Message="The specified module could not be found. (Exception from HRESULT:
0x8007007E)" when it tries to call a property in the file that it's in. But,
there is no file information, and it never seems to get to the first line of
the property in question. When I put an exception catcher around this, I just
get another one later on.

Any hints about what to do?
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,


SGRing said:
I have a c# application that I'm migrating from 2003 to 2005, and I moved
it
to another machine. It built ok. But, when trying to run I get
System.IO.FileNotFoundException was unhandled
Message="The specified module could not be found. (Exception from
HRESULT:
0x8007007E)" when it tries to call a property in the file that it's in.
But,
there is no file information, and it never seems to get to the first line
of
the property in question. When I put an exception catcher around this, I
just
get another one later on.

Any hints about what to do?

Can you post the code?

use a try/catch and see the exception you are getting and also see the
InnerException, very often when you are dealing with COM you find more
detailed info in the InnerException
 
G

Guest

Thanks for answering. Unfortunately I can't post the code, there is rather a
lot and it uses a number of commercial components. But, it doesn't use COM. I
checked the exception and the InnerException is null. So, any other ideas?
 
W

Willy Denoyette [MVP]

The solution is in the error message "...FileNotFoundException" means there
is a file missing, that is, one of the files your program depends on is not
deployed.

Willy.

| Thanks for answering. Unfortunately I can't post the code, there is rather
a
| lot and it uses a number of commercial components. But, it doesn't use
COM. I
| checked the exception and the InnerException is null. So, any other ideas?
|
| "Ignacio Machin ( .NET/ C# MVP )" wrote:
|
| > Hi,
| >
| >
| > | > >I have a c# application that I'm migrating from 2003 to 2005, and I
moved
| > >it
| > > to another machine. It built ok. But, when trying to run I get
| > > System.IO.FileNotFoundException was unhandled
| > > Message="The specified module could not be found. (Exception from
| > > HRESULT:
| > > 0x8007007E)" when it tries to call a property in the file that it's
in.
| > > But,
| > > there is no file information, and it never seems to get to the first
line
| > > of
| > > the property in question. When I put an exception catcher around this,
I
| > > just
| > > get another one later on.
| > >
| > > Any hints about what to do?
| >
| > Can you post the code?
| >
| > use a try/catch and see the exception you are getting and also see the
| > InnerException, very often when you are dealing with COM you find more
| > detailed info in the InnerException
| >
| >
| > --
| > Ignacio Machin,
| > ignacio.machin AT dot.state.fl.us
| > Florida Department Of Transportation
| >
| >
| >
 
G

Guest

Thanks for answering. The problem was a missing dependency in one dll that
hadn't been recompiled for 2005. I would have thought that I would have seen
the problem just getting the program to start up, and there was no apparent
association between the dll and the code that gave me the exception - but the
problem is solved.
 
D

Derrick Coetzee [MSFT]

SGRing said:
Thanks for answering. The problem was a missing dependency in one dll
that hadn't been recompiled for 2005. I would have thought that I
would have seen the problem just getting the program to start up, and
there was no apparent association between the dll and the code that
gave me the exception - but the problem is solved.

In the future, when you encounter an assembly loading problem, consider
using the Assembly Binding Log Viewer tool that comes with the .NET
Framework (fuslogvw) to determine which dependency failed to load and why.
You can read more about it here:

http://msdn.microsoft.com/library/d...ools/html/cpgrffusionlogviewerfuslogvwexe.asp

There are also tools to examine the dependencies of an assembly and look for
any problematic ones, but I don't have an example handy. I hope this helps.
 

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