473,396 Members | 2,029 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,396 software developers and data experts.

HRESULT 0x8007007E confusion

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
System.IO.FileNotFoundException just as I call into a function using a
part of one of the C++ DLLs. Something like this:

public class CSharpThing
{
public CSharpThing()
{
CallUnmanaged();
}

public void CallUnmanaged()
{
//here's an unmanaged call!
}
}

The exception occurs on the line where CallUnmanaged is CALLED, not
where the unmanaged call itself is. That sort of makes me think it's
something to do with the CRT not being found, as the module itself is
being referenced properly.

What really gets me is that the InnerException is null. The FileName is
ALSO null, which is REALLY freaky. What on EARTH am I supposed to take
away from an exception like that?

Lee Crabtree
Sep 26 '06 #1
3 11315

"Lee Crabtree" <lc*******@goisi.comwrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
| 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
| System.IO.FileNotFoundException just as I call into a function using a
| part of one of the C++ DLLs. Something like this:
|
| public class CSharpThing
| {
| public CSharpThing()
| {
| CallUnmanaged();
| }
|
| public void CallUnmanaged()
| {
| //here's an unmanaged call!
| }
| }
|
| The exception occurs on the line where CallUnmanaged is CALLED, not
| where the unmanaged call itself is. That sort of makes me think it's
| something to do with the CRT not being found, as the module itself is
| being referenced properly.
|
| What really gets me is that the InnerException is null. The FileName is
| ALSO null, which is REALLY freaky. What on EARTH am I supposed to take
| away from an exception like that?
|
| Lee Crabtree

This means that one of the C++ DLL's or (more likely) some of it's dependent
DLL's are missing. Make sure you have the CRT version installed to be the
same as on your development box.
Willy.
Sep 26 '06 #2
Well, that problem was solved, but I've hit another one that seems
related to the CRT problem. The error doesn't actually produce an
exception (even when running in the debugger), it just brings up the
"Report this error to Microsoft" window. When I check the "what does
this error report contain?" link, I notice the C runtime library
referenced, but after checking the Platform SDK versions loaded, I
notice they're the same. However, a couple of the C++ DLLs use ATL and
were built with VS2003.

What bites is that, since they use ATL and MFC, I can't compile them
under VC2005 Express. Is there some way to get the runtime from the
older version of Studio?

Lee Crabtree

Willy Denoyette [MVP] wrote:
"Lee Crabtree" <lc*******@goisi.comwrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
| 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
| System.IO.FileNotFoundException just as I call into a function using a
| part of one of the C++ DLLs. Something like this:
|
| public class CSharpThing
| {
| public CSharpThing()
| {
| CallUnmanaged();
| }
|
| public void CallUnmanaged()
| {
| //here's an unmanaged call!
| }
| }
|
| The exception occurs on the line where CallUnmanaged is CALLED, not
| where the unmanaged call itself is. That sort of makes me think it's
| something to do with the CRT not being found, as the module itself is
| being referenced properly.
|
| What really gets me is that the InnerException is null. The FileName is
| ALSO null, which is REALLY freaky. What on EARTH am I supposed to take
| away from an exception like that?
|
| Lee Crabtree

This means that one of the C++ DLL's or (more likely) some of it's dependent
DLL's are missing. Make sure you have the CRT version installed to be the
same as on your development box.
Willy.

Sep 26 '06 #3

"Lee Crabtree" <lc*******@goisi.comwrote in message
news:45**************@goisi.com...
| Well, that problem was solved, but I've hit another one that seems
| related to the CRT problem. The error doesn't actually produce an
| exception (even when running in the debugger), it just brings up the
| "Report this error to Microsoft" window. When I check the "what does
| this error report contain?" link, I notice the C runtime library
| referenced, but after checking the Platform SDK versions loaded, I
| notice they're the same. However, a couple of the C++ DLLs use ATL and
| were built with VS2003.
|
| What bites is that, since they use ATL and MFC, I can't compile them
| under VC2005 Express. Is there some way to get the runtime from the
| older version of Studio?
|

It all depends on the way you linked the modules (ATL and MFC), there
shouldn't be a problem when statically linking, if you are dynamically
linking you should distribute the dependent libraries with your application.
More info can be found on MSDN, search for "side by side" and isolated
application development and deployment.
Note that you may get better answers when posting to the VC language NG.

Willy.
Sep 27 '06 #4

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...
4
by: lakshmi | last post by:
Hi We are rewriting a COM object in C#. The COM object returns HRESULT for invalid arguments, null values etc. The HRESULT is created using the MAKE_HRESULT macro in C++. 1.What is the C#...
1
by: Kimmo Laine | last post by:
Hi, we have a (unmanaged) ATL COM server, which implements two interface: ITestInterface1 and ITestInterface2. Both of these interfaces also support the ISupportErrorInfo-interface. Interface...
1
by: Display Name | last post by:
Exception class has HRESULT as protected member. Is there a header file or tool to get the entire mapping of C# Exception to HRESULT? Any tools / header file / links appreciated
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,...
4
by: cpajoe2001 | last post by:
I am not sure if this is the proper place to put this thread but I have run into a road block. I am writing a web app that will create groups in Active Directory then add users to those groups. I...
6
by: =?Utf-8?B?Um9i?= | last post by:
Hi, If I call my own DLL from Javascript, a HRESULT is returned. Javascript cannot cast this to an integer. Is there any other way of typecasting this returnvalue to integer, wihout using the...
3
by: wundertier | last post by:
Hi, I'm accessing COM objects from C#.net. In case of error a COMException is thrown which includes the HRESULT. But how do I get the description for the HRESULT? The Message property of the...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.