Background:
When using the Package Builder of the Spotfire SDK, as part of validating your work it is necessary to launch Spotfire Analyst from your IDE such as Visual Studio, or from the Package Builder.
Problem:
You may find that the Analyst window flashes briefly and then disappears and never comes back.
Consequently, you will find one or both of the below errors in the Windows Event Viewer:
Error 1:
Faulting application name: Spotfire.Dxp.exe, version: 62.3.19628.3497, time stamp: 0x8101bfc3
Faulting module name: KERNELBASE.dll, version: 10.0.22621.3958, time stamp: 0xfbc3a4f6
Exception code: 0xe0434352
Fault offset: 0x000000000005fabc
Faulting process id: 0x0x5F5C
Faulting application start time: 0x0x1DAF83E96E47269
Faulting application path: C:\Spotfire_1403_SDK\SDK\Starter\Spotfire.Dxp.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 438b37ac-5caf-4a78-b09a-e8fc36a7c1cc
Faulting package full name:
Faulting package-relative application ID:
Error 2:
Application: Spotfire.Dxp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NotSupportedException
at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(System.String)
at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)
at Starter.Program.GetUpgradePath(System.Collections.Generic.IEnumerable`1<System.String>)
at Starter.Program.Run(Spotfire.Dxp.Starter.StarterSplashWrapper, System.Collections.Generic.Dictionary`2<System.String,System.Object>)
at Starter.Program.ExecuteRunLoopWithBootstrapFlag(System.String[], Boolean)
Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at Starter.Program.TryRunningOtherStarter(System.String[], Int32, Boolean)
at Starter.Program.Main(System.String[])
Even if DEBUG diagnostic logging is enabled with Analyst, no errors are reported in the Analyst log file. Visual Studio displays the following messages on screen:
Error Message 1:
'Spotfire.Dxp.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Spotfire_1403_SDK\SDK\Starter\Spotfire.Dxp.exe'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'.
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\Program Files (x86)\Spotfire\14.0.3\Spotfire.Dxp.exe'.
Exception thrown: 'System.BadImageFormatException' in mscorlib.dll
Exception thrown: 'System.BadImageFormatException' in mscorlib.dll
Exception thrown: 'System.BadImageFormatException' in mscorlib.dll
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\Program Files (x86)\Spotfire\14.0.3\Modules\Third Party Products_62.3.19905.2635\System.Resources.Extensions.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\Program Files (x86)\Spotfire\14.0.3\Modules\Third Party Products_62.3.19905.2635\System.Memory.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\Program Files (x86)\Spotfire\14.0.3\Modules\Third Party Products_62.3.19905.2635\System.Runtime.CompilerServices.Unsafe.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.Dxp.exe): Loaded 'C:\Program Files (x86)\Spotfire\14.0.3\Modules\Third Party Products_62.3.19905.2635\System.Numerics.Vectors.dll'.
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
Exception thrown: 'System.UnauthorizedAccessException' in mscorlib.dll
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
Exception thrown: 'System.NotSupportedException' in mscorlib.dll
'Spotfire.Dxp.exe' (CLR v4.0.30319: Domain 2): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'.
'Spotfire.Dxp.exe' (CLR v4.0.30319: Spotfire.ApplicationHost): Loaded 'C:\Program Files (x86)\Spotfire\14.0.3\Spotfire.Dxp.exe'.
Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Exception has been thrown by the target of an invocation.
Error Message 2:
System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(string)
System.IO.FileStream.Init(string, System.IO.FileMode, System.IO.FileAccess, int, bool, System.IO.FileShare, int, System.IO.FileOptions, Microsoft.Win32.Win32Native.SECURITY_ATTRIBUTES, string, bool, bool, bool)
System.IO.FileStream.FileStream(string, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)
Starter.Program.GetUpgradePath(System.Collections.Generic.IEnumerable<string>)
Starter.Program.Run(Spotfire.Dxp.Starter.StarterSplashWrapper, System.Collections.Generic.Dictionary<string, object>)
Starter.Program.ExecuteRunLoopWithBootstrapFlag(string[], bool)
Inner Exception 1:
NotSupportedException: The given path's format is not supported.
Symbol Load Information in the error message
C:\Spotfire_1403_SDK\SDK\Starter\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
C:\Spotfire_1403_SDK\SDK\Starter\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
E:\Source\GITEU\gen-14-0-3\spotfiredxp\obj\Spotfire.Dxp.Starter\net48\Official\net48\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
C:\WINDOWS\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
C:\WINDOWS\symbols\exe\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
C:\WINDOWS\exe\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
C:\Users\kdress\AppData\Local\Temp\1\SymbolCache\Spotfire.Dxp.pdb\61a1fe217f2949edbf82fefd275946db1\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
C:\Users\kdress\AppData\Local\Temp\1\SymbolCache\MicrosoftPublicSymbols\Spotfire.Dxp.pdb\61a1fe217f2949edbf82fefd275946db1\Spotfire.Dxp.pdb: Cannot find or open the PDB file.
Solution:
Check the permission settings on the Windows folder of the Analyst install location. This problem is known to occur if User Accounts have 'Read' access but only Admins have 'Modify' access.
Alternatively, if the logged-in user is a Windows Administrator, then right-click Run as Administrator when launching Visual Studio or Package Builder application.
Comments
0 comments
Article is closed for comments.