Hello @Aurelio !
Welcome to Microsoft QnA!
I see you are having trouble with deploying your ASP.NET Core 7 application to IIS
Possible steps to troubleshoot :
Check Event Viewer: Windows Event Viewer may have more details about the error. Check under 'Windows Logs' > 'Application' for any error messages related to IIS, .NET Core, or your application.
Check IIS logs: IIS logs can also provide helpful information. By default, they're located in the %SystemDrive%\inetpub\logs\LogFiles
directory.
Check .NET Core version: Make sure that the .NET Core version on your development machine matches the version on your IIS server. Also, check that the correct version is specified in your project file (.csproj).
Check web.config file: Make sure that the ASP.NET Core Module is correctly configured in your web.config
file. The processPath
attribute should be set to dotnet
, the arguments
attribute should point to your .dll
file, and the stdoutLogEnabled
attribute should be set to true
to enable logging.
Check application pool: Make sure the application pool for your site is set to 'No Managed Code'. ASP.NET Core runs in a separate process and manages the runtime. IIS is used only as a reverse proxy for requests.
- Permissions: Double check the permissions for the IIS_IUSRS and IUSR users on your application's folder. These users need read and execute permissions.
- Consider using the ASP.NET Core Module Log: To help diagnose issues with the ASP.NET Core Module, you can enable additional logging. Here is how to do it: Enable stdout logging
The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription
Kindly mark the answer as Accepted and Upvote in case it helped or post your feedback to help !
Regards