I have my web app (Angular + .NET core) deployed in Azure and works fine after deployment (publish). However, when I tried deploying it to a folder on my other Windows Server 2022 with IIS 10 , I'm getting a 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. error.
I have checked permission for IIS_IUSRS); all looks good. Web Server (IIS) > Web Server > Common HTTP Features. Static Content is Enabled. Default Documents are Set up properly.
Any suggestion on what else to check?
4 Answer(s)
-
0
Hi @joynext
Just to be sure, I'm asking. Did you perform the deployment process using this document?
-
0
Thanks for sharing the document.
Yes oguzhanagir , I have performed the deployment process stated in the document.
Also, I have compared files (web.cofig, and appsettings) in my azure instance (working) vs the bare metal server (not working) , everything looks the same.
Note: everything works when published in azure, but not on the bare metal server which is deployed via folder.
-
0
In addition, both the Angular app and my .net core app (backend) are hosted on the same server
-
0
@joynext, what's the detailed error code? i.e. 403.14? or similar?