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

Jak
Jak
Member
352 Points
151 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: 8362
Total Answered: 2
Total Marked As Answer: 1
Posted On: 12-Mar-2015 15:52

Share:   fb twitter linkedin
Answers
NiceOne Team
NiceOne...
Admin
408 Points
69 Posts
Marked as answer      

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
1170 Points
210 Posts
     

Hi,

It's working fine.

Posted On: 12-Mar-2015 19:30
banner

Blog

Active User (2)

 Log In to Chat