473,513 Members | 2,736 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.FileLoadException: Unable to load file 'TALW'

Source Error:

Line 34: case "start"
Line 35: objServices = new Services()
Line 36: objEms.init()
Line 37: xmlData = objEms.getAllServices() ;//objServices.GetAllSevices()
Line 38: if(xmlData == "error"
Source File: c:\inetpub\wwwroot\emsui\actionclasses\actionservi ces.cs Line: 36

Stack Trace:

[FileLoadException: Unable to load file 'TALW'.
EMSStubSpace.EMSStub.init() +
EMSUI.ActionClasses.ActionServices.Execute(HttpCon text context) in c:\inetpub\wwwroot\emsui\actionclasses\actionservi ces.cs:3
MVCWeb.Controller.ProcessRequest(String actionControlID, HttpContext context) in f:\dmp\modules\ui framework\development\src\controller.cs:7
EMSUI.ServicesUI.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\emsui\services.aspx.cs:4
System.Web.UI.Control.OnLoad(EventArgs e) +6
System.Web.UI.Control.LoadRecursive() +3
System.Web.UI.Page.ProcessRequestMain() +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********@hotmail.com/ am******@yahhoo.co

NG

Nov 18 '05 #1
2 2124
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:

"[FileNotFoundException]: 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.FileLoadException: Unable to load file 'TALW'.

Source Error:

Line 34: case "start":
Line 35: objServices = new Services() ;
Line 36: objEms.init() ;
Line 37: xmlData = objEms.getAllServices() ;//objServices.GetAllSevices() ;
Line 38: if(xmlData == "error")
Source File: c:\inetpub\wwwroot\emsui\actionclasses\actionservi ces.cs Line: 36

Stack Trace:

[FileLoadException: Unable to load file 'TALW'.]
EMSStubSpace.EMSStub.init() +0
EMSUI.ActionClasses.ActionServices.Execute(HttpCon text context) in c:\inetpub\wwwroot\emsui\actionclasses\actionservi ces.cs:36
MVCWeb.Controller.ProcessRequest(String actionControlID, HttpContext context) in f:\dmp\modules\ui framework\development\src\controller.cs:78
EMSUI.ServicesUI.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\emsui\services.aspx.cs:41
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +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********@hotmail.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
13168
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
1676
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...
4
1358
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...
15
2004
by: Herby | last post by:
This is a follow on from my previous thread about clr/safe and STL.NET ...
10
1657
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...
6
6867
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...
5
7777
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...
0
3637
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...
8
3113
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...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7373
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,...
0
7432
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...
1
7094
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
7519
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...
0
5677
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,...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.