Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Studio 2015 and MVC

Solved!
Go to solution

Hi,

 

I am developing an MVC application and i want to know if measurement studio 2015 supports MVC framework.

0 Kudos
Message 1 of 6
(2,765 Views)

Hi Mendo,

 

Yes Measurement Studio 2015 supports the MVC framework. The MVC Framework is built with C# so measurement studio supports it.  

0 Kudos
Message 2 of 6
(2,728 Views)
Solution
Accepted by topic author mendozabridget777

Hi Mendo,

 

I did a little more digging and actually found that Measurment Studio does not support the MVC framework:

 

http://zone.ni.com/reference/en-XX/help/375857A-01/xml/usingninetwebformscontrols/

 

In the first paragraph in this help documentation it is stated that "Measurement Studio Web Forms controls require complex UI functionality such as callbacks, view state management, and event handling to function properly. ASP.NET Model-View-Controller (MVC) does not include this functionality; therefore, Measurement Studio Web Forms controls do not support MVC."

Message 3 of 6
(2,721 Views)

@rleonard3 wrote:

Hi Mendo,

 

I did a little more digging and actually found that Measurment Studio does not support the MVC framework:

 

http://zone.ni.com/reference/en-XX/help/375857A-01/xml/usingninetwebformscontrols/

 

In the first paragraph in this help documentation it is stated that "Measurement Studio Web Forms controls require complex UI functionality such as callbacks, view state management, and event handling to function properly. ASP.NET Model-View-Controller (MVC) does not include this functionality; therefore, Measurement Studio Web Forms controls do not support MVC."


Thanks. Smiley Happy

0 Kudos
Message 4 of 6
(2,704 Views)

Hi,

 

I would like to make also ASP.NET MVC application too. What we only need are the DAQmx libraries for interfacing NI hardware. No idea to use old Measurement Studio Web forms when you can do everything better with JavaScript, HTML5, CSS, Razor,..

 

BR,

Ilkka

 

0 Kudos
Message 5 of 6
(2,629 Views)

I use Visual Studio 2017 and have a ASP.NET MVC application.. 

 

It is a messy project.. But not sure if NI DAQmx is the problem.. here is what I gen when try to run the application:

Stack Trace:

[BadImageFormatException: Could not load file or assembly 'NationalInstruments.DAQmx' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +21
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

[ConfigurationErrorsException: Could not load file or assembly 'NationalInstruments.DAQmx' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +738
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +92
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +290
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +549

[HttpException (0x80004005): Could not load file or assembly 'NationalInstruments.DAQmx' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10042604
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
0 Kudos
Message 6 of 6
(2,626 Views)