Receiving "Unable to Load DLL 'nianlys.dll'" Error When Running A Measurement Studio Application on Windows Vista or Windows 7.Primary Software: Measurement Studio>>Measurement Studio for .NET SupportPrimary Software Version: 8.1.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I created a Microsoft Visual Studio installer that includes Measurement Studio components and installs the application on Windows Vista or on Windows 7. The application uses some of the Measurement Studio analysis methods. When I run my application, I receive the following error at the first call to an analysis routine. Unable to load DLL 'nianlys.dll': The specified module could not be found.Why am I receiving this error and how can I solve the issue? Solution: The National Instruments shared directory path for the nianlys.dll file is stored in the registry. In order to edit the registry on Windows Vista or Windows 7, the user must have administrator privileges. It is important to note that when you log in as an administrator, you are actually running with standard user privileges. This means you can only perform actions that are permitted by standard users (for example you cannot write to the registry). If you tried to run the MSI (Microsoft Installer) with standard user privileges, the application might have installed successfully but registry entries were probably not created, resulting in the errors mentioned earlier at runtime. However, if you run the setup.exe associated with the MSI, you will be prompted to elevate to administrative privileges, and registry entries will be created. One solution is to uninstall your existing application and re-install by either right-clicking on the MSI file or setup.exe and selecting Run as Administrator.Refer to the following article for more information on how to elevate installation permissions: MSDN: Windows Installer Deployment on Windows Vista, Related Links: MSDN: Windows Installer Deployment on Windows Vista Attachments:
Report Date: 10/19/2007 Last Updated: 02/19/2010 Document ID: 4EICN2CZ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
