The following errors occurred while attempting to load the app. - The OwinStartupAttribute.FriendlyName value
<p>i want to create dropdown list with <code>AspNetRoles</code> . i use this code :</p>

<p>Idnetity Conf : </p>

<pre><code>public class ApplicationRoleManager : RoleManager&lt;IdentityRole&gt;
{
    public ApplicationRoleManager(IRoleStore&lt;IdentityRole, string&gt; roleStore)
        : base(roleStore)
    {
    }

    public static ApplicationRoleManager Create(IdentityFactoryOptions&lt;ApplicationRoleManager&gt; options, IOwinContext context)
    {
        return new ApplicationRoleManager(new RoleStore&lt;IdentityRole&gt;(context.Get&lt;ApplicationDbContext&gt;()));
    }
}
</code></pre>

<p>.</p>

<p>StartUP:</p>

<pre><code>using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Owin;
using Identity_Work.Models;

namespace Identity_Work
{
    public partial class Startup
    {
        public void ConfigureAuth(IAppBuilder app)
        {
            app.CreatePerOwinContext(ApplicationDbContext.Create);
            app.CreatePerOwinContext&lt;ApplicationUserManager&gt;(ApplicationUserManager.Create);
            app.CreatePerOwinContext&lt;ApplicationRoleManager&gt;(ApplicationRoleManager.Create);
            app.CreatePerOwinContext&lt;ApplicationSignInManager&gt;(ApplicationSignInManager.Create);
            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Account/Login"),
                Provider = new CookieAuthenticationProvider
                {  
                    OnValidateIdentity = SecurityStampValidator.OnValidateIdentity&lt;ApplicationUserManager, ApplicationUser&gt;(
                        validateInterval: TimeSpan.FromMinutes(30),
                        regenerateIdentity: (manager, user) =&gt; user.GenerateUserIdentityAsync(manager))
                }
            });
            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);            app.UseTwoFactorSignInCookie(DefaultAuthenticationTypes.TwoFactorCookie, TimeSpan.FromMinutes(5));    app.UseTwoFactorRememberBrowserCookie(DefaultAuthenticationTypes.TwoFactorRememberBrowserCookie);
        }
    }
}
</code></pre>

<p>.
Web Config :</p>

<pre><code>&lt;appSettings&gt;
&lt;add key="webpages:Version" value="3.0.0.0" /&gt;
&lt;add key="webpages:Enabled" value="false" /&gt;
&lt;add key="ClientValidationEnabled" value="true" /&gt;
&lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;
&lt;add key="owin:AppStartup" value="Identity_Work.IdentityConfig" /&gt;
</code></pre>

<p></p>

<p>Controller :</p>

<pre><code>[AllowAnonymous]
public ActionResult Register()
{
    ViewBag.name = new SelectList(db.Roles, "RoleID", "RoleName");

    return View();
}
</code></pre>

<p>View :</p>

<pre><code>&lt;div class="form-group"&gt;
    &lt;label&gt;نوع عضویت&lt;/label&gt;
    &lt;div class="col-md-10"&gt;
        @Html.DropDownList("name", "--Select Name--")
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>but when i run the project show me this error : </p>

<blockquote>
  <p>The following errors occurred while attempting to load the app.
  - The OwinStartupAttribute.FriendlyName value '' does not match the given value 'Identity_Work.IdentityConfig' in Assembly 'Identity_Work, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
  - The given type or method 'Identity_Work.IdentityConfig' was not found. Try specifying the Assembly.
  To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config.
  To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.</p>
</blockquote>

<p>. whats the problem ? </p>

<p><strong>Edit</strong> </p>

<p><a href="https://i.stack.imgur.com/kfP9C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kfP9C.png" alt="enter image description here"></a></p>