The specified path, file name, or both are too long.

Jak
Jak
Member
364 Points
152 Posts

Hi,

I am getting error on publish project:

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. ASPNETCOMPILER

Views: 8509
Total Answered: 2
Total Marked As Answer: 1
Posted On: 12-Mar-2015 15:52

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Admin
404 Points
67 Posts
         

Hi, Rahul

Add this to your publish profile to modify the temporary directory for package/publish:

<AspnetCompileMergeIntermediateOutputPath>c:\temppublish\</AspnetCompileMergeIntermediateOutputPath>

For this Do:

  1. Go to your web project folder, navigate to Properties\PublishProfiles folder.
  2. open your profile file profile_name.pubxml (not the profile_name.pubxml.user)
  3. copy/past <AspnetCompileMergeIntermediateOutputPath>c:\temppublish\</AspnetCompileMergeIntermediateOutputPath> under the <PropertyGroup> tag
  4. save your file, you would be able to publish your website using this profile

 

Posted On: 13-Mar-2015 02:31
Rahul Maurya
Rahul M...
Moderator
1172 Points
211 Posts
         

Hi,

It's working fine.

Posted On: 12-Mar-2015 19:30
 Log In to Chat