“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.)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *