Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Unmanaged DLL referenced by a Managed DLL error

Unmanaged DLL referenced by a Managed DLL error

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpc++asp-net
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NoCake
    wrote on last edited by
    #1

    Hi, I've got a real novice question that I can't find the answer to (just started with ASP.NET yesterday). I want to provide a web interface for functionality provided by a large set of unmanaged C++ DLLs. I wrapped up the critical functionality in a managed DLL, then created the managed objects as session objects on my aspx page. Just creating a 'shell' managed object that has stubbed out calls, and does no static linking to my unmanaged DLLs, works fine. When I statically link in my unmanaged DLLs, and fill out the stubbed functions, I get an error: "Parser Error Message: File or assembly name ManagedNLP, or one of its dependencies, was not found." This seems pretty straightforward - stick the required unmanaged DLLs in the right place. But where the hell is that??? Putting them in the web page root or bin directories does nothing... Also, I don't really want to have multiple copies of unmanaged DLLs floating around, so is there any way I can point IIS to the central repository where I currently keep them? Many thanks in advance for any help. Andy.

    N 1 Reply Last reply
    0
    • N NoCake

      Hi, I've got a real novice question that I can't find the answer to (just started with ASP.NET yesterday). I want to provide a web interface for functionality provided by a large set of unmanaged C++ DLLs. I wrapped up the critical functionality in a managed DLL, then created the managed objects as session objects on my aspx page. Just creating a 'shell' managed object that has stubbed out calls, and does no static linking to my unmanaged DLLs, works fine. When I statically link in my unmanaged DLLs, and fill out the stubbed functions, I get an error: "Parser Error Message: File or assembly name ManagedNLP, or one of its dependencies, was not found." This seems pretty straightforward - stick the required unmanaged DLLs in the right place. But where the hell is that??? Putting them in the web page root or bin directories does nothing... Also, I don't really want to have multiple copies of unmanaged DLLs floating around, so is there any way I can point IIS to the central repository where I currently keep them? Many thanks in advance for any help. Andy.

      N Offline
      N Offline
      NoCake
      wrote on last edited by
      #2

      Well, I still don't know what the problem is. Maybe I could put the unmanaged DLLs in the global assembly repository (apparently a legal operation, not sure if it would work though). Anyhow, I followed the advice of one of my colleaues, who suggested I scrap my managed C++ wrapper class and use [DllImport]-ed functions instead (so I could specify the exact location of the DLL in the attribute parameter). This works just fine. Just to let anyone else with this problem know... Andy.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups