Question: Oh No!! what happened here? When I try to publish the Asp.Net Core 7 application and an error is thrown saying "Publish has encountered an error. Build failed. Check the Output window for more details". What did I do wrong?
Please Login to see the rest of the answer
However, in some cases, the Output window does not display enough information to resolve the issue. When this is the case extra information about the error is written to the
Of course, the path differs from Computer to Computer, but the case-in-point is the path displayed along with the Error Message.
If you take a look in the Output Console for detailed error messages you will find that the cause of the error is listed, in this case, the issue that caused the publish of Asp.Net Core 7 to fail was that access to the publish Folder was denied. See the error message below:
Unable to create the Web site 'C:\Users\Path'. Access is denied.