相关疑难解决方法(0)

configureauth这个名称不存在

我正在尝试本教程 http://httpjunkie.com/2013/311/adding-mvc-5-identity-to-an-existing-project/ 但显示错误错误5名称'ConfigureAuth'不存在在当前上下文中,
这是我的startup.cs类

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Microsoft.Owin;
using Owin;

[assembly: OwinStartupAttribute(typeof(TicketSystem.Startup))]
namespace TicketSystem
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            ConfigureAuth(app);
        }



      }
    }
Run Code Online (Sandbox Code Playgroud)

这是Startup.Auth.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.Web.Mvc;

using Microsoft.AspNet.Identity;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Owin;
namespace TicketSystem.App_Start
{
    public partial class Startup
    {

        // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864
        public void ConfigureAuth(IAppBuilder app)
        {
            // Enable the …
Run Code Online (Sandbox Code Playgroud)

c# model-view-controller owin

4
推荐指数
1
解决办法
5041
查看次数

标签 统计

c# ×1

model-view-controller ×1

owin ×1