ASP.NET Identity 2.0 with ASP.NET MVC 2 - asp.net-mvc

I have a ASP.NET MVC 2 project which I could open in VS 2012. But for that project I want to add asp.net identity 2.0. Is ASP.NET mvc 5 mandatory for asp.net identity? As far as I understood can't we separate the UI part from the user store/authentication methods hence there wont be any dependency on mvc 5. If there is any steps which I could follow for using asp.net mvc 2 with identity, please provide advice or the link to read further or any other advice about migration steps.Thanks

Is ASP.NET mvc 5 mandatory for asp.net identity?
No, you do not need ASP.Net MVC5 for ASP.NET Identity 2.0.
However, ASP.NET Identity 2.0 requires .Net 4.5.
please provide advice or the link to read further or any other advice
about migration steps
Here is the Migrating an Existing Website from SQL Membership to ASP.NET Identity Version 1.
Note: Identity V1 is a little bit different from Identity V2, but not much.

Related

Entity Framework vs Nhibernate

I am using Nhibernate from about 3 years.Currently Microsoft published Asp.net Identity 2 sample using EntityFramework.But I can't customize Asp.net Identity sample with Nhibernate 4.For this reason i can't get any data by userid.So Which one i should use for my project Nhibernate or Entity Framework 6
I ran across this today. Looks like NHibernate has published a ASP.NET Identity Provider here.
You can also pull down the NuGet package here.

Is MVC4 baked into .NET 4.5?

A lot of release notes for Visual Studio 2012 talk about .NET 4.5 and MVC4, but I can't tell if MVC4 is actually part of the .NET 4.5 release. Anybody know for sure? I would love not to have to install MVC separately on my server.
No, ASP.NET MVC 4 is baked into VS2012, exactly the same way ASP.NET MVC 3 was baked into VS2010 but not part of .NET 4.0 (there was a separate download that you could install on your servers). But there will also be a separate download of ASP.NET MVC 4 for VS2010 SP1 in which you obviously won't be able to use the .NET 4.5 specific features, such as async/await, but you will still be able to develop an ASP.NET MVC 4 application and target .NET 4.0.
ASP.NET MVC has made a point of NOT being tied to a particular .NET incarnation. That way, you can use the latest and greatest irrespective of what .NET version your hosting provider uses.
If the provider supports ASP.NET, that's all you need to know.
For this precise purpose, ASP.NET MVC is bin-deployable, meaning you can deploy the MVC dlls yourself, along your application - without requiring special rights from the hosting provider.
Phil Haack has a great article describing how to bin-deploy MVC3. There's even tooling support in VS for this scenario!
I assume the workflow for newer MVC incarnations is similar.

asp.net mvc 2 to mvc 4

I would like to update my project from:
ASP.NET MVC 2 with Entity Framework 4.
to
ASP.NET MVC 4 and Entity Framework 4.1
How can this be done?
You may take a look at the ASP.NET MVC 4.0 release notes which explain how to upgrade from an ASP.NET MVC 3 application. And the release notes of ASP.NET MVC 3.0 explain how to upgrade from ASP.NET MVC 2.
As far as upgrading from EF 4.0 to EF 4.1, it's as simple as updating the assembly reference. Of course if you wanted to do Code First approach you will have to make more extensive modifications.
Instead of doing it manually which will indeed take a lot of effort....why not check out my answer to a similar question and use ASP.NET MVC 3 Application Upgrader to go from MVC2 -> MVC3 and UpgradeMvc3ToMvc4 to go from MVC3 -> MVC4.

How do I write an MVC 1 app with MVC 2?

I went to http://www.asp.net/mvc and the web installer offered me the option to install MVC 2, but not MVC 1.
I thought MVC 2 was still in beta? Either way, I need to write an MVC 1 app. In visual studio, my only choice is either ASP.NET Web Application or ASP.NET MVC 2 Web Application.
Can anyone advise?
You actually don't have to remove MVC 2. You can have v1 and v2 installed side-by-side with no issues.
Remove MVC2 and download and install MVC 1 from here

can you have both asp.net mvc 1 and 2 installed side by side?

i need to have one project on asp.net mvc 1 but i want to upgrade for another project. is this possible?
Yes you can. See Scott Guthrie's blog for more information.
ASP.NET MVC 2 can be installed
side-by-side with ASP.NET MVC 1
(meaning you can have some apps built
with V1 and others built with V2 on
the same machine). We have
instructions on how to update your
existing ASP.NET MVC 1 apps to use
ASP.NET MVC 2 using VS 2008 here.
Note that VS 2010 has an automated
upgrade wizard that can automatically
migrate your existing ASP.NET MVC 1
applications to ASP.NET MVC 2 for you.

Resources