Showing posts with label WSP. Show all posts
Showing posts with label WSP. Show all posts

Sunday, September 25, 2011

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters.


If you receive the following error in Visual Studio while packaging WSP:

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

then simply move all your projects from

C:\Users\YOUR_USERNAME\Documents\Visual Studio 2010\Projects\

to root drive

C:\Projects

Visual studio does not allow absolute path that exceeds 260 characters. so use short filenames when you create any WSP package and create your project on root directory to avoid long absolute paths.

Wednesday, March 2, 2011

The service 'System.Workflow.ComponentModel.Compiler.ITypeProvider' must be installed for this operation to succeed. Please ensure that this service is available.

Yesterday I was creating a Visual studio workflow, so I have created a WSPBuilder Project and added ‘State Machine Workflow feature’ template. When I tried to open the workflow it gave me following error:

The service 'System.Workflow.ComponentModel.Compiler.ITypeProvider' must be installed for this operation to succeed.  Please ensure that this service is available.

To fix this issue you have to edit your project file:

<Project>
<PropertyGroup>
            <ProjectTypeGuids> {14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}ProjectTypeGuids>

Note: You will not encounter above error in ‘WSPBuider Project with Workflow' template.

Reference link: