Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing NuGet Assembly on deployment #244

Open
Ali-HA opened this issue Jan 2, 2021 · 0 comments
Open

Missing NuGet Assembly on deployment #244

Ali-HA opened this issue Jan 2, 2021 · 0 comments

Comments

@Ali-HA
Copy link

Ali-HA commented Jan 2, 2021

The plug-in works fine in "debug", but once deployed to azure app service I get this error:

An error occurred while starting the application.
FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Authentication.JwtBearer, Version=3.1.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.

Nop.Plugin.Api.Infrastructure.ApiStartup.ConfigureServices(IServiceCollection services, IConfiguration configuration)

FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Authentication.JwtBearer, Version=3.1.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
    Nop.Plugin.Api.Infrastructure.ApiStartup.ConfigureServices(IServiceCollection services, IConfiguration configuration)
    Nop.Core.Infrastructure.NopEngine.ConfigureServices(IServiceCollection services, IConfiguration configuration, NopConfig nopConfig) in NopEngine.cs
    Nop.Web.Framework.Infrastructure.Extensions.ServiceCollectionExtensions.ConfigureApplicationServices(IServiceCollection services, IConfiguration configuration, IWebHostEnvironment webHostEnvironment) in ServiceCollectionExtensions.cs
    Nop.Web.Startup.ConfigureServices(IServiceCollection services) in Startup.cs
    System.RuntimeMethodHandle.InvokeMethod(object target, object[] arguments, Signature sig, bool constructor, bool wrapExceptions)
    System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)
    Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(object instance, IServiceCollection services)
    Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder+<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
    Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(object instance, IServiceCollection services)
    Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder+<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
    Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services)
    Microsoft.AspNetCore.Hosting.GenericWebHostBuilder+<>c__DisplayClass12_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services)
    Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
    Microsoft.Extensions.Hosting.HostBuilder.Build()
    Nop.Web.Program.Main(string[] args) in Program.cs

I verified that this is set to true
CopyLocalLockFileAssemblies true

it looks like Nuget packages are not loaded. I copied the Api folder and it contains all the required packages files:

[Areas] logo.jpg
Microsoft.AspNetCore.Authentication.JwtBearer.dll
Microsoft.IdentityModel.JsonWebTokens.dll
Microsoft.IdentityModel.Logging.dll
Microsoft.IdentityModel.Protocols.dll
Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
Microsoft.IdentityModel.Tokens.dll
Nop.Plugin.Api.1.0.0.nupkg
Nop.Plugin.Api.deps.json
Nop.Plugin.Api.dll
Nop.Plugin.Api.pdb
plugin.json
[runtimes]
System.IdentityModel.Tokens.Jwt.dll

          13 File(s)      1,568,799 bytes
@Ali-HA Ali-HA changed the title Missing Nuhet Assembly on deployment Missing NuGet Assembly on deployment Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant