Error Code: -17004, Could not load DLL or library

Hi All,
I am getting the following error message:
Error loading step 'x' of sequence 'MainSequence' in file 'y'.  Could not load DLL or external library C:\bin\driver.dll
Error Code: -17004, Could not load DLL or library.
Source 'TSAPI"
My main DLL is one written in C in LabWindows.  This DLL calls a second DLL that was written in Visual C++
I am using TestStand 2010 SP1 as well as CVI/LabWindows 2010.  I have WinXP Professioanl SP3.
This same sequence, DLL1, and DLL2 have worked together in previous versions of TestStand!!!!  All I did was upgrade to Developer Suite 2011.......??????
I have reviewed all the posts regarding this problem and have so far done the following:
1.  Verified Both DLL1 and DLL2 reside in the same directory
2.  Copied DLL2 into C:\Windows\system32
3.  Used Dependency Walker to verify that there are no other missing DLL's
4.  Unistalled Explorer 8 and installed Explorer 7 because of somthing I saw in depends and something I read while researching this problem.
5.  Verified the Search Directories in TestStand
I am wits end, as I cannot determine what the problem is and any suggestions would be welcome
Solved!
Go to Solution.

So I did come up with a solution to this problem, but I don't understand why it solves the issue.  Hopefully some of you can provide some insight.
So all my sequences were experiencing the problem described, and all sequences basically call the same dll's over and over.
I have a dll that I use as my "main" dll.  All my sequences use this dll and I continually add more functions as our company designes new products, etc.  This dll uses functions that are from my CommDll.  The CommDll was written in C++, and it is also used in several other dll's that my sequence call's as I use it for all serial/telnet requirements. 
So my test sequences for example calls the following dll's usually in this particular order ---
DbDriver - This dll handles all the database functioanality for our products, and calls libMysql.dll
PwrController.dll - this dll controls a pwrcontroller for all power on/power off, reboot, etc of our product.  This dll calls the CommDll.
CompanyDll - This is the "main" dll that hadles all the cli commands and other test functions that our product requires.  This also calls CommDll.
When the sequence calls are done in the order above, it does not work..  However, if I switch the sequence file to call the CompanyDll before the PwrController.dll everything works fine.  Is there an order of operations here????
I also found that when I compiled my PwrController.dll with CVI 2010, it gave me an error could not load PwrController.dll no matter what order the seqence calls were, leading me to believe that I am missing something when building this particular dll.  As soon as I copy the original, developed and compiled in 2006, everything works again.
Thanks,
greggj

Similar Messages

  • Why do I get "error code 3: Could not load front panel" when I run my executable​.

    I have a LV 8.5 VI that controls only an agilent spectum analyzer. The agilent VIs call DLLs rather than SCPI commands. I created an application and an installer to load on a non LV machine and ran setup which was successful. When I run the EXE I get "error code 3: Could not load front panel" for each of my agilent spectrum analyzer VIs. I have to click "OK" about ten times, once for each VI. (My executable runs fine on all machines that have labview 8.5) The front panel does load with a broken arrow. The errors listed when the arrow is clicked for all of the Agilent VIs state: Missing subVI AGE444xInitialize.VI (or close.VI or read.VI etc.)
    There is an AGE444x32.DLL in the data folder with the EXE file so I included as support both the DLL and all of the agilent drivers in the application build. Still no luck. I have built the application and installer about 6 times in various forms. I NEED AIR SUPPORT.
    Unfortunately I do not have access to the internet at my jobsite so bear with me.
    Rob

    Hi V-rob,
    I'm glad to hear the executable is working now that NI-VISA is installed.  Thanks for posting the solution!
    Jennifer R.
    National Instruments
    Applications Engineer

  • Could not load DLL or external library

    When I open my TS781784.seq file, I receive the following Run-Time error(s):
    Run Time Error #1
    Details:
    Could not load DLL or external library 'C:\EADS\DKH\TADS_3584\Development\TestProgramSets\PTS\TS781784\Sequence\TS781784.dll'.
    Error Code:
    -17004; Could not load DLL or library.
    Location(s):
    Step 'Display_Screen' of sequence 'SequenceFileLoad' in 'TS781784.seq'
    Run Time Error #2
    Details:
    Could not load DLL or external library 'C:\EADS\DKH\TADS_3584\Development\TestProgramSets\PTS\TS781784\Sequence\TS781784.dll'.
    Error Code:
    -17004; Could not load DLL or library.
    Location(s):
    Step 'Discard_Screen' of sequence 'SequenceFileLoad' in 'TS781784.seq'
    I click on Continue cleanup and it will then let me edit my sequence.
    The TS781784.dll is located in the Sequence directory with the .seq file.

    ccats_Init.uir is not a TestStand file. It is used by a CVI dll that your sequence calls from its SequenceFileLoad callback. Since it is loaded by the CVI DLL, not TestStand, changing the TestStand search paths is not the solution.
    UIR files are typically referenced via LoadPanelEx calls in a CVI DLL. If you have the source to the dll, examine the call. If the path to the UIR is absolute, then it is likely the file does not exist at that absolute location on the machine with the problem. If the path is relative (ie, just a file name), most likely the UIR is expected to be in the same directory as the DLL that loads it. Find the location of the DLL and UIR on a machine that works and compare the locations of the same files on the machine that doesn't. It might help to speak to the author of the DLL to find out where they intended the files to be located.

  • DCOM connector: could not load dll

    When I want to add a dll file (created with DCOM connector) to the component services, I get an error 'could not load dll, check to make sure all application runtime files are present etc'.
    This only occurs with a dll created on another machine (but with all the same settings; user, rfc's, etc).
    Anyone can please help me? This is quite urgent :o(

    Hi,
    Can I ask where you found the SAP DCOM connector?  I cannot seem to find it anywhere on the internet
    If you could help me / send the dcom files to me I would be much apprecaited
    Thanks
    Stu

  • Error in DTW- Could not load file or assembly 'ADODB'.

    Hello Experts
    I am getting below error in DTW
    could not load file or assemplt 'ADODB', version =7.0.3300.0, culture=neutral, publickeytoken='b03f57f11d50a3a' or one of its dependencies. the system cannot find the file specified
    Please advise.
    Thanks
    Deepak

    Hi Deepak,
    Kindly follow the check list
    1. Right Click DTW and run it as Administrator.
    2. Are you using same DTW version as SAP B1
    3. Uninstall and re-install DTW.
    4. If you are using 64-bit DTW, try to use 32-bit one.
    5. Check the Template, is it of the same DTW version.
    6. Remove all the unnecessary columns.
    7. Last try different Template extension.. (e.g: CSV (Comma delimited), or Text (Tab delimited))
    Hope you find this helpful......
    Regards,
    Syed Adnan

  • HT4137 error code:iTunes could not back up the iPhone "Karen's iPhone" because it is locked with a passcode. You must enter your passcode on the iPhone before it can be backed up.

    I am trying to use Itunes to move my data from my iphone 4s that was backed up on my Macbook Pro.  I keep getting an error code backing up from ITunes to new Iphone 5s:iTunes could not back up the iPhone “Karen’s iPhone” because it is locked with a passcode. You must enter your passcode on the iPhone before it can be backed up.  On the Iphone it keeps telling me to add another network.  I have put our home network on the Iphone.  When I put the passcode in the phone does not give me enough time to put my Apple ID password in and it shuts off.  Help!
    <Email Edited by Host>

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

  • -9808 error code - we could not complete your itunes store request.  Help?

    As soon as I log onto itunes, I get a box stating itunes could not complete the itunes request due to unknown error code of -9808.
    Anybody assist me with this please?

    Try:
    iTunes Store: "An unknown error occured (-9808)"

  • Error Code 1402 Could not open Key

    When I try to run the auto installer I get a message that says.:
    Error 1402.Could not open key:
    UNKNOWN\Components\2A31EAB9FA7E3C blalhblhablah
    BLALBLAHBLAH..............................
    Verify that you have sufficient access to that key, or
    contact your support personnel.
    How do I fix this?

    Hi Chardawg,
    Please try and use the below kb article for resolution.
    Error 1402 | Error 1406 | Acrobat, Reader
    Cheers,
    Kartikay Sharma

  • Could not load DLL or External library "c:\folder\123.dll" - This DLL requires the following DLL which could not be found or loaded: abc.dll (Not Found)

    I am having an issue when I try to run a Test Stand sequence that calls a CVI DLL.  The error I get is the subject of this post. 
    If I were to put "abc.dll" in the same folder where "123.dll" resides, this error will go away.  However, "123.dll" is used in other applications and I don't want to create multiple copies of this DLL for every program or sequence that wants to call it - that could get messy.
    Does anyone have any suggestions as to what the issue might be?
    Thank you,
    Seth Kline

    I think, http://msdn2.microsoft.com/en-us/library/7d83bc18(VS.80).aspx will give you an idea how to solve the problem 

  • Error 2519 LabVIEW could not load the TDMS file component

    Hi there, 
    I have LabVIEW 2014 for Linux, and have successfully installed it on OpenSUSE 13.1 with no issues. 
    The problem I am seeing is with TDMS, I have placed down and "Open TDMS" followed by "close TDMS" provided it my file path to my TMDS File and I see the following error:
    I have searched NI.com and google, and what I keep finding is the problem with cRIO. I am running a desktop version of Linux as mentioned above. 
    Any help or advise would be greatly appreciated.
    Many thanks
    Kevin
    Solved!
    Go to Solution.

    Hey 
    Thanks for getting in touch with me. I can confirm I have the TDMS components installed and in the correct location.
    I will try to reinstall my LabVIEW and see if that helps.
    I have two systems that both are running the same version of Linux and I have the same issue on both systems. One is a physical system the other is a virtual machine replicating the physical system. 
    Many Thanks

  • I get an error message of could not load video when trying to watch a rented video from iTunes how do I resolve this?

    Aanyone help I cannot watch a rented movie I have downloaded from iTunes as I get the above message- there is also no option to delete and re download the film can anyone help?

    I would suggest contacting iTunes Support http://www.apple.com/support/itunes/contact/ to see if they can resolve the problem.
    Good luck,
    UG

  • How to handle LabVIEW Error 3: Could not load front panel

    I was working on an application, running a vi when the computer turned off. It took me a little time to start the computer again (is not an old computer, is a P4, 1GB, ABIT IG7 MotherBoard). After I unplugged and plugged the Power Unit it was possible to start the computer, before starting, it says that a CPU problem occured and press F1 to continue. Afer press F1 Windows started normally. Then I tried to open the vi in which I was working when the problem occured and LabVIEW says:
    LabVIEW: Resource not found.
    An error occurred loading the vi.
    LabVIEW load error code 3: Could not load front panel.
    The question is, can I open my vi someway or I just lost it?
    I will really appreciate your answers since I have been working for a long time in this vi.

    Well, I'm faced with this problem now.  VI started its life as a 9.01 LV 2009/Vision 2009 on a given machine.  Copied to another machine wth 7.1, 8.2 and 9.01 on it.  Opened with 2009, saved it for 8.0.  Opened it with 8.2, saved it for 7.1.  Opened it with 7.1//Vision 7.1.1,  edited it, saved. File appears to be fine.
    Now trying to open it with either 8.2 or 2009 (9.01) fails with error code 3.  Note that it still opens with 7.1, so the front panel is there.  Anyway to fix this?

  • Could not load front panel

    I was given an application by a hardware vendor (a test program for their device) that was built via Labview (I have only the .exe).  When I try to start it, I get a bunch of "could not load front panel" errors, all of the form:
    LabVIEW: Resource not found.
    An error occurred loading VI '[x].vi'.  LabVIEW load error code 3: Could not load front panel.
    [x] is the only difference among the four errors I get, where [x] is:
    * NI_AAL_Pro.lvlib:Unwrap Phase.vi
    * NI_AAL_Pro.lvlib:Real FFT.vi
    * NI_AAL_Pro.lvlibcaled Time Domain Window (DBL).vi
    * NI_AAL_Base.lvlib:Mean.vi
    Basically every post I can find on ni.com about "could not load front panel" suggests that this is a build-time problem, i.e. that the developer forgot to check a box that would force the missing components to be included, which doesn't help unfortunately... but here's the twist: when I move this to another machine, it works fine.  I don't have LabView installed on either machine.  Both are Win8.1 x64.  I believe the application was built with LabView 2010.
    The only relevant difference between the machines that I can think of is that on the machine where the application *doesn't* work, I use many National Instruments device and have installed DAQmx.  You'd think that if anything, that would install missing components and make this *less* likely to happen.  
    Since encountering this problem, I've tried to install every Labview 2010 runtime SP/patch I could find, but unless I'm missing something, there's not really a definitive place I can do to make sure I have all the patches or get a single cumulative rollup.
    Any ideas?  I don't have access to LabView or the source .vi, but the fact that it works on a second machine suggests there's hope.  I really want it to run on my primary machine, where all the relevant hardware is.
    Thanks!
    -Dan

    Is it possible that one machine only has the minimum run time engine (~42MB) installed? You need the full standard version (~180MB).
    LabVIEW Champion . Do more with less code and in less time .

  • Deploy Web Site Error:Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies

    I have created a ASP.NET web Site (not Web application), using Visual Studio 2012 Ultimate and "SQL Server Compact 4.0 Local Database" in my C# Code.
    I am able to successfully compile & publish the website to another IIS Web Server, with Operating System Windows Server 2008 R2 Standard. I can even test, successfully, this website on the machine I developed it in.
    I am publishing the website, from within Visual Studio, to a Network web server running IIS.  To Publish I am using Build-> "Publish Web Site".  In the Publish Profile, I am using Web Deploy Method. Even though I am using, successfully,
    "SQL Server Compact 4.0 Local Database" in my website, the "settings" (in Publish Profile) does not detect any Databases in the project. Which may not be a problem.
    When I try to bring up the web site on the IIS Web Server machine I get the following error..    
    Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies .
    As my project is a Web Site, not Web Site Application, I do not have a references node in the Solution Explorer. I think the System.Data.SqlServerCe.dll, which is type GAC in my project, is not getting published to the webserver, which is causing this Error.
    Can I copy this .dll over manually ? If yes, where to put on the ISS Web Server ? I do not see any bin folder.
    Any help to resolve this error will be appreciated.
    diana4

    Hello.. I went ahead and created web application project and have gone past that error. But I have a new error now
    System.Data.SqlServerCe.SqlCeException: Unable to load the native components of
    SQL Server Compact corresponding to the ADO.NET provider of version 8876.
    Install the correct version of SQL Server Compact. Refer to KB article 974247
    for more details.
    Compiling and Publishing (Deployment) are both successful 
    In my project, when adding reference to SQL Server Compact Edition , there are 2 possible locations to reference the DDL from:
    C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Private
    C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop.
    I have tried both. I get the same error as shown above.
    Interestingly, in My WebConfig, I do not see any reference to System.Data.SqlServerCe.
    Yet, the Website works when I click on Ctrl+F5 
    diana4

  • Error message:  AVCFPlayerAppliesMediaSelectionAutomaticallyKey could not be found in AV FoundationCF.dll.

    I have repeatedly unistalled and reinstalled iTunes and quicktime to only received the same error code:  AVCFPlayerApliesMediaSelectionAutomaticallyKey could not....etc.  I have been searching and doing this since November 2013.  There must be a way to get it to work.  I have a PC operating on Window 7.   I have no problem on the MAC, but I'm a PC girl. 
    I was getting the apple application error, but I managed to get that installed. 
    Yes, I have gone into the control panel to repair the issue, but that too didn't work.

    I rebooted, reinstalled, rebooted and received the error code: Apple application support (error 2). Of all items deleted the only one that installed was iTunes. No bonjour, etc.
    Okay ... let's try installing the other components standalone.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder:
    Doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Doubleclick the AppleSoftwareUpdate.msi to do a standalone ASU install.
    Doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    Doubleclick the Bonjour.msi (or Bonjour64.msi) to do a standalone Bonjour install.
    Do those all go through okay? If so, can you get iTunes to launch without the error messages?

Maybe you are looking for