Frustrating Build Error...

G

Guest

I keep encountering an error message while trying to build a solution that I
cannot seem to get around. I cannot figure out what the error is trying to
tell me as there does not appear to be much information provided.

I have a C# class library project (project A) that references a C++ class
library project (project B). If I compile project B, no errors are reported.
If I compile project A, no errors are reported. I also have a C# web
service project (project C) that references project A. When I compile
project C, the following error is reported:

The specified module could not be found. (Exception from HRESULT: 0x8007007E).

No file, line number, column or project information is provided with this
error.

I am not sure which module cannot be found. I am not even sure where to
being looking. Does anyone have any ideas as to where or what to look for?
Since I am not sure where to start looking, I may not have provided enough
information. If anyone needs more information, please let me know where or
how to find it and I will provide it.

Thank you,

Jason Richmeier
 
G

Gary Chang[MSFT]

Hi Jason,

Thank you posting!

Based on the description, the problem is you got a "The specified module
could not be found." error while you build a C# web service project which
reference a C# class library project, and the C# class library itself
references a C++ class library project. Please correct me if I
misunderstood anything.

In order to isolate this issue, would you please help me to confirm the
following ones?

1. What's the Visual Studio product you develop with, VS2005 or VS2003?

2. Is it a pure managed C++ class library project the C# class library
project references? If it is an unmanaged C++ class library, how do you
reference it in your C# class library project?

3. Can you find both of the related assemblies (the C# class library and
C++ class library) in the web service's bin directory?

The above information will help us get closer to resolving your issue, so I
appreciate your time to check them. Let me know the results at your
earliest convenience. If you have any questions or concerns, please let me
know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Your statement about the project references is correct.

Answers to your questions follow.

1. I am using VS2005 to develop with. The web service project was
originally developed with VS2003 but I converted it to VS2005 (using the
conversion wizard). This may mean nothing but I thought I would mention it
in case it does.

2. I believe the C++ project is purely managed code. Is there a way to
verify this? I have inherited this project from another developer that is no
longer with us and nobody else around here uses C++.

3. All of the related assemblies exist in the web service project's bin
folder.

Thank you,

Jason Richmeier

"Gary Chang[MSFT]" said:
Hi Jason,

Thank you posting!

Based on the description, the problem is you got a "The specified module
could not be found." error while you build a C# web service project which
reference a C# class library project, and the C# class library itself
references a C++ class library project. Please correct me if I
misunderstood anything.

In order to isolate this issue, would you please help me to confirm the
following ones?

1. What's the Visual Studio product you develop with, VS2005 or VS2003?

2. Is it a pure managed C++ class library project the C# class library
project references? If it is an unmanaged C++ class library, how do you
reference it in your C# class library project?

3. Can you find both of the related assemblies (the C# class library and
C++ class library) in the web service's bin directory?

The above information will help us get closer to resolving your issue, so I
appreciate your time to check them. Let me know the results at your
earliest convenience. If you have any questions or concerns, please let me
know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

In my earlier reply, I failed to mention something in the answer for question
number two. I believe the C++ project uses some sort of unmanaged PGP
library. I have tried to install (what I believe) to be the correct PGP
products (so that the unmanged libraries get installed and registered) but
this did not help. Furthermore, I attempted to compile the project on the
machine that was used by the previous developer and it will not compile on
his machine either. Again, this may not mean anything but I don't want to
leave anything out.

Thank you,

Jason Richmeier

"Gary Chang[MSFT]" said:
Hi Jason,

Thank you posting!

Based on the description, the problem is you got a "The specified module
could not be found." error while you build a C# web service project which
reference a C# class library project, and the C# class library itself
references a C++ class library project. Please correct me if I
misunderstood anything.

In order to isolate this issue, would you please help me to confirm the
following ones?

1. What's the Visual Studio product you develop with, VS2005 or VS2003?

2. Is it a pure managed C++ class library project the C# class library
project references? If it is an unmanaged C++ class library, how do you
reference it in your C# class library project?

3. Can you find both of the related assemblies (the C# class library and
C++ class library) in the web service's bin directory?

The above information will help us get closer to resolving your issue, so I
appreciate your time to check them. Let me know the results at your
earliest convenience. If you have any questions or concerns, please let me
know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Gary Chang[MSFT]

Hi Jason,

Thanks for the detailed reply!
Is there a way to verify this?

You can check that C++ project's configuration: the entry of 'Project
Properties | Configuration Properties | General |Project Defaults | Common
Language Runtime support' should be the "Pure MSIL common Language Runtime
support".
I believe the C++ project uses some sort of unmanaged PGP
library. I have tried to install (what I believe) to be the
correct PGP products (so that the unmanged libraries get
installed and registered) but this did not help.

That may cause the problem, if the unmanaged PGP library has the DLLs, I
suggest you also manually copy its corresponding DLLs to your web service's
bin directory. The VS2005 IDE will not copy those C++ class library
referenced DLLs to the web service's bin directory automatically, but those
referenced unmanaged DLLs should be in the same directory as well as the
C++ class library assembly.

These tests will help us get closer to resolving your issue, so I
appreciate your time in performing them. If you have any questions or
concerns, please let me know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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