question

FaridGN-1325 avatar image
0 Votes"
FaridGN-1325 asked SamWu-MSFT answered

Project publish issue: validation unauthorized

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


windows-serverwindows-server-iisdotnet-aspnet-core-general
pub-error.png (11.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered

@FaridGN-1325

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.