473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

System.DllNotFoundException 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.DllNotFoundException: 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 2325
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.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.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.DllNotFoundException: 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
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...
0
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...
0
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...
1
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...
1
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...
7
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")...
22
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...
1
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...
7
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.