Results 1 to 4 of 4

Thread: system.io.pathtoolongexception error

  1. #1
    Join Date
    May 2009
    Posts
    59

    system.io.pathtoolongexception error

    I am using a C#.Net copying program to copy my files. But now I am getting system.io.pathtoolongexception error message while copying a specific directory. I am quiet confuse why i getting a specific error a particular file only. Is there something missing in the command. What can be the reason for this type of error. Help.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: system.io.pathtoolongexception error

    I think the file which you want to copy is located very deep in the directory. Once i was getting the error "The path is too long after being fully qualified. Make sure path is less than 260 characters". I was too not able to copy the file. I checked out all the codes and try it again by same problem is occurring again. You will need to check out the path of the file must not be to long. It must come under 248 characters.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: system.io.pathtoolongexception error

    The specified path, or file name or both must be having a very long name. They are exceeding the system defined maximum length. For windows the characters in the path name must be 248 characters only and for file name it must be less than 260 character only. May be both of the characters in the both type are exceeding the system limit. Because of that you are getting the specific error. And i don't think so there is a way to increase this limit.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: system.io.pathtoolongexception error

    The limit of windows characters in 260. But it not a .Net restriction. Well, we cannot change the value as it is embedded with the system. You system API depends on this value. But there is another way also. Your can use a third party copying software for your problem. I will recommend you Robocopy. Try this.

Similar Threads

  1. Replies: 3
    Last Post: 28-12-2011, 09:15 PM
  2. Replies: 10
    Last Post: 09-09-2011, 10:02 PM
  3. Replies: 6
    Last Post: 23-04-2011, 10:23 PM
  4. DHCP error in my event/ system in system tool
    By Cappuccino in forum Networking & Security
    Replies: 4
    Last Post: 08-03-2011, 07:04 AM
  5. Lsass.exe - system error or Isass.exe - system error
    By CaspaR in forum Windows XP Support
    Replies: 1
    Last Post: 23-11-2004, 03:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,490,079.75971 seconds with 16 queries