Consider the following scenario:
In this scenario, you receive the following error message:
- You have Windows PowerShell version 2 and .NET Framework 4.0 installed on a computer that is running Microsoft Windows Server 2008 R2.
- At the command prompt, you run the Get-UevTemplate command from Microsoft User Experience Virtualization (UE-V) to retrieve a list of templates.
In this scenario, you receive the following error message:
Get-UevTemplate : The type initializer for 'Microsoft.Uev.Commands.TemplateHelpers' threw an exception.
At line:1 char:23
+ Get-UevTemplate <<<<
+ CategoryInfo : NotSpecified: (:) [Unregister-UevTemplate], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Uev.Commands.GetUevTemplateCommand
At line:1 char:23
+ Get-UevTemplate <<<<
+ CategoryInfo : NotSpecified: (:) [Unregister-UevTemplate], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Uev.Commands.GetUevTemplateCommand