Skip to content

[BUG] FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Identity.UI, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. #24324

@davidbuckleyni

Description

@davidbuckleyni

Getting a strange error when using web deploy even though the file is there and the correct version, this only happens on publish and not with Debug or release versions locally the file is there on the server.

image

[FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Identity.UI, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)

FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Identity.UI, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, int typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
System.Reflection.RuntimeModule.ResolveType(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, ref MetadataImport scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, bool mustBeInheritable, ref ListBuilder<object> derivedAttributes, out RuntimeType attributeType, out IRuntimeMethodInfo ctor, out bool ctorHasParameters, out bool isVarArg)
System.Reflection.CustomAttribute.AddCustomAttributes(ref ListBuilder<object> attributes, RuntimeModule decoratedModule, int decoratedMetadataToken, RuntimeType attributeFilterType, bool mustBeInheritable, ListBuilder<object> derivedAttributes)
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, int decoratedMetadataToken, int pcaCount, RuntimeType attributeFilterType)
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, bool inherit)
System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, bool inherit)
System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, bool inherit)
System.Reflection.CustomAttributeExtensions.GetCustomAttribute<T>(Assembly element)
Microsoft.Extensions.Configuration.UserSecretsConfigurationExtensions.AddUserSecrets(IConfigurationBuilder configuration, Assembly assembly, bool optional, bool reloadOnChange)
Microsoft.Extensions.Configuration.UserSecretsConfigurationExtensions.AddUserSecrets(IConfigurationBuilder configuration, Assembly assembly, bool optional)
Microsoft.Extensions.Hosting.Host+<>c__DisplayClass1_0.<CreateDefaultBuilder>b__1(HostBuilderContext hostingContext, IConfigurationBuilder config)
Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
Microsoft.Extensions.Hosting.HostBuilder.Build()
MISSystem.Web.Program.Main(string[] args) in Program.cs](url)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions