VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Stimulus Profile Editor Crash

Hello,

 

I am getting an error while try to run stimulus profile editor. I am using dot as decimal separator.

I have attached error dialog. I have tried to repair Ni Veristand installition but nothing changes.

 

Regards,

 

An_error_occurred_2013_03_04_16_31_46.png

 

Error Message :

 

An error occurred:

Cannot create instance of 'Stimulus_Profile_Editor_UI' defined in assembly 'Stimulus Profile Editor, Version=2011.1.0.1, Culture=neutral, PublicKeyToken=a6d690c380daa308'. Exception has been thrown by the target of an invocation.  Error in markup file 'Stimulus Profile Editor UI.xaml'.

 

Details

System.Windows.Markup.XamlParseException: Cannot create instance of 'Stimulus_Profile_Editor_UI' defined in assembly 'Stimulus Profile Editor, Version=2011.1.0.1, Culture=neutral, PublicKeyToken=a6d690c380daa308'. Exception has been thrown by the target of an invocation.  Error in markup file 'Stimulus Profile Editor UI.xaml'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'NationalInstruments.VeriStand.CommonUI, Version=2011.1.0.0, Culture=neutral, PublicKeyToken=a6d690c380daa308' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'NationalInstruments.VeriStand.CommonUI, Version=2011.1.0.0, Culture=neutral, PublicKeyToken=a6d690c380daa308'
   at NationalInstruments.VeriStand.UI_StyleManager.UI_Styles.ApplyTheme(String themeName)
   at NationalInstruments.VeriStand.StimulusEditor.Stimulus_Profile_Editor_UI..ctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
   at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
   at System.Windows.Markup.BamlRecordReader.ThrowExceptionWithLine(String message, Exception innerException)
   at System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)
   at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)
   at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
   at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
   at System.Windows.Markup.TreeBuilder.Parse()
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__0(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

 

0 Kudos
Message 1 of 33
(9,827 Views)

Hi Hreidmar,

 

I have some questions for you to further understand the cause to this issue:

 

- What version(s) of NI VeriStand do you have install? NI VeriStand 2011, 2011 SP1 and/or 2012?

- In the past, were you able to successfully use the Stimulus Profile Editor on the same computer/account?

- Did you ever install NI VeriStand 2012 Beta on this computer? Essentially, I am attempting to determine if a recent update/installation broke your distribution.

- Does this error occur upon launching NIVS SPE, creating new files, or when opening files?

- Open Measurement & Automation Explorer and navigate to Software >> NI VeriStand 2011 SP1 and note the Version column. What version is listed? Is it similar to the image shown below?

Nestor
0 Kudos
Message 2 of 33
(9,817 Views)

Hi NestorG,

 

I have installed Ni Veristand 2011 SP1. After I have realised crash I have downloaded installer from the link below and repair installition using the files downloaded.

http://download.ni.com/support/softlib/NI_VeriStand/2011/2011SP1VeriStand_downloader.exe

 

Previously I can run stimulus profile editor.

 

I didn't try to install Ni Veristand 2012.

 

I have tried to run Stimulus Profile Editor in two ways, Start->All Programs->National Instruments->NI Veristand 2011 SP1->Stimulus Profile Editor and on Ni Veristand Project, Project Explorer - Right Click Profiles ->Launch Stimulus Profile Editor. Both ways I am getting same error.

 

On MAX my configuration seems like this:

 

NI VeriStand 2011SP1 - Measurement & Automation Explorer_2013-03-05_08-53-32.png

 

Regards,

0 Kudos
Message 3 of 33
(9,799 Views)

Thank you Hreidmar. This information helps a lot. R&D will attempt to reproduce this in-house. Essentially, what I see is that somehow a patched version of the Stimulus Profie Editor was distributed to your system (note version 2011.1.0.1 in the error dialog) without executing the NIVS 2011 SP1 f1 patch installer (this assumption was made due to the NIVS version in MAX). Because the patch installer wasn't executed, you are missing other components to run the patched SPE executabled.

 

Does replacing the attached files with your copies resolve the issue? Please make a backup of your current two files before using the ones attached below.

Copy the files to: C:\Program Files (x86)\National Instruments\VeriStand 2011

 

- Are you able to open the shipping example, such as the Engine Demo Basics stimulus profile?

 

Nestor
0 Kudos
Message 4 of 33
(9,782 Views)

Hello NestorG,

 

I have replaced the files you have uploaded. Now I am geting Windows error.

NI VeriStand 2011 - Stimulus Profile Editor_2013-03-06_07-20-15.png

 

When you mentioned about f1 patch, i have run Ni Update Service. I've tried to install f1 patch using Ni Update Service. Installition completes but Ni Update Service warns me to update Ni Veristand SP1 f1 patch.

 

NI Update Service_2013-03-06_07-23-44.png

 

Stimulus Profile Editor is still not working.

 

I will try to completely uninstall and reinstall Ni Veristand SP1.

 

Regards,

0 Kudos
Message 5 of 33
(9,759 Views)

Hello,

 

I've uninstalled and reinstaled NiVeristand 2011 SP1 from the files that I have downloaded before. I've mentioned the download link in my previous messages.

 

I have to say that nothing changed. Just my error message is evolved. Smiley Frustrated

You can see error message screen shoot below:

 

Program Manager_2013-03-06_09-33-25.png

 

Also here you can see software version that shown in MAX:

 

NI VeriStand 2011SP1 - Measurement & Automation Explorer_2013-03-05_08-53-32.png

 

Veristand Version : 11.1.1

 

I guess there is no hope for my Veristand 2011 SP1. I am considering to install Ni Veristand 2012.

 

Is is possible to run the stimulus profiles and projects on Ni VS 2011SP1 which created on Ni VS 2012? Will my custom devices that designed and tested for Ni VS 2011 work on Ni VS 2012? Is migrating to Ni VS 2012 suggested?

 

Regards

0 Kudos
Message 6 of 33
(9,751 Views)

Please pardon the frustration and inconvenience. I tried multiple test scenarios in an effort to reproduce your issue.

 

The only similar scenario I was able to achieve was:

1. Install NIVS 2011 SP1

2. Apply the f1 patch from Update Service

3. Repair the installation using the NIVS 2011 SP1 (non patched) installer.

 

During the installation I am eventually asked to insert the f1 patch installer, however I am given the option to ignore this step. Selecting continue without giving it the f1 patch installer reproduces your issue. In other words, MAX reports a non-patch version of NIVS, but files such as SPE.exe are indeed patched. Do you recall following a similar installation process?

 

-----------------------------------

Your installation is essentially in a very corrupt/unknown state. My next step to recover from this is to us an installer clean up utility (aka MSIBlast). Follow the instructions below to remove NIVS 2011 SP1 and its dependencies. After which we can reinstall NIVS 2011 SP1 and it's f1 patch.

 

1. Download the attached file, msiblast.exe to your desktop

2. Run the exe As Administrator and wait for the content to populate in the launched window.

3. In the Package Name table, locate NI VeriStand 2011 SP1 - as shown in the attached picture.

4. Remove all 5 packages prefixed with NI VeriSand 2011 SP1 in their names by selecting the Uninstall button. The order at which you do this doesn't matter. (personally I started top down)

5. Now I need you to confirm that no NI VeriStand .NET assembly files are still around. Navigate to <C:\windows\assembly> and confirm you have no files prefixed with NationalInstruments.VeriStand in this folder.

6. Confirm that <C:\Program Files\National Instruments\VeriStand 2011> doesn't also exist.

7. Now reinstall NIVS 2011 SP1 using the link you provided.

8. Restart your PC and then install the patch using Update Service.

 

Confirm MAX reports NI VeriStand version 11.1.1 and that SPE.exe successfully launches. In my scenario these steps proved successfully in recovering my installation.

 

----------------------------------

NI VeriStand 2012 adds significant features and fixes, such a edit time scaling for channels and support for DAQ buffering - more info at http://www.ni.com/veristand/whatsnew/. I would encourage you to play around with NIVS 2012 new features if you are able to upgrade to that version. To answer your questions, all NIVS 2011SP1 files upgrade to NIVS 2012 (however once this happens you will not be able to open them again in NIVS 2011SP1). Your NIVS 2011SP1 custom devices were compiled in LabVIEW 2011; however NIVS 2012 requires LabVIEW 2012 and thus your custom devices must be recompiled using LV 2012.

Nestor
Download All
0 Kudos
Message 7 of 33
(9,715 Views)

Hello NestorG

 

Today I can find chance to try your solution suggestions. I have Uninstalled as you described. Checked files that probably left behind after uninstal.

 

I want to thank you for your kind help and patience.

 

I did install Veristand. But nothing chanced. Your explanations and error code that i get is resonably show that you are right about version update problem.

 

I want to focus on the installition files that I used to install Veristand 2011 SP1. I have found download link that I share before on an google search.

 

I am working at the field and our Developer Suit DVD's left in the office.

 

Could you please offer a trusted download location to Download Ni Veristand 2011SP1 and Ni Veristand 2011SP1 Patch1.

 

Thanks,

 

Best Regards,

0 Kudos
Message 8 of 33
(9,648 Views)

Hello Hreidmar,

 

As long as you have a valid serial number, you can download previous releases of NI software and patches at http://www.ni.com/downloads/products/ when logged into your user account.  Note that you will need to register the serial number and associate it with your account before the download is available.

 

Regards,

Tom L.
0 Kudos
Message 9 of 33
(9,621 Views)

Well this is unfortunate Hreidmar.

 

- Were you able to successfully launch NIVS 2011 SP1 before patching it again with f1?

- Did you again see the exact same error as your first post after patching SP1 via Update Service?

- What Windows OS are you using? Is this a special distribution like German or Japanese distribution of the OS?

- In the directory: C:\Program Files (x86)\National Instruments\VeriStand 2011

    • Right-click on 'Stimulus Profile Editor.exe'. Select Properties menu option. Then select the Details tab. What is the reported File Version?  
    • Open 'Stimulus Profile Editor.exe.config' file. What are the contents of this file?

- In the directory: C:\Program Files (x86)\National Instruments\VeriStand 2011\Data  

    • Right-click on 'NationalInstruments.VeriStand.CommonUI.dll', what is the file version to this file?
Nestor
0 Kudos
Message 10 of 33
(9,593 Views)