Receiving "Unable to Load DLL 'nianlys.dll'" Error When Running A Measurement Studio Application on Windows Vista Primary Software: Measurement Studio>>.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. 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, 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. The final solution is to uninstall your existing application and re-install by either right-clicking on the MSI file and selecting Run as Administrator or double-click the setup.exe.Related Links: Attachments:
Report Date: 10/19/2007 Last Updated: 12/06/2007 Document ID: 4EICN2CZ |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
