1. Ravi Nath
  2. SnapDevelop
  3. Wednesday, 1 July 2020 17:26 PM UTC

Hi,

We have developed a SnapDevelop WebApI using 2019 R2.

When I deploy it to IIS in this case on the same machine (windows 10) where we developed it, I get the error

below while accessing it:

 

 

We have made sure all permissions are available to the deployment folder which in this case is the inetpub\wwwroot.

The AppPool has permission for Networkservice

We have .NET core 2.2 on it. This webapi works while testing on the same machine in SnapDevelop IDE.

Not sure what is the problem here.

Here is the webconfig file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\myapp.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
    </system.webServer>
  </location>
</configuration>

 

Any help will be great.

 

Thanks,

Ravi

 

 

Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Thursday, 2 July 2020 02:17 AM UTC
  2. SnapDevelop
  3. # 1

Hi Ravi,

Have you installed the .NET Core Hosting Bundle? Open Programs & Features or Apps & features and confirm that Windows Server Hosting is installed. If Windows Server Hosting isn't present in the list of installed programs, download and install the .NET Core Hosting Bundle. For more information, see https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1#install-the-net-core-hosting-bundle-2.

Please make sure that the Application Pool > Process Model > Identity is set to ApplicationPoolIdentity or the custom identity has the correct permissions to access the app's deployment folder.

For more details about 500.19 Internal Server Error, please refer to https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/azure-iis-errors-reference?view=aspnetcore-2.1#incorrect-role-aspnet-core-module-not-installed-or-incorrect-permissions-1.

Regards,

Logan

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 1 July 2020 19:46 PM UTC
  2. SnapDevelop
  3. # 2

Hi Ravi,

You might be having the same problem at this Q&A: https://community.appeon.com/index.php/qna/q-a/unhandled-exception-when-running-api-from-command-prompt

Try Logan's suggestion in that thread.

Best regards,
Armeen

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.