473,880 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET: problem loading managed C++ DLL

NGM
Hello All

I have a unmanaged C++ DLL, which has been wrapped up with a manged C++ DLL.
When i refer to this managed DLL in Windows form based applications it works out fine. But when i refer to the the same managed C++ DLL in ASP.Net application. [i.e, : ASP.NET --> TALW (managed C++ DLL) --> TAL (unmanaged c++ DLL)

it gives me the following runtime error

(where TALW is the managed c++ wrapper around a umanaged C++ dll

Server Error in '/EMSUI' Application.
-------------------------------------------------------------------------------

Unable to load file 'TALW'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileL oadException: Unable to load file 'TALW'

Source Error:

Line 34: case "start"
Line 35: objServices = new Services()
Line 36: objEms.init()
Line 37: xmlData = objEms.getAllSe rvices() ;//objServices.Get AllSevices()
Line 38: if(xmlData == "error"
Source File: c:\inetpub\wwwr oot\emsui\actio nclasses\action services.cs Line: 36

Stack Trace:

[FileLoadExcepti on: Unable to load file 'TALW'.
EMSStubSpace.EM SStub.init() +
EMSUI.ActionCla sses.ActionServ ices.Execute(Ht tpContext context) in c:\inetpub\wwwr oot\emsui\actio nclasses\action services.cs:3
MVCWeb.Controll er.ProcessReque st(String actionControlID , HttpContext context) in f:\dmp\modules\ ui framework\devel opment\src\cont roller.cs:7
EMSUI.ServicesU I.Page_Load(Obj ect sender, EventArgs e) in c:\inetpub\wwwr oot\emsui\servi ces.aspx.cs:4
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +6
System.Web.UI.C ontrol.LoadRecu rsive() +3
System.Web.UI.P age.ProcessRequ estMain() +73

I tried placing all the refered DLLS in System32 and System folder. But no vain
Please help me out

You can directly mail as well at : ng********@hotm ail.com/ am******@yahhoo .co

NG

Nov 18 '05 #1
2 2148
NGM
No one has yet replied :(
Nov 18 '05 #2
Hi NGM,

We had similar problems loading our Managed C++/Unmanged C++ DLL combo. The reasons
why they failed included:

* The Unmanaged DLL were not in the system evironment variable
* There was a conflict with some global C++ classes and the .NET classes.

The error we were getting was more like:

"[FileNotFoundExc eption]: File or assembly name SomeDLL, or one of its dependencies, was not found."

so I'm wondering if your issue is really a problem with loading the unmanaged DLL. I'm a assuming
that the unmanaged DLL is dynamically linked but statically linked through a lib.

It seems strange that it occurs during a page load and no sooner. How have you referenced
the Managed C++ library?

Simon. K
NGM wrote:
Hello All,

I have a unmanaged C++ DLL, which has been wrapped up with a manged C++ DLL.
When i refer to this managed DLL in Windows form based applications it works out fine. But when i refer to the the same managed C++ DLL in ASP.Net application. [i.e, : ASP.NET --> TALW (managed C++ DLL) --> TAL (unmanaged c++ DLL)]

it gives me the following runtime error:

(where TALW is the managed c++ wrapper around a umanaged C++ dll)

Server Error in '/EMSUI' Application.
--------------------------------------------------------------------------------

Unable to load file 'TALW'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileL oadException: Unable to load file 'TALW'.

Source Error:

Line 34: case "start":
Line 35: objServices = new Services() ;
Line 36: objEms.init() ;
Line 37: xmlData = objEms.getAllSe rvices() ;//objServices.Get AllSevices() ;
Line 38: if(xmlData == "error")
Source File: c:\inetpub\wwwr oot\emsui\actio nclasses\action services.cs Line: 36

Stack Trace:

[FileLoadExcepti on: Unable to load file 'TALW'.]
EMSStubSpace.EM SStub.init() +0
EMSUI.ActionCla sses.ActionServ ices.Execute(Ht tpContext context) in c:\inetpub\wwwr oot\emsui\actio nclasses\action services.cs:36
MVCWeb.Controll er.ProcessReque st(String actionControlID , HttpContext context) in f:\dmp\modules\ ui framework\devel opment\src\cont roller.cs:78
EMSUI.ServicesU I.Page_Load(Obj ect sender, EventArgs e) in c:\inetpub\wwwr oot\emsui\servi ces.aspx.cs:41
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +731
I tried placing all the refered DLLS in System32 and System folder. But no vain.
Please help me out!

You can directly mail as well at : ng********@hotm ail.com/ am******@yahhoo .com

NGM



Nov 18 '05 #3

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

Similar topics

77
13292
by: Tim Anderson | last post by:
I've begun to set down some pros and cons here: http://www.itwriting.com/phorum/list.php?f=6 Thought I'd mention it as it's a topic of such enduring interest :-) Tim
7
1697
by: Staale L. Hansen | last post by:
We have an application which uses some mixed-mode code to expose a .NET 1.1 managed API. Only the necessary files are compiled with /clr. We want to be able to load the application without .NET present, and then just disable the API. But we are not even able to give an error message when we start the application without mscoree.dll present. We have tried delay-loading mscoree.dll, but that did not help because the OS loader (at least on...
4
1373
by: IamZIM! | last post by:
I was wondering what performance advantages (or ramifications for all I know) might be apparent if you used Managed C++ (MC++ from know on) instead of C#? I know C# is a pure .NET language since it was made for the .NET Framework, but because of my code has been migrated from Java, I need to make a few API calls outside of the CLR. I'm quite new to C#, cause I'm more familiar with Java and C++, but I would assume that any programmatic...
15
2038
by: Herby | last post by:
This is a follow on from my previous thread about clr/safe and STL.NET http://groups.google.com/group/microsoft.public.dotnet.languages.vc/browse_thread/thread/0eb9b25a83bc02df/b170a89dbc67c332#b170a89dbc67c332 A more specific problem now is migrating the current MFC serialization onto STL serialization? How best to serilize using STL? STL does not seem to directly support the concept of serialization in
10
1685
by: Richard MSL | last post by:
I am having problems working with .net security. I have been attempting to use the Microsoft .Net Framework 2.0 Configuration tool (version 2.0.50727.42), but it won't work for me. I have a simple test application that works, when I run to Manage Applications - View Assembly Dependencies, I get an error that says: Unfortunately, the .NET Framework Configuration tool cannot show this list of assembly dependencies for this application due...
6
6885
by: Dan Dorey | last post by:
I actually have two questions here, but I'll start by giving an outline of what I'm trying to do. I'm building an app with a simple plugin architecture (all in the same app domain). I have each plugin in a separate sub-dir inside a "Plugins" directory. Each plugin consists of at least two DLLs (a controller and a driver). However, most drivers also rely on other external DLLs. In one particular case this dependency is to a C++ DLL...
5
7805
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
0
3675
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. · When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on...
8
3142
by: =?Utf-8?B?TWFyaw==?= | last post by:
We've got a wierd failure happening on just one machine. One part of our product uses a 3rd party search implementation (dtSearch). DtSearch has a native core (dten600.dll), late-bound, and a managed wrapper (dtSearchNetApi2.dll). For reasons unknown our build and msi packaging process includes dtSearchNetApi2.dll but not dten600.dll in all packages, as well as a couple of assemblies that reference it, even though they are not used by...
0
9925
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11089
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10713
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10809
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10395
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9550
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5777
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5972
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3219
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.