Good afternoon experts!
I'm having trouble getting a dll to properly load. It loads on my machine, and even though the users who will be using the library have it on their machine, the program will not recognize it.
I'm writing an automation program that interacts with a green screen application. It uses the atmapi32.dll library. The first time I tried to run it on someone's computer, i received the following error: - System.DllNotFoundException: Unable to load DLL 'atmapi32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
-
Thanks to Plater, and his suggestion in another thread to use Process Explorer, I learned the path of the DLL it was trying to use. Thinking myself extremely clever, I hard coded the library directory, to point to a copy of the library in the application's folder but I got this error instread: - System.DllNotFoundException: Unable to load DLL 'c:\program files\sls\workbook1\atmapi32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I've been down a similar path before, with trying to get the same program to recognize a library, however the that case, the library didn't exist on the users' machines. In this case, the library exists, but the program will not find it, even when I hard code.
Does anyone know how I can fix this? My only other thought would be to find a way to package the library in the install file (which I don't know how to do either).
Thank you in advance!
5 3394
As a follow up, I've tried using gcutil on the users computer, but that doesn't seem to help either.
Plater 7,872
Recognized Expert Expert
This is a bit of a head scratcher, I think gcutil only applies to .NET(managed) DLLs, if the DLL is a COM dll, it gets registered differently I think.
Not sure why it would not allow you to use the dll on other systems.
Maybe the error message is a red herring and its really a security/permissions issue on the system?
I tried going into the application properties and running the analyzer for the security, and it made the application Full Trust. But I got the same error as I did before. Is there a way to see exactly what the function within the DLL is trying to do, so I can see where the exception is being generated from?
I've also tried to use Dependency walker to see if I'm missing a library. It says that MPR.dll has "At least one module has an unresolved import due to a missing export function in a delay-load dependent module." The function missing the export is WNetRestoreConn ectionA. I get the same error on my machine (where the program does work) as well as the users, so I don't think that's the issue.
I'm don't know if this will help narrow it down any...
- Environment.SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") & ";C:\Program Files\IBM\EHLLAPI")
Figured it out! The PATH variable was missing the directory where the atmapi32 was located.
Thank you all for your help!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: robert walker |
last post by:
hi all,
to my webapp named mrf, i have added load-on-startup tag
to mrf\WEB-INF\web.xml
so i added a snippet like so
<servlet>
<servlet-name>loadDbProperties</servlet-name>
<servlet-class>mrf.LoadDbPropertiesServlet</servlet-class>
|
by: DC Gringo |
last post by:
I have a datagrid that won't sort. The event handler is firing and return
label text, just not the sort.
Here's my Sub Page_Load and Sub DataGrid1_SortCommand:
--------------------
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
|
by: Lowell |
last post by:
Windows XP SP2 + Symantec AV + VS 2003 with .NET Framework 1.1
IIS won't load or run existing ASP.NET applications and VS can't create or
load web projects (HTTP/1.1 500 Server Error).
Event System log shows a warning with the following attributes: User: N/A,
Source: W3SVC, Category: None, Event ID: 36, Description: The server failed
to load application '/LM/W3SVC'. The error was 'The specified metadata was
not found.'
|
by: theyas |
last post by:
Windows XP SP2 + Symantec AV + VS 2003 with .NET Framework 1.1
IIS won't load or run existing ASP.NET applications and VS can't create or
load web projects (HTTP/1.1 500 Server Error).
Event System log shows a warning with the following attributes: User: N/A,
Source: W3SVC, Category: None, Event ID: 36, Description: The server failed
to load application '/LM/W3SVC'. The error was 'The specified metadata was
not found.'
|
by: Doug Kent |
last post by:
Hi,
I am using a STA thread to run a COM object.
On a couple of machines the thread runs fine. On another machine the thread
won't start, and no exceptions are thrown.
This code is running in a web service implemented using C#, ASP.NET 1.1, IIS
5.1, Windows 2000 Server.
| |
by: navyliu |
last post by:
I have raised a discussion about assembly unloading.But we can't get a final
solution.
Since we cannot unlaod a assembly,Is there any reference about this indicate
that this problem won't make smartclient use up memory?
Best regard
navyliu
|
by: jianxin9 |
last post by:
Hi,
I have an ajax powered tabs box that has a javascript drop-down search menu in the first tab. When I click on another tab, and go back to the first tab I have to refresh the page to get the information to load. Any suggestions on how I might get around that. The articles tab is the tab where the javascript won't load. Thanks so much for any help you might be able to provide:
This is what the tabs code looks like:
<ul...
|
by: kyvl |
last post by:
Hi All,
I have a problem. Screens won't load. Example ( When I select Games on MSN, it will load the page, but not all the graphics or the buttons to make selections will load. When screens will load, I can't use any of the buttons to submit or continue on to the next screen. What would cause this problem?
Please help!!!!!!!
|
by: David Thielen |
last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows
2008 Server running IIS7.
We have copied all files to the Windwardreports\apps directory and
that apps directory has been converted to an application running in
..NET 2.X and Integrated mode.
We copied over the DB and edited the web.config file to the DB
username and password. I also added the NETWORK SERVICE user to the
DB.
|
by: jamwil |
last post by:
What's up guys. I'm having some issues... I've created a method as part of my lifestreaming class which takes an rss feed, and puts the data into a database... It's fairly simple... Check it..../////
// feed
//
// LOADS THE RSS FEED FOR
// LOOPS THROUGH AND FORMATS/FILTERS POSTS
// PULLS THE TIMESTAMP OF THE LATEST UPDATE FROM THE DB
// IF THERE ARE NEW POSTS, ADD THEM TO THE DATABASE
/////
public function feed($feed,$type) {
if...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |