简体   繁体   中英

Error 403 after deploying Asp Net Core 2.2 website on Godaddy

I have deployed my website developed in Asp net core 2.2 on Godaddy server. After deploying I received error 500. As discussed with the Godaddy support I removed Web.config file.

Then it started throwing error 403. There is full permission to all folders and subfolders. I have searched a lot but unable to find any solution also Godaddy support is also not satisfactory.

在此处输入图像描述

I can't comment yet, otherwise I would. However:

Removing the web.config may not have been the correct move. My guess is now IIS has no idea that it should be running a.Net Core app, and instead tries to directory browse, which is disallowed so you receive a 403.

I'd also be wary now if you went and added full permissions on everything.

I would suggest re-deploying it from scratch and turning on the 'stdoutLogEnabled' in the web.config temporarily. Then the site should at least attempt to run again, and record an error log in the folder specified by the 'stdoutLogFile' path in the web.config.

More about stdoutLog here: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-2.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM