Visual Studio 2019 (enterprise) V 16.8.3 can't publish .NET web forms app

Anonymous
2020-12-23T22:54:00.437+00:00

Please describe the issue in 2-3 sentences. Include what you're trying to accomplish when the issue occurs.
When we compile web app and go to publish it to a local folder or simple unc path on our network fails. When compile web app and go to publish to IIS folder it fails

When did it begin and how often does it occur?
This error occurs everytime
What errors do you see?
Visual studio error window states "One or more errors occurred." not very helpful
What's the environment and are there recent changes?
Windows 10 / IIS 8.5 . No recent changes aside from standard maintenance

What have you tried to troubleshoot this?
reinstalled VS 2019 -- did not resolve issue
searched for solution on Dev Community /StackOverflow/other -- it is a common problem but no clear resolution

50870-anthonylawver-vs2019-publisherrormessage-12232020.png

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,972 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,669 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,255 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,200 questions
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2020-12-24T05:31:38.787+00:00

    Hi @Anonymous ,

    Please have a try the steps below:

    1. Delete the .vs folder in your solution directory
    2. If there is a pubxml file in your project directory, please remove it.
    3. Then restart your visual studio.

    Best Regards,
    Dylan


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.