title: Azure Linux based .NET core 3.0 deployment on App service Could not load type 'Microsoft.AspNetCore.Identity.UI.UIFrameworkAttribute'
body: <p>I'm trying to deploy a simple .NETCORE 3.0 project to app service without using docker.</p>
  
  <p>Note that the project is using individual authentication</p>
  
  <p><a href="https://i.stack.imgur.com/GF1Av.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GF1Av.png" alt="individual authentication"></a></p>
  
  <p>The project is working well in visual studio and if I bundled it in a docker container as well.</p>
  
  <p>When I try to use the web app service Deployment Center and connect it to the git repo directly using Kudu the I got this issue.</p>
  
  <blockquote>
    <p>Running the command: dotnet "WebApplication1.dll"
    Unhandled exception. System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Identity.UI.UIFrameworkAttribute' from assembly 'Microsoft.AspNetCore.Identity.UI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
    at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
    at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
    at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport&amp; scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder<code>1&amp; derivedAttributes, RuntimeType&amp; attributeType, IRuntimeMethodInfo&amp; ctor, Boolean&amp; ctorHasParameters, Boolean&amp; isVarArg)
    at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder</code>1&amp; attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder<code>1 derivedAttributes)
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType)
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
    at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
    at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
    at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](Assembly element)
    at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.GetApplicationPartAssemblies(String entryAssemblyName)
    at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateDefaultParts(String entryAssemblyName)
    at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.GetApplicationPartManager(IServiceCollection services)
    at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection services)
    at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersCore(IServiceCollection services)
    at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersWithViewsCore(IServiceCollection services)
    at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddControllersWithViews(IServiceCollection services)
    at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddMvc(IServiceCollection services)
    at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddRelatedParts(IdentityBuilder builder, UIFramework framework)
    at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddDefaultUI(IdentityBuilder builder, UIFramework framework)
    at Microsoft.AspNetCore.Identity.IdentityBuilderUIExtensions.AddDefaultUI(IdentityBuilder builder)
    at Microsoft.Extensions.DependencyInjection.IdentityServiceCollectionUIExtensions.AddDefaultIdentity[TUser](IServiceCollection services, Action</code>1 configureOptions)
    at WebApplication1.Startup.ConfigureServices(IServiceCollection services) in /tmp/8d75733ffb7bf8d/Startup.cs:line 33
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.&lt;>c__DisplayClass9_0.g__Startup|0(IServiceCollection serviceCollection)
    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
    at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.&lt;>c__DisplayClass8_0.b__0(IServiceCollection services)
    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services)
    at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.&lt;>c__DisplayClass12_0.b__0(HostBuilderContext context, IServiceCollection services)
    at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
    at Microsoft.Extensions.Hosting.HostBuilder.Build()
    at WebApplication1.Program.Main(String[] args) in /tmp/8d75733ffb7bf8d/Program.cs:line 16
    /opt/startup/startup.sh: line 11:    29 Aborted                 (core dumped) dotnet "WebApplication1.dll"</p>
  </blockquote>