473,732 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.DllNotFo undException in windows server 2003

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.DllNotF oundException: Unable to load DLL".

I gave "Full Control" to even "Everyone". But this does not make any
difference.

Any help would be greatly appreciated.

Thanks
Naga

Nov 16 '05 #1
1 2357
VJ
Check ur Dependencies... for your C++ DLL you worte, it might not be present
in Window 2003 server. One way would be to do a package of your .NET code
using VS.NET packaging (Setup & Deployment project) and install it on 2003
server. This will make sure that all DLLs are installed. Refer below article

http://msdn.microsoft.com/library/de...plications.asp

VJ

<na************ ******@gmail.co m> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
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.DllNotF oundException: Unable to load DLL".

I gave "Full Control" to even "Everyone". But this does not make any
difference.

Any help would be greatly appreciated.

Thanks
Naga

Nov 16 '05 #2

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

Similar topics

0
1624
by: kdt | last post by:
Please help I have a spare Pentium III that I want to install the Windows Server 2003. I have checked the list of Windows Server 2003 system requirements against the machine that I have. It seems like it meets the requirements. But I want to double check with the experiences. Here is my system System type: X86-based P Processor: x86 Family 6 Model 8 Stepping 6, 864 Mh Total Physical Memory: 261,000 K Available Physical Memory: ...
0
311
by: MickeBoy | last post by:
Hi all! I have a problem and I don't know what to do. I have written an web application in asp.net using C# as language. The application calls an external dll written in VS.NET C++. On my development machine running WinXP Pro I have placed this dll-file in the bin folder of my web appliction and it all works wery well. When I try to deploy my solution to a Win 2003 Server (Standard Editon) I run into problems. If I specify the complete...
0
1256
by: Tim Kiely | last post by:
I have a managed C++ class that exposes a COM object to ASP.NET. This COM object creates several other COM objects internally. A VS.NET 2002 build of the dll works fine on .NET 1.0 and 1.1. A VS.NET 2003 build, however, fails when the COM object calls CoCreateInstance. This happens only if the .NET type is used by two web applications on the same server. The first web app to create the .NET type always succeeds and the second web app...
1
1782
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???!!!
1
2543
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
7
4798
by: Peter Afonin | last post by:
Hello, I'm using this code to access a network share from an asp.net page: Dim dir As DirectoryInfo = New DirectoryInfo("\\10.0.0.150\FormLib\") Dim files() As FileInfo = dir.GetFiles("*.eps") When I try to do it, I get this error: System.UnauthorizedAccessException: Access to the path
22
3301
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
2270
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 ***
7
1887
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net2.0 for a windows application. I call a C++ compile dll and it works fine in Win2K server but I get the follow error message when I run the same application on a win2k3 server. I use the Depends tool and found 3 ms lib used by this dll and I have those copied to my application folder when I install the application on the server but I'm still getting the error. Does anyone know how I can address this problem?...
0
8946
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
8774
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,...
1
9235
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
8186
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
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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
2
2721
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.