Tuesday, 7 June 2011

Error while deploying solution

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.

Solution:

Recently I encountered above error while deploying the solution. This error can be observed due to below two reasons:

1. Your Solution name/Project Name is too long

2. Your VS Solution/Project is under a deep folder structure for e.g. "D:\Dev\Code\Phase1\Latest\..\..\ etc..."

So to resolve this issue you can reduce the folder hierarchy or shorten the project/solution name.

No comments:

Query List/Document Library in Specific Folder

To query SharePoint List or Document Library in specific Folder “ FolderServerRelativeUrl ” as part of the CAML Query Code Snippet ...