I can not publish my project,'
showing error
Error 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.
I can not publish my project,'
showing error
Error 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.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal YelveRank #178 · 13.6K reputationPosted Feb 2, 2023, 1:55 AM EST
refer below link
https://learn.microsoft.com/en-us/answers/questions/677742/how-can-i-handle-the-specified-path-file-name-or-b
Naimish MakwanaRank #324 · 7.7K reputationPosted Feb 2, 2023, 3:29 AM EST
Hello Sandip,
This error occurs in .NET due to the limitation in the length of the file path or file name. In order to resolve this error, you need to shorten the length of the file path or file name or Remove any unnecessary subdirectories or try to publish your project in a location where the length of the path is shorter.
Thanks
Naimish
Sandeep KumarRank #1,642 · 937 reputationPosted Feb 2, 2023, 7:38 AM EST
i move to my project to desktop but still same error showing while publish my project