ASP.NET app with MySQL working locally but not when deployed on Linux Azure Server with Database. Also Web App works without database on Windows Server.

Kris 21 Reputation points
2022-11-09T10:38:30.543+00:00

Here's the log with error. The app is called VerbalImagesInLiterature but in log it sais Verbal is missing and I cannot find anything named Verbal in my app.

2022-11-09T09:38:07.891898026Z / _ \ __________ _________ ____
2022-11-09T09:38:07.891904626Z / /_\ ___ / | _ __ _/ __ \
2022-11-09T09:38:07.891908827Z / | / /| | /| | /\ /
2022-11-09T09:38:07.891912827Z _
|__ /_____ ____/ || _ >
2022-11-09T09:38:07.891917127Z / / /
2022-11-09T09:38:07.891920827Z A P P S E R V I C E O N L I N U X
2022-11-09T09:38:07.891927427Z
2022-11-09T09:38:07.891931028Z Documentation: http://aka.ms/webapp-linux
2022-11-09T09:38:07.891934528Z Dotnet quickstart: https://aka.ms/dotnet-qs
2022-11-09T09:38:07.891938028Z ASP .NETCore Version: 6.0.8
2022-11-09T09:38:07.891941628Z Note: Any data outside '/home' is not persisted
2022-11-09T09:38:09.948611795Z Starting periodic command scheduler: cron.
2022-11-09T09:38:09.948640096Z Running oryx create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -defaultAppFilePath /defaulthome/hostingstart/hostingstart.dll -bindPort 8080 -userStartupCommand 'dotnet Verbal Images in Literature.dll'
2022-11-09T09:38:10.265349671Z Cound not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2022-11-09T09:38:10.265375772Z Could not find operation ID in manifest. Generating an operation id...
2022-11-09T09:38:10.265380673Z Build Operation ID: dc654422-9ba3-4fd3-8a63-d3ed75a00ef4
2022-11-09T09:38:11.003689382Z
2022-11-09T09:38:11.003725984Z Agent extension ~2
2022-11-09T09:38:11.003732884Z Before if loop >> DotNet Runtime
2022-11-09T09:38:11.085854276Z DotNet Runtime 6.0Writing output script to '/opt/startup/startup.sh'
2022-11-09T09:38:11.166621010Z Running user provided startup command...
2022-11-09T09:38:11.231300361Z The command could not be loaded, possibly because:
2022-11-09T09:38:11.231339362Z * You intended to execute a .NET application:
2022-11-09T09:38:11.231346162Z The application 'Verbal' does not exist.
2022-11-09T09:38:11.231438566Z * You intended to execute a .NET SDK command:
2022-11-09T09:38:11.231462267Z No .NET SDKs were found.
2022-11-09T09:38:11.231467468Z

Azure SQL Database
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,292 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,963 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 26,146 Reputation points Microsoft Employee
    2022-11-12T13:58:49.653+00:00

    @Kris ,

    The -userStartupCommand 'dotnet Verbal Images in Literature.dll' is coming from the startup command under Configuration blade, General. Not sure how that may have gotten there but you can clear it or set it the web project output you want to have run on your app service. With your basic web app, you don't have to set this, and the platform will automatically detect the binary, so my guess is this was set incidentally.

    259717-image.png


0 additional answers

Sort by: Most helpful