Project publish issue: validation unauthorized

Farid GN 1 Reputation point
2022-04-13T21:34:58.42+00:00

Hi,

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:

https://prnt.sc/zUgy9kBwW5Gi

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

Thanks192787-pub-error.png

Internet Information Services
ASP.NET Core
ASP.NET Core
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
    2022-04-14T02:56:21.31+00:00

    @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 https://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler

    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