kiran Wilson
kiran Wilson

Reputation: 31

Exception during publishing web app to Azure

We have created a sample Asp.net Core application. When we tried to publish the application into Azure we got following exception.

Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)

We have tried some solutions posted in some blogs but none got the issue resolved.

Upvotes: 2

Views: 1341

Answers (3)

Niharika
Niharika

Reputation: 1

Installing "Web Deploy 3.5" extension helped me solve this issue.

https://www.iis.net/downloads/microsoft/web-deploy

Upvotes: 0

Joey Cai
Joey Cai

Reputation: 20067

Here are some ways you could try:

1.Look for a key in the registry under the following paths that points the the problem assembly and delete it:

HKLM\Software\Microsoft\IIS Extensions\msdeploy\3\extensibility
HKLM\Software\Wow6432Node\Microsoft\IIS Extensions\msdeploy\3\extensibility

The problem registry key is installed by SQL.

2.Reinstall Web Deploy 3.5.

3.Uninstall dbsqlpackage provider . this packages no longer support. 4.Restarted Visual Studio and rebuilt the project.

For more details, you could refer to this thread.

Upvotes: 3

TJ972
TJ972

Reputation: 161

It sounds like you are trying to create a web job and publish it to a App Service in Azure. To do this you have to create a Azure WebJob project type in visual studio. To get this project type in VS you have to install it or download it using nuget.

Upvotes: 0

Related Questions