The DataSourceKey [XXX] is not defined.


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
The full error I am getting is:

   An error occurred while creating a new DataLayer for the business object.

   The DataSourceKey [XXX] is not defined.



This error is generated on the call to:

SFSPreferencesBO.RetrieveSecurityPreferences()



Everything works fine* when I don't add a named datasourcekey but leave the default "" :

SecurityBasics.SecurityDataSourceKey = "XXX"



I tried adding this but it didnt help:

DataLayer.DataSources.Add(New SqlDataSourceItem("XXX", "Data Source=IPADDRESS\SQLNAME;Initial Catalog=DBNAME;Integrated Security=True;Persist Security Info=False;Asynchronous Processing=True"))



I have a security project with a security key that matches.



I have my security tables in the same database as my application files, added via the DDT and deployed to the SQL Server.



I am sure I am doing something dumb, as this is the first chance i have had to implement the security module.



Keith



* when I left the SecurityDataSourceKey = "", I could only see the users within my app, when I called up the SecurityDialog from within VS, I saw no users.




Keith Chisarik
Reply
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
OK, I get it.



You have to do everything in the Strataframe database first, then deploy to your application. The deployment wizard "sucks out" the correct related security data (as defined in the security project by the key) and sens it to the application database, from there you can add/modify users and roles but not permissions. Do I have it?



I was doing things right in my target database off the bat.

Keith Chisarik
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search