We are migrating our codes from ASP Maker to ASP.Net Maker.We are able to successfully publish our asp.net maker code on our local server. However, we run the into the error code below once we upload the code to the our website via FTP.
===================================================================
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
====================================================================
There are so many folders in the published files and we are not quite sure which ones to upload.For example, we see the main root folder which has the following folders (bin, controllers, models, obj, views, wwwroot etc…). Is this the directory we directly upload via FTP?We also noticed the following directory within the published code (bin\Debug\netcoreapp3.1\publish) what is the purpose of this folder?
Thanks for your reply. We are actually uploading the publish folder, but when we upload via FTP to the remote server, the site doesn’t work. It works only when we upload the publish folder directly from the Remote Server (AWS RDP).
NOTE:
We have no issues uploading and downloading via FTP from the remote server. Site just breaks when we upload the publish folder via FTP.
We have no issues uploading and downloading via FTP from the remote server. Site just breaks when we upload the publish folder via FTP.
There should be no difference if you are uploading the same content by different means. Are you sure you are uploading the correct folder and to the correct destination? Or there are some permission settings (e.g. read/write/execute) that you must set for the target folder on AWS RDP?Note that as said in the help file, under the publish folder,
you should find many files, including a subfolder named “wwwroot”, you must deploy > all subfolder and files under this publish folder > (not the “publish” folder) to the target folder of your IIS server and set the application at the target (NOT “wwwroot”) folder containing the web.config, read > Host ASP.NET Core on Windows with IIS> .
I am getting following error.Internet Information Services 7.5Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Generate scripts and run the app again, find the log file under \wwwroot\log, check the errors.Also make sure the IIS web server user has read/write permission to the folder you upload to.