ASP.NET MVC4 Workflow Enabled User Registration

Demonstrates an MVC 4 app with extended user registration that verifies the email address of the user.

C# (7.5 MB)
 
 
 
 
 
(6)
9,304 times
Add to favorites
5/7/2012
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Built with BETA components
    1 Posts | Last post February 27, 2014
    • I noticed that this project is built with several BETA versions of MVC components.   
      
      Just wondering if there is a version of this project for MVC 5 built with the RTM versions of the components. 
      
      Attempting to update all the packages leads into a lot more effort.
      
  • Win8 + VSTO2012
    2 Posts | Last post February 13, 2014
    • I get 3 compile error when I try to build this application. My setup Windows 8 PRO + VSTO2012 Ultimate. Target framework .NET 4.5... 
      
      ERRORS:
      1: Error - Assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' can not be resolved.  Please add a reference to this assembly in the project that is being built.	D:\****\C#\MVCRegistrationActivities\AccountRegistration.xaml	MVCRegistrationActivities
      
      2: Error XC1020: Build error occurred in the XAML MSBuild task: 'Could not load file or assembly 'file:///D:\****\C#\MVCRegistrationActivities\bin\Debug\MVCRegistrationActivities.dll' or one of its dependencies. The system cannot find the file specified.'	D:\****\C#\MvcApplication1\file:///D:\****\C#\MVCRegistrationActivities\bin\Debug\MVCRegistrationActivities.dll	MvcApplication1
      
      3: Error Metadata file 'D:\****\C#\MvcApplication1\bin\MvcApplication1.dll' could not be found	D:\****\C#\MvcApplication1.Tests\CSC	MvcApplication1.Tests
      
      
    • Add Reference to 'System.Drawing' in 'MVCRegistrationActivities' project
  • instance ID not saved to DB.
    3 Posts | Last post June 27, 2013
    • I run the application and then click the link in email and I got the following error.
      The execution of an InstancePersistenceCommand was interrupted because the instance '547a58c4-cf77-41e9-8ed4-de65bd4f79aa' has not yet been persisted to the instance store.
      
      my setup: window 7 64 bit + VS2012 + target framework .net 4.5 + iis 7.5 + SQL server 2012. 
      installed AppFabric and AppFabric shows 0 for persisted WF instance and idle.
      
      also tried setup: window 7 64 bit + VS2012 + target framework .net 4.5 + iis 7.5 + SQL server 2008R2 and I got the same error.
      no data in InstancesTable.
      
    • i have same problem with W8 64x + VS2012 + IIS Express + SQL 2012 dev version.
    • run reset.cmd from C# folder to fix this issue.
  • RegistrationURL cancel URL
    1 Posts | Last post May 20, 2013
    • RegistrationURL cancel URL values not coming , Anyone can help on this please
  • instance ID not saved to DB.
    1 Posts | Last post May 20, 2013
    • instance id is not saved into the DB....
  • instance ID not saved to DB.
    1 Posts | Last post May 20, 2013
    • instance id is not saved into the DB....
  • MvcRegistrationActivities doesn't compile
    2 Posts | Last post September 19, 2012
    • 'The type ‘InArgument(local:RegistrationData)’ of property ‘RegData’ could not be resolved.' Line number '19' and line position '32'.
    • Konstantin, I had the same issue on my Win8 VS2012 machine. This is the error that is displayed when you open up AccountRegistration.xaml in Design mode. Compiling the application also gave me another error that that System.Drawing was not referenced in the project, so I added it and then I could open the file in Design mode.
      
      I think the RegData error is related to the fact that the project is missing this reference to System.Drawing and does not compile  correctly.
  • Works great local, but when I publish....
    3 Posts | Last post July 06, 2012
    • Ron, great article and sample!  I do have a question though.  I have the app running fine local (debug) using our network's SMTP and a SQL 2005 server.  I can register/get emails without issue.  When I publish the app to my Windows 7 IIS that is local it does not run properly.  I am still pointing to the SQL 2005 server and SMTP as did in debug.  IIS serves it up and I go to register, filling out the form properly, as I did in debug, but it now always displays 'Please correct the errors and try again. An unknown error happened'.  I do get the user created in the membership table, but no email goes out. Thoughts?
    • Well, when you publish you have to change the connection string to use SQL Azure.
    • I got it solved yesterday.  I was not using Azure, just another SQL server on the network.  For some reason VS 2012 was not publishing correctly. It was not publishing the Microsoft.Activities.Extensions dll to the bin folder with the rest of the project.  It was the only project item not publishing.  I used Firebug to finally figure that out and had to manually place it in the bin.  Once I did that, the site is now registering user fine!