“Create File” for the Specified Directory (“csc.exe”)
Web deployment task failed. (Unable to preform the operation (“Create File”) for the specified directory (“csc.exe”). This can occur if the server administrator has not authorized this operation for the user credentials you are using.
Open NuGet Package Manager window. Uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform package and rebuild & republish. (This uninstallation also removes CodeDom configuration from web.config file.)