0
votes

I am trying to deploy simple dotnet application (dotnet new webapi) into azure, through the FTPS, But I always see the the same picture by the azure's URL: enter image description here

The configuration/General settings:

  • Stack: .NET Core
  • Major version: 3.1
  • Minor version 3.1.0
  • Startup Command: dotnet < name >.dll

I have tried to publish through Visual Studio with FTP deployment with profile ("Get publish profile" button in the overview). Also I have tried to send all files manually through FTPS. The path i took from publish profile file.

Note: I switched stack to PHP and passed index.html through the FTPS manually - it worked.

Is there step by step guide, to deploy asp net core app through FTPS?

1
You have to click on deployment center then follow these stepsMd Farid Uddin Kiron
I was doing exact these steps, the problem is not resolved :(VVildVVolf

1 Answers

1
votes

You need to create a web.config file under your website folder:

enter image description here

The content of web.config:

<?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=".\CoreWebApplication.dll" stdoutLogEnabled="false" stdoutLogFile="\\?\%home%\LogFiles\stdout" />
    </system.webServer>
  </location>
</configuration>

Note to change CoreWebApplication.dll to your own dll file.

Then, use FTP to upload all files to Azure Web App site\wwwroot\ folder:

enter image description here

Finally, restart your web app to check if your .NET Core application was successfully deployed.