09-26-2017 06:32 AM
Hi,
I am developing an MVC application and i want to know if measurement studio 2015 supports MVC framework.
Solved! Go to Solution.
09-27-2017 12:37 PM
Hi Mendo,
Yes Measurement Studio 2015 supports the MVC framework. The MVC Framework is built with C# so measurement studio supports it.
09-27-2017 01:14 PM
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."
09-28-2017 03:00 AM
@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.
10-27-2017 07:14 AM
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
10-27-2017 07:20 AM
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 |