473,395 Members | 2,795 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,395 software developers and data experts.

DLLImport and DOT NET Framework 2.0

Hello All
I am experiencing a problem calling one of my un-managed C++ DLL from a
Web page
This was working fine in Visual Studio 2003 version but gives following
error in Visual Studio 2005
Unable to load DLL 'xxxx.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)

I am calling my DLL from the web page using DLLImport.
I read in other posts something related to dependency.
When i look at the dependency for this it showed system32\Kernel32.dll
and system32\OLeAUTO32.dll
I am calling my DLL from the web page using DLLImport.
Do i have to reference these system DLLs in my Web Project to make
DLLImport call work again ??
Appreciate any help
Cheers

Apr 27 '06 #1
1 4285
Hello All

This seems to have fixed after i included the location of DLL file in
the Environment PATH variable.
Its atleast better than having to copy the DLL into system folder as
some posts suggested :(

Cheers


nirbhay wrote:
Hello All
I am experiencing a problem calling one of my un-managed C++ DLL from a
Web page
This was working fine in Visual Studio 2003 version but gives following
error in Visual Studio 2005
Unable to load DLL 'xxxx.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)

I am calling my DLL from the web page using DLLImport.
I read in other posts something related to dependency.
When i look at the dependency for this it showed system32\Kernel32.dll
and system32\OLeAUTO32.dll
I am calling my DLL from the web page using DLLImport.
Do i have to reference these system DLLs in my Web Project to make
DLLImport call work again ??
Appreciate any help
Cheers


Apr 27 '06 #2

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

Similar topics

4
by: Michael Tissington | last post by:
I have a C# function that calls into a C++ DLL I have placed the DLL in the 'bin' folder of my asp.net project I'm using something like However when I try to call the function I'm getting...
15
by: Jim | last post by:
I am extremely frustrated. I am building c# application for a call center and am using a third party API to access some hardware. When develop and test my class using the windows console the...
1
by: Irfan | last post by:
Hi, I tried the same, but did not get any such error/exception. Here's my path to the win32 DLL that I reference in my C# code with VS.NET 2003 and .NET framework 1.1 public static extern...
0
by: t_msreddy | last post by:
Hello! I am working on .NET compact framework. I have a device driver in C/C++. I need to write a wrapper in C# for it. So I used DllImport statements for all the methods that I want to use and...
2
by: Brian Anderson | last post by:
Hello, is it possible to use DllImport to call a DLL in ASP.NET ? Or is it necessarry that my DLL has to be copied into \System32 ? My DLL is a native C++ 7.1 DLL (not managed, no COM, no...
10
by: A_StClaire_ | last post by:
hi guys, I am working on a C# app that needs to create directories on the fly. security settings enforced by our ISP do not allow us to use the standard .NET calls, so I am forced to resort to...
1
by: John Dinning | last post by:
(Using VS2005 C# and compact Framework. Target device is running CE5). I am creating a simple visual control (New Control Library project for smart device Windows CE 5), derived from Label, with...
0
by: Nelson R. | last post by:
Greetings, I've already posted this message on aspnet.security group (think its related to security issues), but since didn't get any response, I post it here. -- I have a problem, and been...
1
by: Larry | last post by:
I have an asp.net application (C#) that calls a web service that uses several c++ dlls which are loaded with DllImport. I put these dlls in a sub-directory off of the bin directory. For example,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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,...
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...
0
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...
0
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,...

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.