failed to deploy asp.net mvc app from VS2022 to App Engine Flex - web-deployment

I am trying to publish an VS 2022 asp.net Core MVC pplication on GCP app engine flex yaml file properly there APIs enabled but giving error "failed to deploy project to App Engine Flex"
required help ....
created new project, mapped billing account enabled APIs installed sdk extension added to project added google account as well in project, yml file also created but giving error "failed to deploy project to App Engine Flex"

Related

how to manually install SQLite in Azure Web App (windows environment, PHP language)

I am following this tutorial(https://cgillum.tech/2016/06/30/creating-a-corporate-wiki-in-azure/) to setup Mediawiki which need to install SQLite in Azure Web App. But the tutorial did not mention how to setup SQLite in Azure Web App.
When I go to Mediawiki Configuration page. It does not find SQLite.
I tried to follow the link https://www.php.net/manual/en/pdo.installation.php to install but I don't find any php.info in Azure Web App.
(Environment for Azure Web App: windows enviornment, PHP language)
Download the php_sqlite3.dll for the correct PHP version. Upload the file and add the following environment variable for the website in app settings.
For more details, you can refer to below links.
1. Enable PHP extensions on Azure Web App on Windows
2. Adding SQLite3 extension to a PHP Web App
3. How to enable SQLite3 for PHP in Azure Websites?
4. Enable PHP SQLite3 database extension for Azure Web App

Azure DevOps Continuous Integration with asp.net web forms website project instead of web application

##[debug]check path : d:\a\_tasks\PublishBuildArtifacts_2ff763a7-ce83-4e1f-bc89-0ae63477cebe\1.158.3\task.json
##[debug]adding resource file: d:\a\_tasks\PublishBuildArtifacts_2ff763a7-ce83-4e1f-bc89-0ae63477cebe\1.158.3\task.json
##[debug]system.culture=en-US
##[debug]PathtoPublish=d:\a\1\a
##[debug]check path : d:\a\1\a
##[debug]ArtifactName=drop
##[debug]ArtifactType=Container
##[debug]system.hostType=build
##[warning]Directory 'd:\a\1\a' is empty. Nothing will be added to build artifact 'drop'.
Want to create artifact for Asp.net web forms website, but no files are being added to artifacts. Hence, artifact is not generating. Want to deploy it on Azure Web App service.
According to your description, you are building a legacy "WebSite" (Asp.net Web Forms Stie) project type which is deprecated now while the "Asp.Net" template in the Azure DevOps definition is used for "Web App" project type.
Check the difference here: ASP.NET Web Site or ASP.NET Web Application? And for website project, there is no need to build them since they are automatically compiled on web server, you just need to deploy the source file to server directly. I also recommend you to use "Web App" to create your project since "Web Site" is deprecated.
Well, back to your question. For the Asp.net web forms website you need to update the pipeline (build definition) by adding a "Copy Files" task to copy the WebSite from its folder (source folder) to $(build.artifactstagingdirectory) to publish the artifacts.

How to host a console application on Azure by uploading .exe file?

I have an web application (ASP.NET MVC) host on Azure web app service and an console application (C#) as http trigger locally. This Azure web app service will call the .exe once when it's running. They run well this way.
Now I'd like to move the .exe file to Azure and call it from Azure app service. But I only find Azure function app to execute a piece of code written using Azure portal. Is there a possible solution for me to simply upload this exe file to Azure and can be called by Azure app service ?
Thanks in advance.
It seems that you would call your console application as http trigger when web app run. If so, you may need to upload your console application as a Azure webjob.
You could right click your console app and choose "Publish as Azure Webjobs" to publish your console app to the Web app on Azure.
WebJobs is a feature of Azure App Service that enables you to run a program or script in the same context as a web app.
For more details about deploy webjobs you could refer to this article.
Also, if you are using console core application, you could refer to this blog to deploy it.

Is it possible to publish an asp.net 2012 web application to azure?

I tried to publish a web app from asp.net 2012 to azure but it gives an error "Error 1 Package/Publish task Microsoft.Web.Publishing.Tasks.CreateProviderList failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended. "
I tried installing it but the same error exists.
Sure, Azure App Services can be used like an IIS Container.
If Visual Studio fails to publish, you could upload your application via FTP or by using auto-deploy from a GIT repository.
Once the application is deployed, Azure will read the Web.config file, so you can set up your application environment there.
You have installed Microsoft Web Deploy v3, you can try to run MSDeploy.exe command directly to deploy a web application (web deployment package) to Azure app service web app. The following command works fine for me, please refer to it.
MSDeploy.exe
-source:package="C:\testapp\WebApplication1.zip"
-dest:auto,
computerName="https://{my_app_name}.scm.azurewebsites.net/MSDeploy.axd?site={my_app_name}",
username="{user_name}",
password="{password}",
authtype="Basic",
includeAcls="False"
-verb:sync
-disableLink:AppPoolExtension
-disableLink:ContentExtension
-disableLink:CertificateExtension
-setParamFile:"C:\testapp\WebApplication1.SetParameters.xml"
-allowUntrusted
Note:
You can get username and password from publish profile on
Azure portal;
For more information about deploying a web application using MSDeploy.exe, you can refer to this article.

ASP.NET MVC 4 and Web API in Azure - No HTTP resource was found

Using Visual Studio 2012, I created a simple Windows Azure Project (Cloud project) for which contains a ASP.NET MVC 4 website. I didn't change anything to the template and I simply try to deploy it using Azure Website. I imported the "publishing profile" from Windows Azure Dashboard into my project and deployed (using Visual Studio).
At the very end of the deployment process I am getting the following message: "failed to open 'http://mysite.azurewebsite.net'. Exception:Class not registered". I can only click "Ok" on that dialog. Any idea why I am seeing this message?
When I look at the Output Window, I see that the deployment succedded. I go the a Web API url and I am getting "No HTTP resource was found that matches the request URI 'http://mysite.azurewebsites.net/api/values'". What puzzle me is that I can access that same url on my local environment.
What am I missing? Thanks!
I could access using my Azure website using ASP.NET Web API. If you use default MVC4 Web API template, please access "http://[yoursite].azurewebsites.net/api/Values/".
My Environment is below.
- Visual Studio 2012
- ASP.NET MVC4
You don't need to create a cloud project to use Azure Websites. You can simply create an MVC app and then use git deploy or even FTP to push the site to Azure
Make sure that you referenced the latest version of WindowsAzure related assemblies in your project.
Microsoft.WindowsAzure.Diagnostics 2.0 (and not 1.8)
Microsoft.WindowsAzure.ServiceRuntime 2.0 (and not 1.8)

Resources