Skip to main content

Posts

Showing posts from September 1, 2021

Common Issues with ASP.NET site publishing and Fixes

Common Issues with ASP.NET site publishing and solutions Issue #1: 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 Fixes: There are several fixes applied for this, Solution #1: Change the Windows system to allow more than 260 character Change the Group policy by applying the steps prescribed in this link Solution #2: Copy the current project path to different (and small) path and try Solution #3: Use the following tag in the website.publish file inside the PropertyGroup <AspnetCompileMergeIntermediateOutputPath> c:\temppub\ </AspnetCompileMergeIntermediateOutputPath>   (To be updated)