MVC Membership - Preview 3

July 2, 2008 12:15 AM

Tonight we posted a new release of the MVC Membership Starter Kit. This release is an update to migrate the starter kit to the new Preview 3 release of the MVC framework. While several bugs have been squashed, no major new functionality has been added.

If you couldn't wait and downloaded the source prior to the official Preview 3 release, you'll still want to download tonight's official release as several important issues have been addressed.

Bug Fixes in 1.3:

  • The System.Web.Abstraction, System.Web.Mvc, and System.Web.Routing DLLs being used prior to tonight were from an earlier Preview 3 release and were not signed by Microsoft.
  • Routing ambiguities caused a 404 error to occur when a user enters an incorrect username/password combination on the login page.
  • Several errors were occurring on various password recovery screens which created a bad user experience.
  • Errors on the administration section's Create User and Display User pages were preventing that functionality from working at all.

Thanks for all of the interest everyone has shown in this project and thanks to Maarten and Greg for their contributions; especially to Maarten as he did most of the grunt work in upgrading our code base to Preview 3. Please send any feedback you have our way, we'd love to hear it!

Tags: ,
Categories: MVC
Actions: E-mail | Permalink | Comments (13) RSS Feed for this post's comments.

Comments

7/3/2008 5:39 PM #

pingback


Pingback from: code-inside.de

7/7/2008 2:06 PM #

Tony Bermudez

I am getting the following error message after building the new release and trying to login with the id Administrator and password of password!1.

Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Security/PasswordRecovery

Any idea?
Tony

Tony Bermudez us

7/7/2008 11:12 PM #

Troy Goode

Tony,

How are you coming by that page? After loading the website, you click on the login page, submit the form and wind up at ~/Security/PasswordRecovery?

If you could help me reproduce the issue I'd love to help you fix whatever is causing it.

Troy Goode us

7/10/2008 3:08 AM #

Raluca

Tony,

I had exactly the same problem a few days ago...
The problem was with the version of some routing assemblies referenced in web.config, namely: httpModule UrlRoutingModule, module UrlRoutingModule, handler UrlRoutingHandler. In my case the version of these assemblies was 3.5.0.0. After changing them to Version=0.0.0.0 everything was ok.

Hope this helps,
Raluca.

Raluca ro

7/17/2008 5:39 AM #

seanshih

Dear Troy

I have a problem shifting the database from ASPNETDB to my MS-Sql2005. I saw all the "create" and "update" functions link to System.Web.Security, but I could not find any DB-link in your sample code. Can you give me a hand to figure out where the setting is?!
As me as a beginner, this one kills me.
as you as a pro. I guess this is a very basic question
Thank you for your hepl

Sean Shih

seanshih tw

7/17/2008 10:21 AM #

Troy Goode

Hi Sean,

Take a look at the following article, which should clear everything up for you:

www.c-sharpcorner.com/.../...QLServer2005.doc.aspx

Troy Goode us

7/17/2008 10:04 PM #

seanshih

Hi Tory

Thank you for oyur quick reply.
I have another 2 questions:
1. Is that possible I use LINQ to replace all DB access?
2. If I want to change or add the columns in DB Table, what should I do?

Thanks again

Sean

seanshih tw

7/18/2008 12:37 AM #

Troy Goode

Hi Sean,

Data access for membership is done via the Asp.Net Membership Provider. This abstracts out the data access (which could be XML, Oracle, etc), so no, you shouldn't use LINQ to access that data.

You also should not manually modify the db tables for membership, as the schema technically could be changed in future version of ASP.Net. I recommend creating a separate database (separate from the AspNetDb db) to store your extra data in (which you can then map to each user's Guid via user.ProviderUserKey).

Troy Goode us

7/18/2008 3:20 PM #

VB

Hi Troy,

When are you guys planning to come out with a new release supporting MVC Preview 4?

VB us

7/18/2008 6:36 PM #

Troy Goode

@VB:

Our Preview 3 release actually works with Preview 4. That said there are some major changes in Preview 4 that we'll be making use of going forward (such as the new authorization and error handling filters). I'm currently planning to release two versions of the starter kit for Preview 4.

The first release I should have out tomorrow and simply removes the front-end controller & views (which are now part of the default MVC project template) as well as switching over to the new [Authorize] and [HandleError] attributes.

The second release (and all subsequent releases of this project) will focus on improving the administrative interface for managing users using the new MS Ajax goodness. I'll also likely include the OpenID login and Windows Live login controllers & views back in at this point. I'm targeting the end of next week for this release.

Now that Preview 3 has subsumed much of the MVC Membership Starter Kit's functionality, where would you like to see the project go?

Troy Goode us

7/22/2008 11:55 AM #

CuriosMe

Hi Troy,

I had similar problem as one of the readers and the link you pointed for configuring SQL Server for membership does not work for me. I pointed the web.config to my own DB (instead of aspnetdb) but it still looks in the default aspnetdb.
here is my connection string:

<add name="ASPNETDBConnectionString" connectionString="Data Source=TFSRTM08;Initial Catalog=MYSQLDB;Integrated Security=True;" />

Please advice

CuriosMe us

7/31/2008 1:37 PM #

sam

Kuddos on your work Troy.

I have a question that I can't seem to find an answer for. How can I use jquery and asp.net's membership together? I can pass in credentials...but then how do I keep a "session" open with json request/responses?

sam us

8/7/2008 12:02 AM #

seanshih

Hi Troy

I have a question that I want my URL look like this

http://localhost:111111/admin/user/getuser/123
channel = admin
controller = user
action = getuser
id = 123

and i saw following line in Global.asax.cs
"{controller}/{action}/{id}", // URL with parameters

is that possable to re-write the route to fit my request??

Thanks again

seanshih tw

Add Comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading




Troy Goode

Troy Goode
Microsoft Certified Professional Developer
AddThis Feed Button

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in  anyway.

© Copyright 2008

Colophon

Powered by:
BlogEngine.NET 1.4
Template:
Designs by Darren
Header Font:
Stamper
Syntax Highlighting:
WLW Code Snippet Plugin