1
Vote

Error when importing solution: the specified path, filename, or both are too long.

description

After selecting a solution for import and during the "Extracting Solution Content" stage, I am getting the following message: Error: the specified path, filename, or both are too long. The fully qualified file name must be less than 260 characters and the directory name must be less than 248 characters.
 
Other solutions in the same organization are importing correctly.
 
************** Exception Text **************
System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.PathHelper.GetFullPathName()
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
at System.IO.Directory.CreateDirectory(String path)
at RibbonEditor.Managers.ZipManager.ExtractFilesContentFromZip(Stream stream, String targetFolder)
at RibbonEditor.Managers.ZipManager.ExtractFilesContentFromZip(Byte[] zipFile, String targetFolder)
at RibbonEditor.Managers.SolutionManager.OpenSolution(Form mainForm, Entity solution, MetadataManager mManager, CrmConnectionStatusBar statusBar)
at RibbonEditor.MainForm.tsbMainOpenSolution_Click(Object sender, 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.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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

file attachments

comments

tanguy92 wrote Oct 27, 2011 at 2:49 PM

Hi,

It really depends on the length of folder and filenames for web resources... I need to find a workaround...

wrote Feb 14, 2013 at 7:49 PM