Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

asp.net server error: Unable to load DLL 'nianlys.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)

I tried to develop a web application by implementing measure studio 8. (under Visual Studio 2008, VB language). The application run well on the local machine (VS local server). However, whenever I deploy it on the IIS server, the error comes like: 

 

Unable to load DLL 'nianlys.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DllNotFoundException: Unable to load DLL 'nianlys.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[DllNotFoundException: Unable to load DLL 'nianlys.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)]
NationalInstruments.Analysis.Internal.j.f(Double A_0, Double A_1) +0
NationalInstruments.Analysis.Math.SpecialFunctions.Gamma(Double input) +47
CyberPlatformMain.ComponentsDetails.DrawComponentRe(Decimal[] Params) in D:\Websites\CyberPlatform\CyberPlatform\ClientObservations\ComponentsDetails.aspx.vb:169
CyberPlatformMain.ComponentsDetails.LinkWithDB(Int32 A) in D:\Websites\CyberPlatform\CyberPlatform\ClientObservations\ComponentsDetails.aspx.vb:122
CyberPlatformMain.ComponentsDetails.Page_Load(Object sender, EventArgs e) in D:\Websites\CyberPlatform\CyberPlatform\ClientObservations\ComponentsDetails.aspx.vb:7
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082 

 

However, If do not utilize the Gamma function in my program, there is not such error information and the plotting works well.

 

Can someone give me helps to correctly deploy the web applicatioin on the server?

 

 

 

0 Kudos
Message 1 of 3
(5,942 Views)

Hi there,

 

Create a WebSetup project and add the required files and assemblies. Build the setup project. Use this setup to install on to your machine (machine where you want to host the website).

 

Once the installation is complete, host the web application on the IIS as you would normally host a web application. Be sure the provide the correct installed path for the website when you create a virtual directory.

 

Hope this helps.

Message Edited by vcp on 06-08-2010 12:33 AM
0 Kudos
Message 2 of 3
(5,912 Views)

Dear, 

 

Many thanks four your proposal. However, it cann't seems to be my solution. Websetup project will buid a 'installable' package that should be run on the server hosting web applcation. Because our server is situated in the university's computer certer that host all the web sites for the educations/research. The IIS server adminstrator can not accept to run any setup program on the server (afraid of introducing virus or modifing setting to impact the others applications).

 

Actually, I am using the MS Web Deployment Project for making/sending all the files, assemblies to the server. I am wondering if there are other solutions for this problem?

 

Thanks agains

 

 

 

 

0 Kudos
Message 3 of 3
(5,901 Views)