Next, have you made sure that your data source has either the security tables or that you have set the security data source key to point to the proper database if they are not housed within your default database? This code will also be in the AppMain.vb or program.cs file. If you have deployed the security tables through the DDT to same database your applicaiton is using for everything else, then you do not need to do anything here. However, if you are storing the SFSxxx tables in a different database than your default, you must setup that data source as well and then set the SecurityDataSourceKey property:
Last, be sure to run and look at how the Role-Based Security sample is setup. This sample comes with the framework and you have the source code in both VB.NET and C#. Let us know if none of these options work for you and we will go from there.
SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication("CMPR.SecurityKey")
command within the InitApplication() of your AppMain.vb (or Program.cs), then the only other thing that could be wrong is that your users are not deployed to the SFS tables that are referenced at runtime.
Are the SFS tables part of your database? Are the users and permissions deployed from the StrataFrame database (used by design-time) to those tables?