473,796 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DLL won't load VB.NET

seraieis
60 New Member
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:
Expand|Select|Wrap|Line Numbers
  1. System.DllNotFoundException: Unable to load DLL 'atmapi32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
  2.  
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:
Expand|Select|Wrap|Line Numbers
  1. 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!
Nov 10 '08 #1
5 3394
seraieis
60 New Member
As a follow up, I've tried using gcutil on the users computer, but that doesn't seem to help either.
Nov 11 '08 #2
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?
Nov 11 '08 #3
seraieis
60 New Member
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?
Nov 11 '08 #4
seraieis
60 New Member
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...
Nov 11 '08 #5
seraieis
60 New Member
Expand|Select|Wrap|Line Numbers
  1. 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!
Nov 11 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
11934
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>
7
2476
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
3
3861
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.'
5
4660
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.'
5
1633
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.
3
1581
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
1
5129
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...
4
1320
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!!!!!!!
2
6564
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.
2
3233
jamwil
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...
0
9684
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
10459
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
10236
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...
0
10017
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...
1
7552
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
6793
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
5445
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...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3734
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.