Using (SPWeb TopLevelWeb = objectData.Web)ĭwnEachWeb(TopLevelWeb, TopLevelWeb.Title, tbDirectory.Text) SPObjectData objectData = (SPObjectData)currentNode.Tag TreeNode currentNode = tvWebs.SelectedNode Private void btnDownload_Click(object sender, EventArgs e) It reaches the limit for string, Code is given below, #region Downloading Schemes The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.Īt System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)Īt System.IO.Path.GetFullPathInternal(String path)Īt 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)Īt System.IO.FileStream.ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) System.IO.PathTooLongException: The specified path, file name, or both are too long. I created a app that downloads all document libraries in a SP Site, but at one point it giving me this error (I tried looking at google but couldn t find anything, now if anyone knows any trick to solve this problem please respond otherwise thanks for looking at it)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |