Project publish issue: validation unauthorized

Farid GN 1 Reputation point


I'm trying to publish web project written on ASP.Net Core 2.1, and I get the following error when clicking on validation while configuring publish:

Please, help, I thing the problem comes from hosting server which must provide relevant permission to user (me).


Internet Information Services
A set of technologies in the .NET Framework for building web applications and XML web services.
4,360 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,567 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,286 Reputation points Microsoft Vendor

    @Farid GN

    There are many reasons for this error, You can try the following methods to solve the problem:

    Method 1:

    • Open Regedit
    • Open the path HKEY_LOCAL_MACHINE\Software\Microsoft\WebManagement\Server
    • add a DWORD named WindowsAuthenticationEnabled with a value of 1
    • Restart WMsvc and IIS

    Method 2:

    Probably Errors with Delegation Rules, once Web Deploy and the Web Management Service are correctly configured, you will need to set up delegation rules to allow users to update content. For permissions issues will get this error. To allow this user to publish, you will need to set up delegation per the instructions at

    More information you can refer to this link: Errors with Delegation Rules.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments