ASP.NET MVC 2 OpenID web site (C#)

Free

Resources for developing applications that use OpenID, OAuth, and InfoCard.

(8) Review
Visual Studio
2010
Download (27,632)
5/2/2011
3.4.7.11121
View
E-mail Twitter del.icio.us Digg Facebook
Add To Favorites
Description
Reviews (8)
Q and A (4)
Sign in to Write a Review
Sort By:

by Mark Good | August 28 2011

I couldn't get the template (demo) application to work. Followed setup instructions. Kept getting asp.net yellow screens. Uninstalled.

I have SQL 2008 Dev (not express). I changed the connection string in the web config, but turns out sqlexpress is hard coded in utility.cs. You're welcome (for debugging your code).

by Kamouch | January 06 2011

I suggest changing file loginLink.js at
line 2 :
var loginContent = '/Auth/LogOnPopup';

to
var loginContent = 'Auth/LogOnPopup';

otherwise it's a bummer that it's not working with sqlserver 2008

by zorky00 | May 14 2010

by Franci Penov | April 22 2010

by Artiom Chi | April 17 2010

Would be completely awesome if it was true. Just downloaded it, and unfortunately it was a MVC 1 (!) template. So it's useless to me... Needs an update ASAP!

Also, it was configured for .NET 3.5. Not a deal breaker this one, but it would be nice if they had a new version >_>

2 stars for effort now. If they update it to make it work as advertised - I'll rate it appropriately :)

UPD: the template was updated with proper MVC2 support... Tried it only managed to make it work after lots of cursing and trying.. The code has a connection string hardcoded in code, expects that you will use a sqlexpress database, will ONLY work in windows xp / server 2003 (in IIS7 the IIS app pool users don't have a home folder and cannot attach sql databases.. at least not with the default settings, apparently) etc etc etc..

Once you make it work - it's a nice simple example of how to implement open ID authentication in a website (although bloated way too much, if you ask me...)

As a VS online template - I think it should be a lot better :S

by Christian Metz | April 06 2010

by Osirus100 | February 10 2010

Sign in to Start a Discussion


  • Problems with opening of extension
    1 Posts | Last Post April 11, 2012
    • I can't open extension for my vs2010. I have error - "This extension in not installable on any currently installed products". I have the same error for vs2010 express, professional and vs11.
      Can I get the template as the vs project?
  • Problem with IE9
    1 Posts | Last Post October 06, 2011
    • your app is running fine out of the box with VS2010, using Firefox, but when i try it in IE9, after coming back from google or yahoo it shows an JS error in page "/Auth/PopUpReturnTo". The js alert dialog says "object Error" and then a warning the window is trying to close itself. If I select yes or no to that nothing happens.
      
      But same app firefox is fine.
      
      Btw i ran setup.aspx from IE9 fine. But after that can't use IE9 to login.
      
      Thanks for you help.
  • Can't create database
    2 Posts | Last Post June 16, 2011
    • Hi, I was trying to create the database following the simple instructions in Setup.aspx, when I click the button of create database (after entering a valid openid account) it throws an exception, it seems something about creation of database,or permissions in App_Data, but I don't how to set those permissions,I tried by using Configuration of ASP.NET but it's already set in "Everyone".
      What's going on?
      Here is the exception, (YES, it's in Spanish XD ):
      Detalles de la excepción: System.Data.SqlClient.SqlException: Error al buscar el archivo "c:\users\enrique\documents\visual studio 2010\Projects\openIDsite\openIDsite\openIDsite\App_Data\openIDsite.mdf" en los directorios, error del sistema operativo: 5(failed to retrieve text for this error. Reason: 15105).
      Error de CREATE DATABASE. No se pueden crear algunos de los archivos de la lista. Consulte los errores relacionados.
      
      I'm using Windows 7 Starter, and compiled with Visual Studio 2010 Professional
    • Same advice I gave to @reidmeonce.  Check your NTFS permissions -- not your ASP.NET permissions.  NTFS permissions must grant the appropriate user account Change access to the APP_DATA directory.
  • Deploy onto IIS7.5 (Windows 7) not working
    3 Posts | Last Post June 16, 2010
    • Use debugger, everything is Ok
      Simply create a project by the template and deploy into IIS7.5, it failed?
    • With exception event found in event log
      
      Process information: 
          Process ID: 2788 
          Process name: w3wp.exe 
          Account name: IIS APPPOOL\WebRP 
       
      Exception information: 
          Exception type: HttpException 
          Exception message: The remote host closed the connection. The error code is 0x80070057. 
    • Hi reidmeonce, have you checked the NTFS permissions on your web site?  Under VS, the web site runs under your own user account.  But under IIS it runs under "NETWORK SERVICE" or some other account based on your system configuration.  A quick way to test this is to temporarily allow "Everyone" to have Change access to see if it makes the problem go away.