Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9139217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:21:32+00:00 2026-06-17T09:21:32+00:00

I have a VS2008 solution with three projects: C# ASP.NET web service, which is

  • 0

I have a VS2008 solution with three projects: C# ASP.NET web service, which is using C++/CLI DLL, which in turn is calling functions of native C++ DLL. All references are properly set. In web service bin folder there are all three DLL’s. Problem is when I hit F5 the page in my browser informs me about FileNotFoundException from HRESULT 0x8007007E, The specified module could not be found.

The missing module is my native DLL. ASP.NET Development Server copies (and uses) my C++/CLI DLL somewhere in %USERPROFILE%\AppData\Local\Temp\Temporary ASP.NET Files\root, but not the native one. If I manually copy native DLL to the same folder with C++/CLI DLL then I can debug my web service. However, this copying does not seem right.

Copying native DLL somewhere on PATH does not feel right either, because other developers need to remember it.

There is a similar question here, and a blog post linked in one answer. The given solution requires that I change DLL’s to be delay-loaded, which again seems to much of a half-baked workaround, because it requires to change the end product due to development hurdles.

Is there a proper way to debug a combination of web service, C++CLI DLL, and native DLL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:21:33+00:00Added an answer on June 17, 2026 at 9:21 am

    The issue is simply that the compiler can’t figure out where the native c++ library is.

    So, there are a couple ways to fix that.

    1. Use DLLImport to load the dll using a relative or absolute path at runtime.
    2. Set the path environment variable to it’s location.
    3. Get really complicated in how the project is built (see link below, which you’ve obviously already read).

    http://blogs.msdn.com/b/jorman/archive/2007/08/31/loading-c-assemblies-in-asp-net.aspx

    There’s no real answer beyond those.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an ASP.Net MVC solution built in VS2008 and TFS2008. We use TFS
I have an ASP.NET 4 web application that references a SOAP web service. I
In a complex VS2008 solution I have three unit test projects. As they operate
I have a VS2003 solution with 21 ASP.NET 1.1 projects in it. My goal
I have a Visual Studio 2008 solution with an ASP.NET Web Application project. I
I have an ASP.NET website that worked fine using and debugging in VS2008. I
I have .NET solution in VS2008. In my solution there are 20 projects. In
I have a VS2005 solution which contains a variety of projects (C++ DLLs, C++
I have upgraded my solution from VS2008. In our web project there are 2
I have a strange problem with VS2008. My solution has 8 projects (all c#)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.