How do I know if Universal Membership Providers are installed on my host? - asp.net-membership

I am going to be developing a new web app using MVC 4. It will be hosted on a shared server (one of those $5/month sites: sqlservermart.com)
It has been a few years, and it looks like there is a new "Universal Membership Provider" instead of the old membership provider. My question is can I assume that the universal membership providers will be available if .NET 4.0 is on the remote server? If not, what are the providers installed as part of?
Thanks!

universal providers are not installed with .NET Fx. Its a nuget package which you will have to install in your project. when you publish your project to the remote server you will have to publish the universal provider dll which would be in the bin of your application
http://nuget.org/packages/Microsoft.AspNet.Providers.Core

Related

MVC6 and Microsoft Identity Deployment

I'm looking at creating a new project that would have users with profiles. I have not worked with Microsoft Identity before and have a few questions:
If you are using Microsoft Identity with MVC6, are you still able to deploy/host on Linux machines?
Is there any associated costs with using Identity in production (e.g. licensing costs)?
Thanks in advance!
To answer your question...
Yes, Identities will work cross platform when deployed to the new DNX cross platform target.
No, there are no direct licensing costs with building a .Net application that uses Identities.

Does Windows Identity Foundation (WIF) Require IIS? (Rather than Development Server)

I need to know if developing a Windows Identity Foundation (WIF) solution requires IIS installed. I would like to be able do develop a WIF solution using the built-in Visual Studio Development Server (I heard it is called Cassini) if possible.
All of the samples I've downloaded assume that IIS is up and running on the local system.
This blog, Securing WCF Services with Custom WIF STS: A Step-By-Step guide, lists requirements for a WIF example and has IIS as one of the requirements.
I've added the images to allow you to follow easily with the steps.
Pre-requisites:
Visual studio 2010
The development machine has IIS installed (I use Windows 2008 R2)
Windows Identity Foundation (WIF): download it from http://www.microsoft.com/download/en/details.aspx?id=17331
Windows Identity Foundation SDK: download it from : http://www.microsoft.com/download/en/details.aspx?id=4451
I also have noted another StackOverflow posting indicating that IIS Express can be used. I have not yet fully investigated IIS Express, however this doesn't answer my basic question.
I can't seem to find any other references anywhere else about this topic. I'd appreciate knowing if anyone has been able to develop a WIF solution implementing a Security Token Service using the standard Visual Studio Development Server alone. Otherwise, I will look into using IIS Express. I am unable to install and use IIS (non-Express) on my system as I don't have local admin access.
Thank you.
Before .NET 4.5 WIF was a separate package and an additional installation step.
.NET 4.5 makes several important changes and moves WIF into the .NET base class libraries. The move enables WIF to be used by any application regardless of host. There's enough changes that if you are starting new, I recommend upgrading to .NET 4.5 to avoid porting in the future and because the integration does make things easier.
I'm currently running Visual Studio 2012 and testing WIF code in IIS Express and ServiceHost without issues.
I don't have local admin access
This is a big problem. Not having local admin for WIF development may not work. You will need elevated privileges to install tools and test applications.
Regardless of version, you shouldn't have any issues running apps with WIF outside IIS. The limitations are more around running SSL. Have you tried? Did you get any errors?
As #Eugenio states, one of the issues is around SSL. The other problem is that Cassini uses localhost which means that you need to have a valid localhost certificate if you are thinking of adding this application to something like ADFS. (as opposed to having a certificate for the actual machine name).
Also, to do WIF development, you have to run VS in Admin mode.

requirements to deploy the mvc 3 application to the server

I want to deploy the application in the Windows Server 2008 R2. But I am wondering if I need to install the .Net Framework 4.0 since the version available in the server is 2.0? Do I need also to install the MVC Framework?
you don't need to install MVC, only dlls can do the task
there are different ways to do it, see links
http://msdn.microsoft.com/en-us/library/dd410407(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/gg286946.aspx
http://weblogs.asp.net/scottgu/archive/2011/01/18/running-an-asp-net-mvc-3-app-on-a-web-server-that-doesn-t-have-asp-net-mvc-3-installed.aspx
You may use the ASP.NET MVC3 installer,
or simply copy the required dlls into bin directory of your web application
such as System.Web.Mvc.dll,
System.Web.Helpers.dll,
System.Web.Razor.dll,
System.Web.WebPages.dll,
System.Web.WebPages.Razor.dll,
System.Web.WebPages.Administration.dll,
System.Web.WebPages.Deployment.dll,
Microsoft.Web.Infrastructure.dll

How to set up Windows Web Server 2008 R2 for MVC Applications

What I am looking for and seem unable to find, it's late and I'm tired, is a step by step guide on how to set up windows 2008 server to run asp.net mvc applications.
I am a web applications developer, amongst other things, and can do that bit fine. Normally I let someone else, like the hosting company, worry about the setup and just publish using 1-Click with web deploy or ftp.
However, for this projects I have a local Windows Web Server 2008 R2 installed but I don't know how to set it up to run the application. the deploy works, all the files arrive in the correct folder on the server, but can I get it to work?
No.
Hence the question.
For your information the app is built using Sharp Architecture, MVC3 and Razor and targeted at .NET 4 which is installed on both my development PC and the server.
Any suggestions?
Thanks.
Best thing would be to download Windows Web Platform installer and select the options you want, for example, .NET 4, MVC3 etc etc ...
Then, remember to enable ASP.NET in your IIS (under Roles or something...).

Is there a web server which can embeded with an ASP.NET MVC3 application

Is there a web server I can embed with an ASP.NET MVC3 application?
The goal is to setup an installer where the user does not need to setup the web application on IIS, etc. The installer will install a web server configure it to listen to some port and host the files from there.
IIS Express could be used for that purpose, they mention in the FAQ that the MSI can be redistributed:
IIS Express FAQ
You can use HttpListener, Here's an example.
As others have mentioned - use IIS Express OR what you can do is install the version of IIS that would normally be on the system. Check out using WiX for installs and items such as this:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-td5990722.html
You may be able to find someone on the WiX mailing list that has done just this already.
Note - WiX was written by some Microsoft folks and was actually going to be the installer in VS 2010 but was changed unfortunately.

Resources