This project has moved. For the latest updates, please go here.

Unhandled Exception: "The given path's format is not supported"

Sep 12, 2011 at 12:59 AM

Occurs when building CHM from MSDN SharePoint 2010 top and all child folders. Path and name for CHM changed to C:\Test.chm . Other file names and paths produce same problem.

Possible problem somewhere in downloaded content. 

Version 1.3.4.0.

Great tool by the way. Other (Technet) build well.

Thanks,

Step

 

 

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************System.NotSupportedException: The given path's format is not supported.   at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)   at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)   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, Boolean useLongPath)   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)   at PackageThis.Chm.Transform(String contentId, String metadataXml, String annotationsXml, String versionId, String docTitle, Content contentDataSet)   at PackageThis.Chm.Create()   at PackageThis.AppController.CreateChm(String chmFile, String title, String locale, Content contentDataSet)   at PackageThis.MainForm.exportToChmFileToolStripMenuItem_Click(Object sender, EventArgs e)   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)   at System.Windows.Forms.Control.WndProc(Message& m)   at System.Windows.Forms.ToolStrip.WndProc(Message& m)   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************mscorlib    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.235 (RTMGDR.030319-2300)    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll----------------------------------------PackageThis    Assembly Version: 1.3.4.0    Win32 Version: 1.3.4.0    CodeBase: file:///C:/Users/Administrator/Downloads/PackageThis1.3.4.exe----------------------------------------System.Windows.Forms    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.235 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 built by: RTMRel    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.236 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Configuration    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Xml    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.225 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------System.Data    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------System.Core    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.225 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll----------------------------------------System.Numerics    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 built by: RTMRel    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll----------------------------------------System.Web.Services    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll----------------------------------------1zkzw0db    Assembly Version: 1.3.4.0    Win32 Version: 4.0.30319.236 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Web    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.225 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll----------------------------------------System.Data.SqlXml    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 built by: RTMRel    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll----------------------------------------System.Xml.Xsl.CompiledQuery.1    Assembly Version: 0.0.0.0    Win32 Version: 4.0.30319.1 built by: RTMRel    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll----------------------------------------System.Xml.Xsl.CompiledQuery.2    Assembly Version: 0.0.0.0    Win32 Version: 4.0.30319.1 built by: RTMRel    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll----------------------------------------ISymWrapper    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/ISymWrapper/v4.0_4.0.0.0__b03f5f7f11d50a3a/ISymWrapper.dll----------------------------------------System.Xml.Xsl.CompiledQuery.3    Assembly Version: 0.0.0.0    Win32 Version: 4.0.30319.1 built by: RTMRel    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.SqlXml/v4.0_4.0.0.0__b77a5c561934e089/System.Data.SqlXml.dll----------------------------------------WindowsBase    Assembly Version: 4.0.0.0    Win32 Version: 4.0.30319.225 built by: RTMGDR    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll----------------------------------------
************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.
For example:
<configuration>    <system.windows.forms jitDebugging="true" /></configuration>
When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.