473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

FileNotFoundException 0x8007007E

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?
Feb 17 '06 #1
5 38340
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
Feb 17 '06 #2
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

Feb 17 '06 #3
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
| >
| >
| >
Feb 17 '06 #4
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
| >
| >
| >

Feb 17 '06 #5
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.
Feb 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Benji Luong | last post by:
I just installed IIS 5.1 that came with XP Pro. When I want to browse localstart.asp, this page loads up. How do I resolve this? Thanks so much! HTTP 500.100 - Internal Server Error - ASP...
1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
0
by: Peter Vestergaard | last post by:
Hi, I am running VS .Net 2005. I have an application in which one of the classes are having a member that is an instance of a class defined in a managed C++ dll. As soon as I try to create an...
3
by: Lee Crabtree | last post by:
I'm migrating a project from one machine to a newer machine. The project has several C++/CLI DLLs, as well as a lot of C#. On the older machine, everything runs. On the newer machine, I get a...
1
by: gulrez alam | last post by:
Dear All In my application i am using VS.Net 2002 , C# . there is asp page Bank.asp . i am redirecting our users from our site to Bank site along with some parameters user is able to...
1
by: zoltix | last post by:
Hello, I have a problem with an IIS server on windows 2003 server. I developed a web application on Windows Xp with the standard classes Membershi(System.Web.Security.SqlMembershipProvider,...
2
by: =?Utf-8?B?c2FtMDFt?= | last post by:
I have a remoting application that was developed on a Windows XP SP2 machine with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it works great. Problem is, when I install the msi...
2
by: bbindae | last post by:
I am trying to check whether XmlTextReader reads the xml file successfully or not. MSDN says that XmlTextReader raise the FileNotFoundException when it cannot find the file to read. Here is...
4
by: yogarajan | last post by:
The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.