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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep KumarPosted Feb 2, 2023, 12:38 PM
i move to my project to desktop but still same error showing while publish my project
Naimish MakwanaPosted Feb 2, 2023, 8:29 AM
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
Vishal YelvePosted Feb 2, 2023, 6:55 AM
refer below link
https://learn.microsoft.com/en-us/answers/questions/677742/how-can-i-handle-the-specified-path-file-name-or-b