Like others, Unable to achieve step 7 with Web Site Administration Tool

Nov 26, 2012 at 5:33 PM

Hello,

I am both stuck and puzzled right now, as I don't have the slightest idea about what the Web SIte Administation tool is looking for as database. As Provider, he tells me the application is setup to use "AspNetSqlProvider", but a search through the whole application does not find any match. Why is it not using the connections defined in Web.config?

I am using VS 2012 with MVC 4.0 and .Net 4.5. I have been happy to manage to get there, and would certainly love to share my updated version of this very nice tutorial, but I need to get it to work before... :-)

Should I try to create a blank site with Web application template, to see what is created and used as database by the Account Controller there?

Thanks for any help,

Bernard

Nov 26, 2012 at 5:40 PM
If your using MVC 4 you can't use administrator site to create roles and users. MVC 4 moves from a technology in MVC 3 called 'Membership Provider' to the newer technology called 'Simple Membership' in MvC 4. Jon Galloway has an article on this that should be easy to find with some of terms above.

Dean

Director, International Study Programs / Asia
EJH Group, LLC

On Nov 26, 2012, at 1:33 PM, "BernardG" <notifications@codeplex.com> wrote:

From: BernardG

Hello,

I am both stuck and puzzled right now, as I don't have the slightest idea about what the Web SIte Administation tool is looking for as database. As Provider, he tells me the application is setup to use "AspNetSqlProvider", but a search through the whole application does not find any match. Why is it not using the connections defined in Web.config?

I am using VS 2012 with MVC 4.0 and .Net 4.5. I have been happy to manage to get there, and would certainly love to share my updated version of this very nice tutorial, but I need to get it to work before... :-)

Should I try to create a blank site with Web application template, to see what is created and used as database by the Account Controller there?

Thanks for any help,

Bernard

Nov 26, 2012 at 6:02 PM
3v3rhart wrote:
If your using MVC 4 you can't use administrator site to create roles and users. MVC 4 moves from a technology in MVC 3 called 'Membership Provider' to the newer technology called 'Simple Membership' in MvC 4. Jon Galloway has an article on this that should be easy to find with some of terms above.
Dean

Thank you Dean, as I am all new to this (as you can guess, after all I am following a tutorial.... :-) ) I did not had the slightest idea. I'll find jon Galloway article and continue working on this. It's a pretty good first approach to MVC and Razor, and I do like it. I have done a little bit of PHP MVC, a while ago, and this is so much easier!

Bernard

Nov 26, 2012 at 7:06 PM
Hi Bernard -

Actually, I'm on the same step - about a day ahead of you. I'm still stuck on this step, so if you come up with the exact answer, please let me know.

The good news is that the fix is one line of code - or pretty close to it.

I'm away from computer at the moment, or I would write more.

Good luck!

Director, International Study Programs / Asia
EJH Group, LLC

On Nov 26, 2012, at 2:02 PM, "BernardG" <notifications@codeplex.com> wrote:

From: BernardG

3v3rhart wrote:
If your using MVC 4 you can't use administrator site to create roles and users. MVC 4 moves from a technology in MVC 3 called 'Membership Provider' to the newer technology called 'Simple Membership' in MvC 4. Jon Galloway has an article on this that should be easy to find with some of terms above.
Dean

Thank you Dean, as I am all new to this (as you can guess, after all I am following a tutorial.... :-) ) I did not had the slightest idea. I'll find jon Galloway article and continue working on this. It's a pretty good first approach to MVC and Razor, and I do like it. I have done a little bit of PHP MVC, a while ago, and this is so much easier!

Bernard

Nov 27, 2012 at 12:17 PM
Edited Nov 27, 2012 at 12:21 PM
3v3rhart wrote:
Hi Bernard -
Actually, I'm on the same step - about a day ahead of you. I'm still stuck on this step, so if you come up with the exact answer, please let me know.
The good news is that the fix is one line of code - or pretty close to it.
I'm away from computer at the moment, or I would write more.
Good luck!

Director, International Study Programs / Asia
EJH Group, LLC

On Nov 26, 2012, at 2:02 PM, "BernardG" <notifications@codeplex.com> wrote:

Good to know, thanks! I managed to make it work yesterday night with a dummy application created just for that. I am going to port to MVC MusicStore later today, while I am blogging on this in the same time (in french, sorry, but code is universal...). My blog is http://www.bgsoftfactory.fr . I'll post here as soon as my blog post is online.

In fact, you can use ASP .NET Configuration tool to seed a user and pasword with MVC 4.0 and MS SQL Compact 4.0. More on this later and in my blog...

Coordinator
Nov 27, 2012 at 5:35 PM

Sorry for the trouble. Yes, it's a little more difficult to configure users since the Visual Studio user administration pages don't work with Simple Membership. I created and configured users in code (as BernardG suggested) in the MVC 4 version of the tutorial: http://mvcmusicstore.codeplex.com/SourceControl/changeset/view/e274968f2827#MvcMusicStore%2fApp_Start%2fAppConfig.cs

The code for the MVC 4 version is complete, just working on finishing up the documentation.

Dec 3, 2012 at 10:05 PM

Hi Jon,

Good to know there is an upcoming version of your great tutorial for MVC 4. Meanwhile (and this might be of interest to you) I found ErikEJ blog, he created a membership provider for SQL Server Compact 4.0: http://erikej.blogspot.fr/2010/08/sql-server-compact-40-aspnet-membership.html

You can get it with NuGet: Install-Package ErikEJ.SqlCeMembership. I think it's just what the doctor ordered :-) as then, you can actually configure your security with Visual Studio administration pages!

Dec 5, 2012 at 6:46 PM
BernardG wrote:

Hi Jon,

Good to know there is an upcoming version of your great tutorial for MVC 4. Meanwhile (and this might be of interest to you) I found ErikEJ blog, he created a membership provider for SQL Server Compact 4.0: http://erikej.blogspot.fr/2010/08/sql-server-compact-40-aspnet-membership.html

You can get it with NuGet: Install-Package ErikEJ.SqlCeMembership. I think it's just what the doctor ordered :-) as then, you can actually configure your security with Visual Studio administration pages!

Hi Jon,

When will version 4 be available? I was also stuck at step 7 and removed the whole project in fury before finding this post. So I look forward to start over again... :)

Dec 19, 2012 at 7:43 PM

Also interested in an MVC 4 update to this tutorial.