Samples in 4.3.10?

Samples in 4.3.10?

Old forum URL:

GaryG posted on Thursday, March 29, 2012


Do any of the sample projects in 4.3.10 actually run?

I'm working to develop our plans for user authentication, and thought I could take a look at the Permissions and MembershipTest projects, to see how custom authentication should be done.

But, both of those projects throw exceptions when I try to run them.  I assume this is some sort of config issue, but have no idea what the framework requires to get these projects running.

The Membership project throws an exception in MyPrincipal.Login (DataPortal.Fetch failed). There is a web.config file in this project, but it contains no entries for connect strings.

The Permissions project fails in CustomIdentityFactory.PermissionFetch ("the underlying provider failed on Open"). This project has an app.config file, and that file does contain two connection strings (one for SecurityDb, and one for SecurityEntities).  But, I get the same exception, even after replacing the connection string in the sample (by pointing it to my copy of security.mdf).

Are there any FAQ's, or Readme's, or hints for the they can actually be run? 

Or, are they just static code examples, not meant to actually be run as applications or demos?

FWIW, I've worked with earlier versions of CSLA for a number of years, so it's not like I'm unfamiliar with the framework. 



RockfordLhotka replied on Friday, March 30, 2012

We try to keep the samples running, but it is a continual challenge given that we are a volunteer developer force.

From time to time I go through and remove samples that don't work, but I didn't have time to do that for 4.3.

The best samples and information on how to get authentication working is in the Using CSLA 4: Data Portal Configuration book.

GaryG replied on Friday, March 30, 2012

Thanks, Rocky. 

I've recently ordered both of the "Data" e-books, and downloaded the sample code from each. I'm just getting stared with the books, but I'm really digging all the new features in the framework.


Copyright (c) Marimer LLC