how to resolve the below error in .net core 3.0

Paul, Alok 141 Reputation points
2021-04-26T09:17:52.783+00:00

Dear Team,
I have developed a .net core 3.0 application and trying to run the same in Google Cloud VM, the application run fine on my local server (DEV) but in Production I am getting below error.
Attached in screenshot of the error and web.config

Can someone please help

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="" verb="" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\RetailerApp.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 3AFE5FCF-3127-4B03-A7B1-57505A79A10B-->

![91215-image.png]1

Developer technologies | .NET | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Ken Tucker 5,861 Reputation points
    2021-04-26T10:11:27.207+00:00

    I am not very familiar with Google Cloud service. Since you are saying it is hosted in a VM I was wondering if you Installed the ASP.NET Core Module/Hosting Bundle

    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-5.0

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.