问题描述:

My app is running without any failure in local machine in production environment and obviously in development mode. It was working fine with Stripe.Net 6.12.0 but failed in Azure. I thought might be the latest version would be more supported, it really was in local machine but failed with following error in Azure deployment.

Following console.log generated in Azure Dashboard...

Command: "D:\home\site\deployments\tools\deploy.cmd"

Handling ASP.NET Core Web Application deployment.

Restoring packages for D:\home\site\repository\project.json...

Restoring packages for tool 'BundlerMinifier.Core' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.AspNetCore.Razor.Tools' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.AspNetCore.Server.IISIntegration.Tools' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.EntityFrameworkCore.Tools' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.EntityFrameworkCore.Tools.DotNet' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.DotNet.Watcher.Tools' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.Extensions.SecretManager.Tools' in D:\home\site\repository\project.json...

Restoring packages for tool 'Microsoft.VisualStudio.Web.CodeGeneration.Tools' in D:\home\site\repository\project.json...

Committing restore...

Writing lock file to disk. Path: D:\home\site\repository\project.lock.json

D:\home\site\repository\project.json

Restore completed in 86979ms.

NuGet Config files used:

C:\DWASFiles\Sites\#1saarcfashion\AppData\NuGet\NuGet.Config

Feeds used:

https://api.nuget.org/v3/index.json

Publishing repository for .NETCoreApp,Version=v1.1

Project repository (.NETCoreApp,Version=v1.1) will be compiled because expected outputs are missing

Compiling repository for .NETCoreApp,Version=v1.1

D:\home\site\repository\project.json(109,29): error NU1001: The dependency Stripe.Net >= 7.0.1 could not be resolved.

Compilation failed.

0 Warning(s)

1 Error(s)

Time elapsed 00:00:00.0223613

Published 0/1 projects successfully

Failed exitCode=1, command=dotnet publish "project.json" --output "D:\local\Temp\8d436ed727caa32" --configuration Release

An error has occurred during web site deployment.

D:\home\site\repository\project.json(109,29): error NU1001: The dependency Stripe.Net >= 7.0.1 could not be resolved.\r\nD:\Program Files (x86)\SiteExtensions\Kudu\59.51212.2600\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

相关阅读:
Top