Showing posts with label wcf service. Show all posts
Showing posts with label wcf service. Show all posts

Friday, June 30, 2017

Temp path is too long while publishing website project

Leave a Comment
While publishing my asp.net mvc website I got following error:

Issue:

ASPNETCOMPILER(0,0): Error ASPRUNTIME: 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. 5>

Solution:

For me following solution works:


  • Go to web project folder e.g D:\Projects\SomeProject
  • Then go to Properties\PublishProfiles folder.
  • Open profile file in some editor i.e. profile_name.pubxml (not the file with *.pubxml.user)
  • Add following under <PropertyGroup> tag
  • <AspnetCompileMergeIntermediateOutputPath>c:\SomeShortTempPath\</AspnetCompileMergeIntermediateOutputPath> 
  • Save file & publish it again, it works like charm
  • Happy development




Read More