Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何配置ASP.NET MVC以使用我的OwinHost.exe启动的Identity Framework版本?_C#_Asp.net Mvc_Asp.net Identity_Owin - Fatal编程技术网

C# 如何配置ASP.NET MVC以使用我的OwinHost.exe启动的Identity Framework版本?

C# 如何配置ASP.NET MVC以使用我的OwinHost.exe启动的Identity Framework版本?,c#,asp.net-mvc,asp.net-identity,owin,C#,Asp.net Mvc,Asp.net Identity,Owin,ASP.NET标识应该是可自承载的,因为它构建在OWIN之上 我在位置中运行了ASP.NET标识http://localhost/5000在我的本地计算机上 到目前为止,我一直在为我的ASP.NET MVC应用程序提供以下链接: <appSettings> <add key="owin:appStartup" value="OwinTest.Identity.OwinStart, OwinTest.Identity" /> </appSettings>

ASP.NET标识应该是可自承载的,因为它构建在OWIN之上

我在位置
中运行了ASP.NET标识http://localhost/5000
在我的本地计算机上

到目前为止,我一直在为我的ASP.NET MVC应用程序提供以下链接:

<appSettings>
    <add key="owin:appStartup" value="OwinTest.Identity.OwinStart, OwinTest.Identity" />
</appSettings>

然而,现在它是自托管的,我需要指出我的完全独立的MVC应用程序使用位于
http://localhost/5000

互联网上有数百篇文章讲述了ASP.NET Identity是如何在OWIN上构建的,它可以自托管,但我找不到一篇文章显示它被用作独立的中间件。大多数文章都解释了如何自托管WebAPI,但当Identity Framework需要连接到MVC时(为了让[Authorize]属性工作,以及其他事情),这对它没有多大用处

如何配置我的应用程序以指向我的自托管版本?