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:
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
0 comments:
Post a Comment