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? 5 38274
Hi,
"SGRing" <SG****@discussions.microsoft.com> wrote in message
news:E6**********************************@microsof t.com... 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
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,
"SGRing" <SG****@discussions.microsoft.com> wrote in message news:E6**********************************@microsof t.com...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
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.
"SGRing" <SG****@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
| 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,
| >
| >
| > "SGRing" <SG****@discussions.microsoft.com> wrote in message
| > news:E6**********************************@microsof t.com...
| > >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
| >
| >
| >
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.
"Willy Denoyette [MVP]" wrote: 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.
"SGRing" <SG****@discussions.microsoft.com> wrote in message news:4B**********************************@microsof t.com... | 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, | > | > | > "SGRing" <SG****@discussions.microsoft.com> wrote in message | > news:E6**********************************@microsof t.com... | > >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 | > | > | >
SGRing wrote: "Willy Denoyette [MVP]" wrote:
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.
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/de...uslogvwexe.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.
--
Derrick Coetzee, MCAD, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights. This discussion thread is closed Replies have been disabled for this discussion. Similar topics
4 posts
views
Thread by Benji Luong |
last post: by
|
1 post
views
Thread by ulf |
last post: by
|
reply
views
Thread by Peter Vestergaard |
last post: by
|
3 posts
views
Thread by Lee Crabtree |
last post: by
| |
1 post
views
Thread by zoltix |
last post: by
|
2 posts
views
Thread by =?Utf-8?B?c2FtMDFt?= |
last post: by
|
2 posts
views
Thread by bbindae |
last post: by
| | | | | | | | | | | |