473,626 Members | 3,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DllNotFoundExce ption

DC
Hi,

I have created a ASP .net client talking to a .net web
service. The web service in turn calls a C++ dll to get
data from the host. The whole thing is working perfectly
fine on my machine, but when I am deploying the components
on a Window 2000 server, running the application is
throwing this error:

System.DllNotFo undException: Unable to load DLL (my.dll)

I have tried putting the dll in the system and system32
folders, - also I tried using the whole path of the dll in
DLL Import function. None of these worked.

Could someone please help me?

Thanks!
DC
Jul 21 '05 #1
2 2080
Maybe you can try putting the dll in the bin directory of
the web service. This has solved some of my problems
before.
-----Original Message-----
Hi,

I have created a ASP .net client talking to a .net web
service. The web service in turn calls a C++ dll to get
data from the host. The whole thing is working perfectly
fine on my machine, but when I am deploying the componentson a Window 2000 server, running the application is
throwing this error:

System.DllNotF oundException: Unable to load DLL (my.dll)

I have tried putting the dll in the system and system32
folders, - also I tried using the whole path of the dll inDLL Import function. None of these worked.

Could someone please help me?

Thanks!
DC
.

Jul 21 '05 #2
Maybe you can try putting the dll in the bin directory of
the web service. This has solved some of my problems
before.
-----Original Message-----
Hi,

I have created a ASP .net client talking to a .net web
service. The web service in turn calls a C++ dll to get
data from the host. The whole thing is working perfectly
fine on my machine, but when I am deploying the componentson a Window 2000 server, running the application is
throwing this error:

System.DllNotF oundException: Unable to load DLL (my.dll)

I have tried putting the dll in the system and system32
folders, - also I tried using the whole path of the dll inDLL Import function. None of these worked.

Could someone please help me?

Thanks!
DC
.

Jul 21 '05 #3

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

Similar topics

1
2344
by: nagarajan.palanisamy | last post by:
Hello, We developed a DLL using C++ and I am calling the methods on the DLL using p/Invoke from managed code. The application runs well both as a console application and as a Windows Service application on Windows 2000 machine. But on windows 2003 server (Standard Edition), only console application runs but not the windows service application. The error message I am getting is "System.DllNotFoundException: Unable to load DLL". I gave...
1
15503
by: Anna | last post by:
When I run a c#DotNet web service, I have the following error: System.DllNotFoundException: Unable to load DLL The dll that cannot be loaded is a C dll. That's why it cannot be put in the GAC. This dll is located in c:\Program Files\MyApplication\bin The environment variable "PATH" contains "c:\Program Files\MyApplication\bin" Where shall I put this C dll ?
1
2565
by: batista | last post by:
Hi, I have an unmanaged dll that uses callback to call a function of managed code.Now the problem is that it's given error "System.DllNotFoundException" I read it's due to appdomian. http://weblogs.asp.net/mdavey/archive/2004/02/25/79868.aspx
1
1779
by: Petr Makagon | last post by:
i have a c++ managed wrapper around unmanaged dll. when i use this wrapper from managed console app it works fine but when i use it in aspx i have DllNotFoundException occurred in Unknown Module. any idea???!!!
4
3779
by: Aaron Stubbendieck | last post by:
Hello, I have an asp.net script that references system.drawing and I am receiving the following the error when using system.drawing.bitmap: Exception Details: System.DllNotFoundException: Unable to load DLL (gdiplus.dll). System.Drawing.SafeNativeMethods.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output) +0 System.Drawing.SafeNativeMethods.Initialize() +117
1
2535
by: Jorge_Beteta | last post by:
Hello Experts, I'm using Visual Studio NET 2003 Architect on a Windows 2003 Server. DataBase: Oracle 9i. All of them on the same PC. Problem is that I can't connect my ASP NET web program to Oracle. I get this error: "System.DllNotFoundException: ?" after trying to do: Dim myConn As OracleConnection = New OracleConnection("data source=afspe;persist security info=false;user
0
1291
by: AG | last post by:
Hi, I have implemented the ASP.Net Ihttphandler interface. Handler references the mixed dll (both managed/unmanaged code) that contains core C++ classes wrapped under managed c++ wrappers. ASP.NET worker process, sometimes while loading the handler and mixed dll associated with it, throws System::DLLNotFoundException. I have verified that all required Dlls are in the system path. I have the handler version up and running perfectly but...
22
3274
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to load DLL (aspnet_isapi.dll)." Of course the dll is able to be found, it's still in the framework directory and for grins I even put it in my service's local directory. This is apparantly server 2003 not allowing asp.net to be run if IIS was not...
1
2263
by: Zhihong Yu | last post by:
Hi, I declare an API as following: Public Declare Function IsFirstInstance Lib "WPLink.dll" () As Integer When I call this function in Main(), I got System.DllNotFoundException even though WPLink.dll is copied alongside .Net program or under <system32>. Your help is appreciated. *** Sent via Developersdex http://www.developersdex.com ***
0
1727
by: Yogesh Ketkar | last post by:
I have a asp .net application talking to some remoting objects. application hosting remoting objects runs on the same machine. From a last couple of days I have started getting System.DllNotFoundException: Unable to load DLL (ws2_32.dll). error when I run my asp.net application. Does anyone have any clue about this.
0
8269
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
8203
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
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
8642
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
8368
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
8512
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
7203
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...
1
2630
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1815
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.