PAL 2.0.7 - Can't Export System Overview Threshold File

Feb 4, 2011 at 8:56 PM

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\Documents and Settings\p070281\Desktop\Dev\PAL\QuickSystemOverview.xml'.
File name: 'C:\Documents and Settings\p070281\Desktop\Dev\PAL\QuickSystemOverview.xml'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(String filename)
   at PALFunctions.PALFunctions.InheritFromThresholdFiles(String sThresholdFilePath) in C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\PALFunctions\PALFunctions.vb:line 19
   at PALFunctions.PALFunctions.ExportThresholdFileToPerfmonTemplate(String sThresholdFilePath) in C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\PALFunctions\PALFunctions.vb:line 73
   at PALWizard.frmPALExecutionWizard.SaveFileDialog1_FileOk(Object sender, CancelEventArgs e) in C:\Users\clinth\Documents\~MyDocs\~Projects\PAL_PS\PALWizard\frmPALExecutionWizard.vb:line 949
   at System.Windows.Forms.FileDialog.OnFileOk(CancelEventArgs e)
   at System.Windows.Forms.FileDialog.DoFileOk(IntPtr lpOFN)

************** Loaded Assemblies **************
    Assembly Version:
    Win32 Version: 2.0.50727.3615 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    Assembly Version:
    Win32 Version:
    CodeBase: file:///C:/Program%20Files/PAL/PAL%20v2.0.7/PALWizard.exe
    Assembly Version:
    Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/
    Assembly Version:
    Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/
    Assembly Version:
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/
    Assembly Version:
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/
    Assembly Version:
    Win32 Version:
    CodeBase: file:///C:/Program%20Files/PAL/PAL%20v2.0.7/PALFunctions.DLL
    Assembly Version:
    Win32 Version: 2.0.50727.3618 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/
    Assembly Version:
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the section.
The application must also be compiled with debugging

For example:

    < jitDebugging="true" />

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Feb 8, 2011 at 4:47 AM

What did you do to produce this error?

Feb 9, 2011 at 9:10 PM

I am receiving the same error. To reproduce:

  1. On the 'Threshold File' tab I select 'Microsoft SQL Server 2005/2008' from the drop down list
  2. Click the 'Export to Perfmon Template File...'
  3. Browse to the save location
  4. Type a file name
  5. Click 'Save'

This results in an error. I am encountering this error on Windows XP. I have not tried it on a different OS yet.


Feb 10, 2011 at 2:53 AM

Thank you for the repro steps. I reproduced the problem on Windows XP and will try to fix it. It works fine on Windows 7.

Feb 10, 2011 at 3:40 AM

I found the root cause. I tried to open one of the threshold files assuming the active file path is still in the application installation directory, but when the save dialog box is used, the assumed file path changes to the target file path. I have this fixed in v2.0.8. I have published a beta version for you to try at:

Please try it and let me know if it is fixed. Thank you!